| | |
| | | |
| | | 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) { |
| | |
| | | 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); |
| | | } |
| | | } |
| | | } |
| | |
| | | |
| | | ((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(); |