项目要求,联系人页面,怎样才能好看一点呢? 又不要用ListView,又要带悬浮的标。来吧,说一下联系人的点
首先有个SideBarView 就是侧边字母栏,这个东西呢 关于自定义view ,我了两个SideBarView
两种不同风格的SideBarView Tisp;
先贴代码吧
第一种
public class SildeBar extends View { public static final String TAG = "SlideBar"; // 触摸事件 private OnTouchingLetterChangedListener onTouchingLetterChangedListener; // 26个字母 public static String[] b = { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "#" }; private int choose = -1;// 选中 private Paint paint = new Paint(); private TextView mTextDialog; private float