admin
2021-07-28 c0269fcfa876b9c5cf309b2006462b4d09c5ef95
library-mine/src/com/lcjian/library/widget/TagCloudLayout.java
@@ -46,13 +46,13 @@
    public interface OnScrollListener {
        public static int SCROLL_STATE_IDLE = 0;
        int SCROLL_STATE_IDLE = 0;
        public static int SCROLL_STATE_TOUCH_SCROLL = 1;
        int SCROLL_STATE_TOUCH_SCROLL = 1;
        public static int SCROLL_STATE_FLING = 2;
        int SCROLL_STATE_FLING = 2;
        public void onScrollStateChanged(int scrollState);
        void onScrollStateChanged(int scrollState);
    }
    public TagCloudLayout(Context context) {
@@ -97,7 +97,7 @@
                mcList[i].alpha = (mcList[i].alpha - 0.6) * (10d / 6d);
                ((TextView) mcList[i].mTarget).setTextSize((float) Math.ceil(12 * mcList[i].scale / 2) + 8);
                if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
                    ((TextView) mcList[i].mTarget).setAlpha((float) mcList[i].alpha);
                    mcList[i].mTarget.setAlpha((float) mcList[i].alpha);
                }
            }
        }
@@ -218,7 +218,7 @@
            
            ((TextView) child.mTarget).setTextSize((float) Math.ceil(12 * mcList[i].scale / 2) + 8);
            if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
                ((TextView) child.mTarget).setAlpha((float) mcList[i].alpha);
                child.mTarget.setAlpha((float) mcList[i].alpha);
            }
        }
        requestLayout();