vus520 发表于 2012-10-24 22:53:27

android ListView实现圆角实例教程二

android ListView实现圆角实例教程二

“Android框架浅析之锁屏(Keyguard)机制原理
http://www.eoeandroid.com/thread-181604-1-1.html
andriod一个不错的启动菜单显示屏动画效果(转载)
http://www.eoeandroid.com/thread-171965-1-1.html
分享一个短信应用源码
http://www.eoeandroid.com/thread-179723-1-1.html

对于简短的listview,加上如上面这些比较死的数据,我们完全没有必要用listview来实现,TableLout完全够了.主要是我们怎么实现带有弧度的边罢了,不过这也完全得力于shape的功劳,至于点击效果效果嘛,我们有selector,下面介绍下实现:

配置文件部分代码:
    <ScrollView      android:layout_width="match_parent"      android:layout_height="match_parent"      android:scrollbars="none" >      <LinearLayout            android:id="@+id/ll_main"            android:layout_width="match_parent"            android:layout_height="match_parent"            android:layout_weight="1"            android:gravity="center"            android:orientation="vertical"            android:paddingLeft="10dp"            android:paddingRight="10dp" >      </LinearLayout>    </ScrollView>
页: [1]
查看完整版本: android ListView实现圆角实例教程二