布局代码如下:

<?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一个大众化的设置界面的更多相关文章

  1. Android 手机卫士--实现设置界面的一个条目布局结构

    本文地址:http://www.cnblogs.com/wuyudong/p/5908986.html,转载请注明源地址. 本文以及后续文章,将一步步完善功能列表: 要点击九宫格中的条目,需要注册点击 ...

  2. Android 跳转权限设置界面的终极方案

    转载请标明出处,维权必究:https://www.cnblogs.com/tangZH/p/10338377.html 有时候APP需要获取某些权限,要让用户手动打开,那么问题来了,若是直接提醒用户出 ...

  3. 用PreferenceActivity做一个标准的设置界面

    最后接触到一个任务,做一个工厂设置,在我看来工厂设置不需要多美观,但是一定要方便修改,添加功能,再就是使用方便,我就想到了用PreferenceActivity,android系统的settings就 ...

  4. Android 一个TextView中设置多种不同大小的字体,设置超链接

    以前项目中要是遇到这样的UI设计,都是傻不拉唧的分为三个TextView来实现,今天在微信中无意中看了一篇公众号文章,发现原来只要一个TextView就可以搞定啦,人生最悲哀的事情莫过于工作了这么久啦 ...

  5. 【OpenWRT之旅】如何自定义一个配置文件的设置界面

    作者:gnuhpc 出处:http://www.cnblogs.com/gnuhpc/ 1. 引言 OpenWRT中采用LuCI作为它的Web interface界面框架,采用Lua语言.在本文中将以 ...

  6. android --一个简单的登录界面

    MainActivity.java package com.example.empty_project; import androidx.appcompat.app.AppCompatActivity ...

  7. Android常用控件之Fragment仿Android4.0设置界面

    Fragment是Android3.0新增的概念,是碎片的意思,它和Activity很相像,用来在一个Activity中描述一些行为或部分用户界面:使用多个Fragment可以在一个单独的Activi ...

  8. Android开发——设置界面的创建

    前言: 最近忙着搞项目,难得有时间,便来整理搞项目中学习到的知识 使用之前,先介绍一下android这种的五种数据储存方式,分别为文件储存,SharePrefence,SQL,使用ContentPro ...

  9. 这才是Android设置界面的正确做法👌👌👌

    话不多说,先上效果图 本文参考简书博客:<这才是Android设置界面的正确做法>一文写成,在其基础上删改并增加了一些内容.建议新窗口打开原文,在本文讲述不清楚的地方参考原文去寻找答案. ...

随机推荐

  1. WebService核心文件【server-config.wsdd】详解及调用示例

    WebService核心文件[server-config.wsdd]详解及调用示例 作者:Vashon 一.准备工作 导入需要的jar包: 二.配置web.xml 在web工程的web.xml中添加如 ...

  2. .net 中使用配置文件需注意引用dll文件

    需要用到sqlhelper和配置文件时发现加了using System.Configuration;还是不能用ConfigurationManager. 查了几遍msdn未果,直接百度才发现还需要引用 ...

  3. MongoDB学习笔记——数据库操作

    使用use数据库名称来创建数据库,如果该数据库已经存在则返回这个数据库 语句格式:use DATABASE_NAME >use mynewdb switched to db mynewdb 使用 ...

  4. 编译hadoop遇到maven timeout

      在编译hadoop的过程中,使用ant jar进行编译时,提示maven版本库连接超时的问题,通过搜索发现,在如下文件的位置中有repo2的版本库地址,这个地址在国内,目前不能正常的访问:   将 ...

  5. nginx入门(安装,启动,关闭,信号量控制)

    公司使用到了nginx,于是周末初步接触了一下nginx,立即被其简洁,优雅,高效的特性给迷住了.nginx是在是个好东西,配置极其简单,容易理解,极其高效,稍微一调优,ab测试10k并发,很轻松.比 ...

  6. 《SQL Server企业级平台管理实践》读书笔记——关于SQL Server数据库的还原方式

    本篇是继上篇的备份方式,本篇介绍的是还原方案,在SQL Server在2005以上现有的还原方案一般分为以下4个级别的数据还原: 1.数据库完整还原级别: 还原和恢复整个数据库.数据库在还原和恢复操作 ...

  7. CentOS 7 修改时区(转)

    本文转载至:http://mathslinux.org/?p=637 Linux 系统(我特指发行版, 没说内核) 下大部分软件的风格就是不会仔细去考虑向后 的兼容性, 比如你上个版本能用这种程序配置 ...

  8. 图解SQL的inner join、left join、right join、full outer join、union、union all的区别

    转自:http://blog.csdn.net/jz20110918/article/details/41806611 假设我们有两张表.Table A 是左边的表.Table B 是右边的表.其各有 ...

  9. 第六篇 :微信公众平台开发实战Java版之如何自定义微信公众号菜单

    我们来了解一下 自定义菜单创建接口: http请求方式:POST(请使用https协议) https://api.weixin.qq.com/cgi-bin/menu/create?access_to ...

  10. 仅Firefox中A元素包含Select时点击Select不能选择option

    这是在使用京东的一个日期组件时碰到的bug,重现bug的代码精简如下 <!DOCTYPE HTML> <html> <head> <title> 仅Fi ...