android笔记---主界面(一)
<?xml version="1.0" encoding="utf-8"?>
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:bar="http://schemas.android.com/apk/res/com.talented"
android:id="@+id/tabhost"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#efefef"
android:orientation="vertical" > <RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent" > <com.talented.actionbar.ActionBar
android:id="@id/gd_action_bar"
android:layout_width="fill_parent"
android:layout_height="@dimen/gd_action_bar_height"
android:background="?attr/gdActionBarBackground"
bar:title="@string/app_name"
bar:type="normal" />
<!--RadioGroup中同一时刻只有一个RadioButton被选中-->
<RadioGroup
android:id="@+id/numbers_radio"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:background="@drawable/tab_bg"
android:orientation="horizontal" > <RadioButton
android:id="@+id/action_radio_1"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@drawable/blk_find_tab"
android:button="@null"
android:checked="true"
android:drawableTop="@drawable/talented_tab_search"
android:drawingCacheQuality="high"
android:gravity="center"
android:paddingBottom="3dp"
android:paddingTop="3dp"
android:text="@string/app_tab_name_1"
android:textColor="@color/search_colorbg"
android:textSize="12.0sp"
android:textStyle="normal" /> <RadioButton
android:id="@+id/action_radio_2"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@drawable/blk_find_tab"
android:button="@null"
android:checked="false"
android:drawableTop="@drawable/talented_tab_person"
android:drawingCacheQuality="high"
android:gravity="center"
android:paddingBottom="3dp"
android:paddingTop="3dp"
android:text="@string/app_tab_name_2"
android:textColor="@color/search_colorbg"
android:textSize="12.0sp"
android:textStyle="normal" /> <RadioButton
android:id="@+id/action_radio_3"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@drawable/blk_find_tab"
android:button="@null"
android:checked="false"
android:drawableTop="@drawable/talented_tab_storage"
android:drawingCacheQuality="high"
android:gravity="center"
android:paddingBottom="3dp"
android:paddingTop="3dp"
android:text="@string/app_tab_name_3"
android:textColor="@color/search_colorbg"
android:textSize="12.0sp"
android:textStyle="normal" /> <RadioButton
android:id="@+id/action_radio_4"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@drawable/blk_find_tab"
android:button="@null"
android:checked="false"
android:drawableTop="@drawable/talented_tab_access"
android:drawingCacheQuality="high"
android:gravity="center"
android:paddingBottom="3dp"
android:paddingTop="3dp"
android:text="@string/app_tab_name_4"
android:textColor="@color/search_colorbg"
android:textSize="12.0sp"
android:textStyle="normal" />
</RadioGroup> <LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_above="@+id/numbers_radio"
android:layout_below="@id/gd_action_bar"
android:orientation="vertical" > <FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="0dp"
android:layout_weight="1" >
</FrameLayout> <TabWidget
android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:visibility="gone" >
</TabWidget>
</LinearLayout> <ImageView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_above="@+id/numbers_radio"
android:background="@drawable/search_shadow_up" /> <ImageView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@id/gd_action_bar"
android:background="@drawable/title_bar_shadow" />
</RelativeLayout> </TabHost>
android笔记---主界面(一)的更多相关文章
- android笔记---主界面(二)自定义actionbar环境的配置
第一步,添加java文件 第二步,添加actionbar的item文件 是个选择器,点中状态和选中状态 <?xml version="1.0" encoding=" ...
- Android应用主界面底部菜单实现
介绍 现在绝大多数主流的应用主界面,都会包含一个底部菜单,就拿腾讯的QQ与微信来说,看起来是这样的 <---我是底部菜单 原理 在很久以前,可以通过TabActivity实现相关功能,自从Fr ...
- [模拟Android微信]主界面
首先看很像模仿: 走出来: 实现过程: 依赖类库:actionbarsherlock 用actionbarsherlock来实现顶部的搜索的效果. tab用的是Viewpaper实现的. 详细细节: ...
- 【Android】5.0 第5章 常用基本控件--本章示例主界面
分类:C#.Android.VS2015: 创建日期:2016-02-06 这一章主要介绍Android简单控件的基本用法.本章源程序共有9个示例,这些示例都在同一个项目中. 项目名:ch05demo ...
- Android 之高仿微信主界面
源码下载: http://files.cnblogs.com/aibuli/WeChatSample.zip 主界面主要使用ActionBar来完成. 要实现这个效果,第一步当然是编辑menu目录 ...
- android布局实践——模仿微信主界面
这是目前微信6.0版本的主界面 先来分析一波: 1.(top.xml)界面头部有一个微信(6)消息提醒 一个搜索图标 一个更多的的图标+,中间还有一段空白,我们可以弄两个textView(其 ...
- Android小项目之十一 应用程序的主界面
------- 源自梦想.永远是你IT事业的好友.只是勇敢地说出我学到! ---------- 按惯例,写在前面的:可能在学习Android的过程中,大家会和我一样,学习过大量的基础知识,很多的知识点 ...
- android退出登陆后,清空之前所有的activity,进入登陆主界面
如题: android退出登陆后,清空之前所有的activity,进入登陆主界面 在退出登陆时只需要增加一个intent标志 Intent intent_login = new Intent(); i ...
- Android学习系列(22)--App主界面比较
本文算是一篇漫谈,谈一谈当前几个流行应用的主界面布局,找个经典的布局我们自己也来实现一个.不是为了追求到底有多难,而是为了明白我们确实需要这么做. 走个题,android的UI差异化市场依然很大,依然 ...
随机推荐
- RHEL7体验KVM虚拟机
KVM是基于内核2.6+的虚拟化,前提是硬件须支持虚拟化! Red Hat Enterprise Virtualization-Management,即RHEV-M(管理多个RHEV-H系统) 虚拟化 ...
- 代理Proxy初探
Proxy,也就是"代理"了. 意思就是.你不用去做,别人取代你去处理.比方说:租房.你仅仅要找到"我爱我家"中介,把全部的事情交给他们去代劳, "我 ...
- Uploadify in ASP.Net
和分页类似,文件上传是web开发标配的技能之一.下面介绍Uploadify的配置和使用. 一.配置 首先到Uploadify官网下载,然后在项目中添加相应引用.前台代码如下: 1.jquery.js2 ...
- winform视频教程-任务定时循环执行小工具
有时候,我们可能遇到这样的一种需求,就是需要有一个小工具,在服务器中不断的执行一些任务,那么这样的需求,我们可以做一个windows服务程序,或者做一个winform wpf等小程序,然后小程序里面开 ...
- <转>lua解释执行脚本流程
本文转自:http://www.cnblogs.com/zxh1210603696/p/4458473.html #include "lua.hpp" #include <i ...
- Idea导出可运行Jar包
一.导出Jar包可以使用Maven方式 <project> ... <packaging>jar</packaging> ... <build> < ...
- maven Missing artifact com.sun:tools:jar:1.5.0
转自:http://blog.csdn.net/caolaosanahnu/article/details/7918929 http://zuoshahao.com/work/others/missi ...
- 使用btrace来找出执行慢的方法
转载于:https://shaojun.name/2016/07/260 btrace script import static com.sun.btrace.BTraceUtils.name; im ...
- LNMP分离式部署实例[转]
很多人在练习部署LNMP环境的时候,大都数是部署在同一个虚拟机上面的.但是实际工作中,我们一般都是分离部署的. 今天我就用3台虚拟机,部署下LNMP环境.以供参考! 网络拓扑图: 首先准备3台虚拟机: ...
- STAF进行分布式脚本分发----实践篇
该博文理论支持文章:http://www.cnblogs.com/zhangfei/p/3169139.html 一.准备条件 1.安装STAF.由于其官网被墙了,所以大家可进入WAT群的网盘里去下载 ...