微信布局

直接上代码吧

---------------------------------------- 头部 -----------------------------------------------

项目 /res/layout 目录下 创建 head.xml

<?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="50dp"
android:background="#21292c"
android:orientation="horizontal" > <TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:fontFamily="@string/kti"
android:padding="10dp"
android:text="@string/name"
android:textColor="#ffffff"
android:textSize="16sp" /> <TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1" /> <LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="center" > <ImageView
android:id="@+id/imageView1"
style="@style/headStyle"
android:layout_marginRight="30dp"
android:src="@drawable/fdj" /> <ImageView
android:id="@+id/imageView2"
style="@style/headStyle"
android:layout_marginRight="10dp"
android:src="@drawable/barbuttonicon_add" />
</LinearLayout> </LinearLayout>

head.xml

复制粘贴到自己的项目 发现好多好多的     报编译错误╭(╯^╰)╮

带@什么什么的大多都有配    (良心配方 ☞   ( ̄△ ̄;)   )

不急 不急   先来一个一个解决吧   ( ̄m ̄)

项目  下res 文件下 values 文件下 strings.xml 文件

(看到就打开复制粘贴   没看到ㄟ( ▔, ▔ )ㄏ   就在values下面创建一个 strings.xml 文件    .xml   文件啊(σ`д′)σ)

<?xml version="1.0" encoding="utf-8"?>
<resources> <string name="app_name">winxinmff微信界面</string>
<string name="hello_world">Hello world!</string>
<string name="action_settings">Settings</string>
<string name="name">微信</string>
<string name="tongxl">通讯录</string>
<string name="tabbar">发现</string>
<string name="ewo">我</string>
<string name="kti">楷体</string> </resources>

strings.xml

项目 下res文件下 values文件下 styles.xml 文件

(还是那句话 看的就复制粘贴)

<resources xmlns:android="http://schemas.android.com/apk/res/android">

    <!-- Base application theme, dependent on API level. This theme is replaced
by AppBaseTheme from res/values-vXX/styles.xml on newer devices. -->
<style name="AppBaseTheme" parent="android:Theme.Light">
<!-- Theme customizations available in newer API levels can go in res/values-vXX/styles.xml,
while customizations related to backward-compatibility can go here.
-->
</style> <!-- Application theme. -->
<style name="AppTheme" parent="AppBaseTheme">
<!-- All customizations that are NOT specific to a particular API-level can go here. -->
</style> <style name="radioStyle">
<item name="android:button">@null</item>
<item name="android:layout_weight">1</item>
<item name="android:gravity">center</item>
<item name="android:textColor">@drawable/text_color</item>
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">match_parent</item>
<item name="android:layout_marginTop">5dp</item>
<item name="android:layout_marginBottom">5dp</item>
<item name="android:textSize">9sp</item>
<item name="android:drawablePadding">5sp</item>
</style> <style name="headStyle">
<item name="android:layout_width">32dp</item>
<item name="android:layout_height">22dp</item>
</style> </resources>

styles.xml

项目下 /res/drawable-hdpi/text_color.xml 文件

<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_checked="true" android:color="@color/green"></item>
<item android:state_checked="false" android:color="@color/grey"></item> </selector>

text_color.xml

那啥  和  这玩意还有 是吧

这是图片   有几张是透明图片    自己看着办吧

如:

自己用鼠标拖拉一下就知道了

会用 git 的   可以去下面这个链接里面用 git clone 命令 下载图片

https://github.com/littleSeven7/sevenTeam   这个链接是它里面的图片

不管用什么方法下载下来

把图片放在 项目/res/drawable-hdpi下面   它会自动生成R文件

名字什么的就自己改改啦 <( ̄︶ ̄)>

头部的版就排成这样呐  o( ̄ヘ ̄o#)  感觉也不容易啊    (希望以后还看得懂)

排完头部   那就排底部   (先说好    自我感觉它比较麻烦 (ಥ _ ಥ) )

---------------------------------------- 底部 -----------------------------------------------

项目下 /res/layout/bottom.xml 文件

<?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:orientation="vertical" > <RadioGroup
android:id="@+id/radioButton1"
android:layout_width="match_parent"
android:layout_height="55dp"
android:background="@drawable/group_buton_nomal"
android:gravity="center"
android:orientation="horizontal"
> <RadioButton
android:id="@+id/radioButton2"
style="@style/radioStyle"
android:checked="true"
android:drawableTop="@drawable/tab_weixin"
android:text="@string/name" /> <RadioButton
android:id="@+id/radioButton3"
style="@style/radioStyle"
android:drawableTop="@drawable/tab_set"
android:text="@string/tongxl" /> <RadioButton
android:id="@+id/radioButton4"
style="@style/radioStyle"
android:drawableTop="@drawable/tab_find"
android:text="@string/tabbar" /> <RadioButton
android:id="@+id/radioButton5"
style="@style/radioStyle"
android:drawableTop="@drawable/tab_sddre"
android:text="@string/ewo" />
</RadioGroup> </LinearLayout>

bottom.xml

项目下/res/drawable-hdpi/tab_weixin.xml文件

<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:drawable="@drawable/tabbar_mainframe" android:state_checked="false"></item>
<item android:drawable="@drawable/tabbar_mainframehl" android:state_checked="true"></item>
<!-- --> </selector>

tab_weixin.xml

项目下/res/drawable-hdpi/tab_set.xml

<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:drawable="@drawable/tabbar_contacts" android:state_checked="false"></item>
<item android:drawable="@drawable/tabbar_contacts_hl" android:state_checked="true"></item>
<!-- --> </selector>

tab_set.xml

项目下/res/drawable-hdpi/tab_sddre.xml

<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" > <item android:drawable="@drawable/tabbar_me" android:state_checked="false"></item>
<item android:drawable="@drawable/tabbar_mehl" android:state_checked="true"></item> </selector>

tab_sddre.xml

项目下/res/drawable-hdpi/tab_find.xml

<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:drawable="@drawable/tabbar_discover" android:state_checked="false"></item>
<item android:drawable="@drawable/tabbar_discoverhl" android:state_checked="true"></item>
<!-- --> </selector>

tab_find.xml

底部就好了 <( ̄︶ ̄)>

---------------------------------------- 组拼 -----------------------------------------------

下面   就是   把它们两个拼凑起来  ◔ ‸◔?

项目下/res/layout/weixin.xml

<?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:orientation="vertical" > <LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" > <include
android:layout_width="match_parent"
android:layout_height="wrap_content"
layout="@layout/head" />
</LinearLayout>
<!-- 中间 --> <LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical" >
</LinearLayout>
<!-- 中间 --> <LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" > <include layout="@layout/bottom" />
</LinearLayout> </LinearLayout>

weixin.xml

这就就好了◔ ‸◔?

到这    算是好了吧

项目 下/什么什么Manifest.xml  清单文件里面

android:theme="@style/AppTheme"   这一行代码改下面的

android:theme="@android:style/Theme.DeviceDefault.Light.NoActionBar"

这是去   最上面那个黑色部分的    (运行是时候去除)

可以自己在加加工  让它好看的点

感觉还是好丑 o(︶︿︶)o

链接: http://pan.baidu.com/s/1pL51yTd 密码: ee1e

项目

android 安卓 微信布局 [1]的更多相关文章

  1. Android开发--微信布局(ListView)基本运用

    ListView 1.ListVeiw 用来展示列表的View. 2.适配器 用来把数据映射到ListView上的中介. 3.数据    具体的将被映射的字符串,图片,或者基本组件. 根据列表的适配器 ...

  2. Android之微信布局篇

    一.准备工作: 1. 下载好相关的图片: 2.创建一个名WeiChat的项目,将图片复制到res----->drawable-hdpi目录下. 二.编写代码: 1. 最终效果: 2.微信可划分为 ...

  3. Android UI-仿微信底部导航栏布局

    现在App基本的标配除了侧滑菜单,还有一个就是底部导航栏,常见的聊天工具QQ,微信,购物App都有底部导航栏,用户可以随便切换看不同的内容,说是情怀也好,用户体验也罢.我们开发的主要的还是讲的是如何如 ...

  4. 微信4.5 for Android安卓内测版体验【实时对讲】杀手级应用下载

    微信4.5 for Android 安卓 内测版 体验 程序启动画面,是一支在动的烛光 主要功能更新如下 支持语音提醒,到时间后自动弹出消息框 发起语音提醒请求 成功识别语音请求,并且保存在本地,应该 ...

  5. android 模拟微信消息框 BaseAdapter()方法 [2]

    在昨天的微信布局的基础上加内容 http://www.cnblogs.com/Seven-cjy/p/6098024.html 项目下/res/layout下创建一个 listview_layout. ...

  6. Android仿微信图片上传,可以选择多张图片,缩放预览,拍照上传等

    仿照微信,朋友圈分享图片功能 .可以进行图片的多张选择,拍照添加图片,以及进行图片的预览,预览时可以进行缩放,并且可以删除选中状态的图片 .很不错的源码,大家有需要可以下载看看 . 微信 微信 微信 ...

  7. Android安卓身份证识别SDK

    一.Android安卓身份证识别SDK应用背景 这些年,随着互联网金融的极速发展,第三方支付.理财.P2P网贷.征信等APP应用成爆发式的增长,在众多APP中都涉及到对身份证信息的录入,如第三方支付. ...

  8. Android的微信智能心跳方案

    原文地址: 年11月中旬时,因为基础组件组人手紧张,Leo安排我和春哥去广州轮岗支援.刚到广州的时候,Ray让我和春哥对Line和WhatsApp的心跳机制进行分析.我和春哥抓包测试了差不多两个多礼拜 ...

  9. Android FoldingLayout 折叠布局 原理及实现(二)

    转载请标明出处:http://blog.csdn.net/lmj623565791/article/details/44283093,本文出自:[张鸿洋的博客] 1.概述 在上一篇Android Fo ...

随机推荐

  1. Delphi TNativeXML Node节点乱码的一种解决方法

    Node1.WriteString(HomologousFieldItem.cXMLNodeCode, AnsiToUtf8(FieldByName(HomologousFieldItem.cMapp ...

  2. DataTable排序(来自其他空间)

    DataTable排序 DataRow[] rows = dataTable1.Select("", "ord asc"); DataTable t = Dat ...

  3. SQL 截图

  4. Flask+Mysql搭建网站之数据库问题

    关于 SQLAlchemy (1.0.8) 和 Flask-SQLAlchemy (2.0) SQLALchemy 是Python语言的SQL工具包及对象关系映射(ORM)工具.Flask-SQLAL ...

  5. H - Can you answer these queries? - (区间查询更新)

    有一列数,(都是2^63范围内的并且都大于0的整数),现在呢有一些操作, 操作 0 可以把区间LR内的所有数都变成它的平方根数(是取整后的),操作 1 可以就是求区间LR内的和了. 分析:因为这个操作 ...

  6. 小白鼓捣GIT的心得

    这篇文章写给那些之前没接触过git的开发人员,算是一个参考吧,希望能有所帮助,我也会尽量写的详细. 今天刚开通了博客,趁着兴致,想着把积累已久的git问题也一并搞懂吧,于是乎吃完饭开始鼓捣,从下载GI ...

  7. CloudFoundry Service 使用

    Mysql服务在V2版本号中github上有独立的releaseproject(cf-mysql-release),该release提供了一个Mysql-broker和一个Mysql-server和( ...

  8. Atitit.Gui控件and面板----数据库区-mssql 2008 权限 配置 报表查看成员

    Atitit.Gui控件and面板----数据库区-mssql 2008 权限 配置 报表查看成员 1. 配置server连接权限 1 2. 配置数据库权限 1 3. 设置表格/视图安全性 2 1.  ...

  9. 【iOS问题记录】关于UITableViewCell的高度、填充

    创建了继承自UITableViewCell的类,在创建该类的同时创建了.xib文件,在cell中填充UIImageView,其frame根据cell的frame调整.在.m中添加以下方法: -(id) ...

  10. Java基础知识强化94:Calendar类之Calendar概述和获取日历字段的方法

    1. Calendar类概述:       Calendar 类是一个抽象类,它为特定瞬间与一组诸如 YEAR.MONTH.DAY_OF_MONTH.HOUR 等 日历字段之间的转换提供了一些方法,并 ...