Android 圆角fraagment的实现
来源:互联网 发布:菜刀三国杀淘宝 编辑:程序博客网 时间:2024/06/06 03:48
在drawable里定义好一个布局,命名为 green_bg:代码如下
<?xml version="1.0" encoding="utf-8"?><shape xmlns:android="http://schemas.android.com/apk/res/android"> <corners android:radius="5dp"/> <solid android:color="@android:color/holo_green_dark"/></shape>在fragment的布局里引用这个定义好的布局
代码如下:
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/green_bg" > <TextView android:text="1" android:layout_marginLeft="10dp" android:gravity="center" android:textColor="#dcd3d3" android:layout_width="30dp" android:layout_height="wrap_content" android:background="#000000"/></LinearLayout>
1 0
- Android 圆角fraagment的实现
- 【Android】圆角Button的实现
- android中布局背景 圆角 的实现
- Android圆角Tag控件的另类实现
- Android LsitView的实现
- android 监听的实现
- android mms的实现
- android 权限的实现
- Android放大镜的实现
- android菜单的实现
- Android放大镜的实现
- Android放大镜的实现
- android tab的实现
- android 通讯录的实现
- android图表的实现
- Android闹钟的实现!
- android 传感器的实现
- Android闹钟的实现!
- uploadify.js
- shareSDK导入的常见错误及解决方法
- soap-ws 获取wsdl中所有方法 (一)
- [e袋购]电商为物业开拓新出口
- iOS开发中的一些常用方法
- Android 圆角fraagment的实现
- 实现杂记(27):解决在onCreate()过程中获取View的width和Height为0的4种方法
- linux curl参数详解
- java_小小五子棋小游戏
- Solr6+中文分词(mmseg4j)
- Linux的常用命令
- oracle11g创建表
- Hibenate异常汇总:java.lang.NoClassDefFoundError: org/jboss/
- Android MTK 设置默认启动 Launcher