布局代码如下:

<?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. IOS之未解问题--关于IOS图像渲染CPU和GPU

    前言:先上一个图.关于UIKit底层渲染机制,这个有待以后花大把时间收集资料和学习,然后汇总,将整篇"未解问题"去除. 反思:半个月前阿里电话面试,问道一个问题图像渲染什么时候回用 ...

  2. 8 Regular Expressions You Should Know

    Regular expressions are a language of their own. When you learn a new programming language, they're ...

  3. Android Design Support Library——Snackbar

    Snackbar是一个轻量级控件,它可以很方便的提供消息的提示和动作反馈,类似于Toast.Snackbar包括一段文字信息与一个可选的操作按钮,超时自动隐藏,也可以通过滑动来删除.效果如下所示: S ...

  4. Java 读取大文件方法

    需求:实际开发中读取文本文件的需求还是很多,如读取两个系统之间FTP发送文件,读取后保存到数据库中或日志文件的数据库中保存等. 为了测试首先利用数据库SQL生成大数据文件. 规则是 编号|姓名|手机号 ...

  5. 机器学习六--K-means聚类算法

    机器学习六--K-means聚类算法 想想常见的分类算法有决策树.Logistic回归.SVM.贝叶斯等.分类作为一种监督学习方法,要求必须事先明确知道各个类别的信息,并且断言所有待分类项都有一个类别 ...

  6. 如何在CALayer设置滤镜

    网上有很多关于CALayer中设置filtes属性的相关资料比如如何设置一个带滤镜的layer,代码如下: NSImage* image = [NSImage imageNamed:@"IM ...

  7. VMware 12Pro 安装MACOS 10.10

    前言 最近帮人MacBook PRO重新安装了下10.10,在加上用了IP6,对苹果系统很有好感,所以想自己装个mac系统玩一下.虽然有了surface pro3 但是看了时间久了厌了,好想买个MAC ...

  8. FZU Problem 2150 Fire Game

    Problem 2150 Fire Game Accept: 145    Submit: 542 Time Limit: 1000 mSec    Memory Limit : 32768 KB P ...

  9. UEdit初始化加载内容偶尔失败,解决

    var ue1 = UE.getEditor('aaa',{toolbars: [],autoHeightEnabled: false}); $(function(){ var content =$( ...

  10. [转]Android输出Log到文件

    前言:开发中遇到mx4这款机型Eclipse联调不上,logcat看不了,需要输出生成文件查看调试信息.网上搜了下,功能很完善了.startService和过滤输出信息需要自己添加设置,另外注意添加权 ...