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差异化市场依然很大,依然 ...
随机推荐
- rtl-sdr在win7和ubuntu16.04的安装
硬件准备 RTL2832+R820T2 usb dongle x 1 Long wire antenna x 1 USB电视棒的购买: 在淘宝上搜索"软件无线电"或"rt ...
- 通过#define连接字符串的特殊方法[转]
//在#define中,标准只定义了#和##两种操作.#用来把参数转换成字符串,##则用来连接两个前后两个参数,把它们变成一个字符串. #define Conn(x,y) x##y //连接 ...
- 转:修改ETM,用Ogre实现《天龙八部》地形与部分场景详解
本文主要讲的是<天龙八部>游戏的地形和一部分场景的具体实现,使用C++, Ogre1.6,我摸索了段时间,可能方法用的并不是最好的,但好歹实现了.文章可能讲得有点罗嗦,很多简单的东西都讲了 ...
- 【已解决】mysql连接出错:ERROR 1040 (HY000): Too many connections
连接mysql,结果出错: ? 1 ERROR 1040 (HY000): Too many connections 去修改mysql的配置文件,然后添加: ? 1 2 3 4 5 6 7 8 9 1 ...
- BigDecimal的用法详解(保留两位小数,四舍五入,数字格式化,科学计数法转数字,数字里的逗号处理)
转自:https://blog.csdn.net/ochangwen/article/details/51531866 一.简介 Java在java.math包中提供的API类BigDecimal,用 ...
- null的数据类型
Oracle的NULL代表的含义是不确定,那么不确定的东西也会有确定的数据类型吗?或者换个说法,NULL在Oracle中的默认数据类型是什么,下面就来探讨这个问题. 首先公布答案,NULL的默认类型是 ...
- mac安装thrift
一.安装brew包管理工具 不想Ubuntu自带apt,redhat自带yum,mac是不自带包管理工具的.需要自己安装,最常用的是brew,Homebrew简称brew,OSX上的软件包管理工具,在 ...
- Ubuntu菜鸟入门(十四)—— 设置root密码
sudo su - 输入你的账户的密码 passwd 输入新的root密码 再次输入新的root密码
- magento注册
1. 地址保存 $_custom_address = array ( 'firstname' => 'Branko', 'lastname' => 'Ajzele', 'street' = ...
- VS与SQL资源
经常在网上看到有同学费尽心思的找SQL server数据库各版本的下载地址,看到别人的求助贴就不自觉的想去帮助他们,但是一个一个去帮助又不太现实,毕竟个人精力有限,既然大家有需求,那么笔者就本着乐于分 ...