android 我的功能模块模板布局之一
2017-12-28 13:19
218 查看
一,布局为
二,对应 style 的 @style/common_text为
三,效果图
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:background="#E6E6E6" android:orientation="vertical" tools:context="com.jiangtunjf.jgapplication.Main6Activity"> <TextView style="@style/common_text" android:layout_marginTop="15dp" android:text="我的资产"/> <TextView style="@style/common_text" android:text="资产变现"/> <TextView style="@style/common_text" android:text="银行卡"/> <TextView style="@style/common_text" android:text="关于"/> <TextView style="@style/common_text" android:text="设置"/> </LinearLayout>
二,对应 style 的 @style/common_text为
<style name="common_text"> <item name="android:layout_width">match_parent</item> <item name="android:layout_height">wrap_content</item> <item name="android:layout_marginTop">1dp</item> <item name="android:background">@color/white</item> <item name="android:drawableLeft">@drawable/member_money</item> <item name="android:drawablePadding">6dp</item> <item name="android:drawableRight">@drawable/ic_arrow_right</item> <item name="android:padding">12dp</item> <item name="android:textColor">@color/text_color_666</item> <item name="android:textSize">16sp</item> </style>
三,效果图
相关文章推荐
- Android实战简易教程<六十>(分享一个城市选择功能模块)
- magento的布局(layouts)、模块(block)、模板(templates)
- Android自定义listview布局实现上拉加载下拉刷新功能
- Android网络编程之一个Android下菜单系统模块的实现(服务器端—添单功能)
- Android 配合NestedScrollView 上滑显示 下滑隐藏 底部功能模块
- Android图片加载框架最全解析(六),探究Glide的自定义模块功能
- android 填写参数模板布局之一
- Android网络编程之一个Android下菜单系统模块的实现(客户端—结算功能)
- [android开发之内容更新类APP]四、项目的基本功能之布局(续)
- Android Telephony主要模块及功能
- AndroidUI FragmentTabHost类完成 底部导航布局功能
- android中Handler与Runnable配合实现指定功能模块的定时循环地执行
- thinkphp3.2.3模板布局所有模块都是可以使用的解决方案
- Android网络编程之一个Android下菜单系统模块的实现(服务器端—开桌功能))
- Android网络编程之一个Android下菜单系统模块的实现(客户端—开桌功能(下部))
- Android 程序自动更新功能模块实现
- Android仿京东、天猫app的商品详情页的布局架构, 以及功能实现
- dede站点地图模板:dede功能模块模板路径对应表
- eBook 功能模块二之设置模块Android
- Android DrawerLayout带有侧滑功能的布局类(2)