Android一个大众化的设置界面
布局代码如下:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/android_layout_bg" > <LinearLayout
android:id="@+id/ll_top"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/transparent"
android:orientation="vertical" > <LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/android_layout_bg"
android:orientation="vertical" > <LinearLayout style="@style/PersonalMainLayoutStyle" > <RelativeLayout style="@style/PersonalTopStyle" > <ImageView
android:id="@+id/personal_icon_01"
style="@style/PersonalIconStyle"
android:layout_width="36dp"
android:layout_height="38dp"
android:src="@drawable/ic_setting_account" /> <TextView
style="@style/PersonalTextStyle"
android:layout_toRightOf="@id/personal_icon_01"
android:text="个人信息" /> <ImageView
style="@style/PersonalRightIconStyle"
android:src="@drawable/mail_arrow" />
</RelativeLayout> <View style="@style/PersonalLine" /> <RelativeLayout style="@style/PersonalBottomStyle" > <ImageView
android:id="@+id/personal_icon_03"
style="@style/PersonalIconStyle"
android:src="@drawable/ic_scan_qr_icon" /> <TextView
style="@style/PersonalTextStyle"
android:layout_toRightOf="@id/personal_icon_03"
android:text="二维码扫描" /> <ImageView
style="@style/PersonalRightIconStyle"
android:src="@drawable/mail_arrow" />
</RelativeLayout>
</LinearLayout> <LinearLayout style="@style/PersonalMainLayoutStyle" > <RelativeLayout style="@style/PersonalTopStyle" > <ImageView
android:id="@+id/personal_icon_04"
style="@style/PersonalIconStyle"
android:src="@drawable/ic_setting_msg_notification" /> <TextView
style="@style/PersonalTextStyle"
android:layout_toRightOf="@id/personal_icon_04"
android:text="提醒设置" /> <ImageView
style="@style/PersonalRightIconStyle"
android:src="@drawable/mail_arrow" />
</RelativeLayout> <View style="@style/PersonalLine" /> <RelativeLayout style="@style/PersonalNormalStyle" > <ImageView
android:id="@+id/personal_icon_05"
style="@style/PersonalIconStyle"
android:src="@drawable/ic_setting_chat_bkgnd" /> <TextView
style="@style/PersonalTextStyle"
android:layout_toRightOf="@id/personal_icon_05"
android:text="全局聊天设置" /> <ImageView
style="@style/PersonalRightIconStyle"
android:src="@drawable/mail_arrow" />
</RelativeLayout> <View style="@style/PersonalLine" /> <RelativeLayout style="@style/PersonalBottomStyle" > <ImageView
android:id="@+id/personal_icon_06"
style="@style/PersonalIconStyle"
android:src="@drawable/ic_setting_privacy" /> <TextView
style="@style/PersonalTextStyle"
android:layout_toRightOf="@id/personal_icon_06"
android:text="隐私设置" /> <ImageView
style="@style/PersonalRightIconStyle"
android:src="@drawable/mail_arrow" />
</RelativeLayout> <View style="@style/PersonalLine" /> <RelativeLayout style="@style/PersonalBottomStyle" > <ImageView
android:id="@+id/personal_icon_07"
style="@style/PersonalIconStyle"
android:src="@drawable/ic_setting_applock" /> <TextView
android:id="@+id/tv_key"
style="@style/PersonalTextStyle"
android:layout_toRightOf="@id/personal_icon_07"
android:text="密码锁定" /> <TextView
style="@style/PersonalTextStyle1"
android:layout_toRightOf="@id/personal_icon_07"
android:text="未开启" /> <ImageView
style="@style/PersonalRightIconStyle"
android:src="@drawable/mail_arrow" />
</RelativeLayout> </LinearLayout> <LinearLayout style="@style/PersonalMainLayoutStyle" > <RelativeLayout
style="@style/PersonalCenterStyle"
android:layout_marginBottom="10dp" > <ImageView
android:id="@+id/personal_icon_12"
style="@style/PersonalIconStyle"
android:src="@drawable/ic_setting_feedback" /> <TextView
style="@style/PersonalTextStyle"
android:layout_toRightOf="@id/personal_icon_12"
android:text="意见反馈" /> <ImageView
style="@style/PersonalRightIconStyle"
android:src="@drawable/mail_arrow" />
</RelativeLayout> <View style="@style/PersonalLine" /> <RelativeLayout
style="@style/PersonalCenterStyle"
android:layout_marginBottom="10dp" > <ImageView
android:id="@+id/personal_icon_12"
style="@style/PersonalIconStyle"
android:src="@drawable/ic_clean_cache" /> <TextView
style="@style/PersonalTextStyle"
android:layout_toRightOf="@id/personal_icon_12"
android:text="清除缓存" /> <ImageView
style="@style/PersonalRightIconStyle"
android:src="@drawable/mail_arrow" />
</RelativeLayout> <View style="@style/PersonalLine" /> <RelativeLayout
style="@style/PersonalCenterStyle"
android:layout_marginBottom="10dp" > <ImageView
android:id="@+id/personal_icon_13"
style="@style/PersonalIconStyle"
android:src="@drawable/ic_setting_about" /> <TextView
style="@style/PersonalTextStyle"
android:layout_toRightOf="@id/personal_icon_13"
android:text="关于" /> <ImageView
style="@style/PersonalRightIconStyle"
android:src="@drawable/mail_arrow" />
</RelativeLayout>
</LinearLayout> <LinearLayout style="@style/PersonalMainLayoutStyle" > <Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/selector_login_out"
android:text="退出登录"
android:textColor="@color/whiteSmoke" />
</LinearLayout>
</LinearLayout>
</LinearLayout> </RelativeLayout>
Android一个大众化的设置界面的更多相关文章
- Android 手机卫士--实现设置界面的一个条目布局结构
本文地址:http://www.cnblogs.com/wuyudong/p/5908986.html,转载请注明源地址. 本文以及后续文章,将一步步完善功能列表: 要点击九宫格中的条目,需要注册点击 ...
- Android 跳转权限设置界面的终极方案
转载请标明出处,维权必究:https://www.cnblogs.com/tangZH/p/10338377.html 有时候APP需要获取某些权限,要让用户手动打开,那么问题来了,若是直接提醒用户出 ...
- 用PreferenceActivity做一个标准的设置界面
最后接触到一个任务,做一个工厂设置,在我看来工厂设置不需要多美观,但是一定要方便修改,添加功能,再就是使用方便,我就想到了用PreferenceActivity,android系统的settings就 ...
- Android 一个TextView中设置多种不同大小的字体,设置超链接
以前项目中要是遇到这样的UI设计,都是傻不拉唧的分为三个TextView来实现,今天在微信中无意中看了一篇公众号文章,发现原来只要一个TextView就可以搞定啦,人生最悲哀的事情莫过于工作了这么久啦 ...
- 【OpenWRT之旅】如何自定义一个配置文件的设置界面
作者:gnuhpc 出处:http://www.cnblogs.com/gnuhpc/ 1. 引言 OpenWRT中采用LuCI作为它的Web interface界面框架,采用Lua语言.在本文中将以 ...
- android --一个简单的登录界面
MainActivity.java package com.example.empty_project; import androidx.appcompat.app.AppCompatActivity ...
- Android常用控件之Fragment仿Android4.0设置界面
Fragment是Android3.0新增的概念,是碎片的意思,它和Activity很相像,用来在一个Activity中描述一些行为或部分用户界面:使用多个Fragment可以在一个单独的Activi ...
- Android开发——设置界面的创建
前言: 最近忙着搞项目,难得有时间,便来整理搞项目中学习到的知识 使用之前,先介绍一下android这种的五种数据储存方式,分别为文件储存,SharePrefence,SQL,使用ContentPro ...
- 这才是Android设置界面的正确做法👌👌👌
话不多说,先上效果图 本文参考简书博客:<这才是Android设置界面的正确做法>一文写成,在其基础上删改并增加了一些内容.建议新窗口打开原文,在本文讲述不清楚的地方参考原文去寻找答案. ...
随机推荐
- Java集合 之 List 集合
1.什么是Lsit集合? List集合是一种元素有序的,可重复的集合,集合中每个元素都有自己的元素索引.List集合允许可重复的元素,可以通过索引来访问指定位置的元素. 2.Java8改进的List接 ...
- 【故障处理】ORA-30012的解决过程
[故障处理]ORA-30012的解决过程 1 BLOG文档结构图 2 前言部分 2.1 导读和注意事项 各位技术爱好者,看完本文后,你可以掌握如下的技能,也可以学到一些其它你所不知道的知识,~O ...
- MVC如何在单独的类库中添加区域
今天要做一个将区域放到单独的类库中的程序,其实就是多加几个引用的问题,但是我比较喜欢这种设计结构,因为这样的话可以把单独的应用逻辑放在单独的类库中处理,项目看起来更清晰分明,所以写了这个随笔. 首先创 ...
- 【mysql】统计库、表大小
1. 查看该数据库实例下所有库大小,得到的结果是以MB为单位 mysql> select table_schema,sum(data_length)/1024/1024 as data_leng ...
- 百度推出的echarts,制表折线图柱状图饼图等的超级工具(转)
一.简介: 1.绘制数据图表,有了它,想要网页上绘制个折线图.柱状图,从此easy. 2.使用这个百度的echarts.js插件,是通过把图片绘制在canvas上在显示在页面上. 官网对echarts ...
- easyui的datagrid实例实现
功能要求如图所示: function Loading() { var editRow = undefined;//保存行的索引 var query= $("#myform").se ...
- Centos 下oracle 11g 安装部署及手动建库过程
Oracle 11g 手动建库,在虚拟环境中,不使用DBCA工具进行创建数据库 1.Linux环境的基本配置 2.ip 10.11.30.60 3.Oracle 11g安装过程 ---------- ...
- SQL优化法则小记
SQL优化技巧 1.选择最有效率的表名顺序(只在基于规则的优化器中有效): oracle的解析器按照从右到左的顺序处理 from 子句中的表名,from子句中写在最后的表(基础表 driving ta ...
- which,whereis, locate, find
which 在PATH环境变量中的路径中查找目标文件,所以用来查找都是可执行文件,Linux下的各种命令本质上就是一个可执行的文件,所以我们安装新的软件之后通常都会有相应的命令将其打开,就是因为安装的 ...
- hdu 1561 The more, The Better(树形dp,基础)
The more, The Better Time Limit: 6000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Oth ...