摘要: Inerpolators LinearInterpolator 线性插值器 AccelerateInterpolator 加速度插值器 DecelerateInterpolator 减速插值器 AccelerateDecelerateInterpolator ... 阅读全文
posted @ 2015-10-13 19:34 阿偉 阅读(123) 评论(0) 推荐(0)
摘要: Item不允许点击 private class GoodsAdapter extends BasicAdapter { @Override public boolean isEnabled(int position) { return false; } } Header或... 阅读全文
posted @ 2015-10-13 10:56 阿偉 阅读(107) 评论(0) 推荐(0)
摘要: ViewHolder的封装 public class ViewHolder { @SuppressWarnings("unchecked") public static <T extends View T get(View view, int id) { SparseArray<View... 阅读全文
posted @ 2015-10-13 10:44 阿偉 阅读(183) 评论(0) 推荐(0)
摘要: 切换动画效果 <! 默认主题风格 <style name="appStyle" parent="android:Theme.Holo.Light.NoActionBar" <item name="android:windowAnimationStyle" @style/windowAnim<... 阅读全文
posted @ 2015-10-13 10:41 阿偉 阅读(118) 评论(0) 推荐(0)
摘要: ClickSpan 点击事件 <?xml version="1.0" encoding="utf 8"? <selector xmlns:android="http://schemas.android.com/apk/res/android" <item android:state_pre... 阅读全文
posted @ 2015-10-13 10:36 阿偉 阅读(137) 评论(0) 推荐(0)
摘要: EditText限制输入长度 mEdtContent.setFilters(new InputFilter[]{new InputFilter.LengthFilter(5)}); 阅读全文
posted @ 2015-10-08 09:59 阿偉 阅读(105) 评论(0) 推荐(0)