实现TextView圆角效果
来源:互联网 发布:windows旧版系统 编辑:程序博客网 时间:2024/06/15 13:55
个人博客
http://blog.loveplusplus.com
先上效果图:
新建一个Android项目
main.xml如下:
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="#ffffff" android:orientation="vertical" > <LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="10.0dip" android:layout_marginRight="10.0dip" android:layout_marginTop="10.0dip" android:background="@anim/shape_rounded_rectangle" android:orientation="vertical" > <RelativeLayout android:layout_width="fill_parent" android:layout_height="45.0dip" android:background="@anim/more_up" android:gravity="center_vertical" > <TextView style="@style/style_16_666666_BOLD" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:layout_marginLeft="15.0dip" android:text="账号管理" /> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:layout_marginRight="20.0dip" android:src="@drawable/arrow" /> </RelativeLayout> <ImageView android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="@drawable/line" /> <RelativeLayout android:id="@+id/relMoreSet" android:layout_width="fill_parent" android:layout_height="45.0dip" android:background="@anim/more_down" android:gravity="center_vertical" > <TextView style="@style/style_16_666666_BOLD" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:layout_marginLeft="15.0dip" android:text="设置" /> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:layout_marginRight="20.0dip" android:src="@drawable/arrow" /> </RelativeLayout> </LinearLayout></LinearLayout>
Demo下载地址
http://download.csdn.net/detail/love7323315/4785755- 实现TextView圆角效果
- TextView实现圆角效果.
- textview圆角效果
- textview圆角效果
- textview圆角效果
- TextView实现滚动效果
- textView实现placeholder效果
- TextView实现时钟效果
- TextView实现打印机效果
- TextView实现走马灯效果
- TextView实现跑马灯效果
- Android TextView实现滚动效果
- 实现textview的阴影效果
- TextView实现跑马灯效果
- [Android] TextView实现走马灯效果
- TextView实现跑马灯效果
- [Android] TextView实现走马灯效果
- TextView实现跑马灯效果
- c++ 库的容器和算法 与 STL 的区别
- 10115 - Automatic Editing
- R语言
- ACM 判断素数
- Flash AS3 加载mp3/jpg/xml/png的示例
- 实现TextView圆角效果
- web开发的最高境界
- TDD实践小结
- left join的总结
- 今起较强冷空气影响中东部地区 北京或现今冬初雪
- 接口理解的一个小例子
- Oracle产生随机数
- Android RIL学习
- The first image of strawberry perl