Ejemplo n.º 1
0
 public void cancelSelected()
 {
     if (mTRoundImageViewLayout != null && mTRoundImageViewLayout.getVisibility() == 0)
     {
         mTRoundImageViewLayout.cancelSelected();
     }
 }
Ejemplo n.º 2
0
 public void changeEdge(int i)
 {
     edge = i;
     if (mTRoundImageViewLayout != null && mTRoundImageViewLayout.getVisibility() == 0)
     {
         mTRoundImageViewLayout.changeViewEdge(i);
     }
 }
Ejemplo n.º 3
0
 public void changeCornerRadius(int i)
 {
     if (mTRoundImageViewLayout != null && mTRoundImageViewLayout.getVisibility() == 0)
     {
         mTRoundImageViewLayout.changeViewCorner(i);
     }
     radius = i;
 }
Ejemplo n.º 4
0
 public float getEdge()
 {
     if (mTRoundImageViewLayout != null && mTRoundImageViewLayout.getVisibility() == 0)
     {
         return (float)mTRoundImageViewLayout.getEdge();
     } else
     {
         return (float)edge;
     }
 }
Ejemplo n.º 5
0
 private void layoutCompose(int i, int j)
 {
     int k = (int)(((float)i / (float)j) * 306F);
     float f = (float)j / 306F;
     float f1 = (float)i / (float)k;
     mTRoundImageViewLayout.setVisibility(0);
     aiy aiy1 = new aiy(translatePointsListWithScale(1.0F, f, f1), mComposeInfo.getVectorPointsArray(), bitmaps, (int)radius, mIsUsingShadow, mIsFirstSet, 2.5F);
     aiy1.a(mComposeInfo.getDefaultEdge());
     mTRoundImageViewLayout.configByInfo(aiy1);
 }
Ejemplo n.º 6
0
 public void changeCornerRadius(boolean flag)
 {
     int i = (int)getContext().getResources().getDimension(0x7f08002d);
     if (!flag)
     {
         i = 0;
     }
     if (mTRoundImageViewLayout != null && mTRoundImageViewLayout.getVisibility() == 0)
     {
         mTRoundImageViewLayout.changeViewCorner(i);
     }
     radius = i;
 }
Ejemplo n.º 7
0
 {
     k = mTRoundImageViewLayout.getWidth();
     f = (float)i / (float)k;
     obj = Bitmap.createBitmap(i, j, android.graphics.Bitmap.Config.ARGB_8888);
     obj1 = new Canvas(((Bitmap) (obj)));
     ((Canvas) (obj1)).setDrawFilter(new PaintFlagsDrawFilter(0, 3));
     ((Canvas) (obj1)).scale(f, f);
     mTRoundImageViewLayout.draw(((Canvas) (obj1)));
     if (obj != null && !((Bitmap) (obj)).isRecycled())
     {
         canvas.drawBitmap(((Bitmap) (obj)), 0.0F, 0.0F, paint);
         ((Bitmap) (obj)).recycle();
     }
 }
Ejemplo n.º 8
0
 public void clearResource(boolean flag)
 {
     if (flag && mTRoundImageViewLayout != null)
     {
         mTRoundImageViewLayout.setBitmapsNull();
     }
 }
Ejemplo n.º 9
0
 public void clearImageViwesBitmap()
 {
     if (mTRoundImageViewLayout != null)
     {
         mTRoundImageViewLayout.setBitmapsNull();
     }
     if (bitmaps != null)
     {
         bitmaps.clear();
     }
     radius = 0.0F;
 }
Ejemplo n.º 10
0
 private void initView()
 {
     View.inflate(getContext(), 0x7f030043, this);
     mTRoundImageViewLayout = (TRoundImageViewLayout)findViewById(0x7f0c013a);
     mTRoundImageViewLayout.setDelegate(this);
 }