<?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笔记---主界面(一)的更多相关文章

  1. android笔记---主界面(二)自定义actionbar环境的配置

    第一步,添加java文件 第二步,添加actionbar的item文件 是个选择器,点中状态和选中状态 <?xml version="1.0" encoding=" ...

  2. Android应用主界面底部菜单实现

    介绍 现在绝大多数主流的应用主界面,都会包含一个底部菜单,就拿腾讯的QQ与微信来说,看起来是这样的  <---我是底部菜单 原理 在很久以前,可以通过TabActivity实现相关功能,自从Fr ...

  3. [模拟Android微信]主界面

    首先看很像模仿: 走出来: 实现过程: 依赖类库:actionbarsherlock 用actionbarsherlock来实现顶部的搜索的效果. tab用的是Viewpaper实现的. 详细细节: ...

  4. 【Android】5.0 第5章 常用基本控件--本章示例主界面

    分类:C#.Android.VS2015: 创建日期:2016-02-06 这一章主要介绍Android简单控件的基本用法.本章源程序共有9个示例,这些示例都在同一个项目中. 项目名:ch05demo ...

  5. Android 之高仿微信主界面

    源码下载:  http://files.cnblogs.com/aibuli/WeChatSample.zip 主界面主要使用ActionBar来完成.  要实现这个效果,第一步当然是编辑menu目录 ...

  6. android布局实践——模仿微信主界面

    这是目前微信6.0版本的主界面 先来分析一波: 1.(top.xml)界面头部有一个微信(6)消息提醒    一个搜索图标   一个更多的的图标+,中间还有一段空白,我们可以弄两个textView(其 ...

  7. Android小项目之十一 应用程序的主界面

    ------- 源自梦想.永远是你IT事业的好友.只是勇敢地说出我学到! ---------- 按惯例,写在前面的:可能在学习Android的过程中,大家会和我一样,学习过大量的基础知识,很多的知识点 ...

  8. android退出登陆后,清空之前所有的activity,进入登陆主界面

    如题: android退出登陆后,清空之前所有的activity,进入登陆主界面 在退出登陆时只需要增加一个intent标志 Intent intent_login = new Intent(); i ...

  9. Android学习系列(22)--App主界面比较

    本文算是一篇漫谈,谈一谈当前几个流行应用的主界面布局,找个经典的布局我们自己也来实现一个.不是为了追求到底有多难,而是为了明白我们确实需要这么做. 走个题,android的UI差异化市场依然很大,依然 ...

随机推荐

  1. Windows遇到ERR_NETWORK_ACCESS_DENIED处理方案

    问题描述: 用了总部vpn,总是打不开总部资源,之前可以一直提示,禁止访问互联网ERR_NETWORK_ACCESS_DENIED, 郁闷了好几天,今天自己查查资料解决了!说明,问题总是能解决的,只是 ...

  2. 调用布局View的performClick()方法

    修改之前的xml片段.             <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/an ...

  3. Git提交代码报错Git push error:src refspec XXX matches more than one解决方案

    Git提交代码push时,报错这个 error: src refspec master matches more than one. error: failed to push some refs t ...

  4. HDUOJ-----1074 Integer Inquiry

    Integer Inquiry Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)T ...

  5. 树莓派进阶之路 (009) - 树莓派ftp脚本(原创)

    FTP.sh #!/bin/sh cd echo "彻底卸载原有的ftp" sudo apt-get remove --purge vsftpd #(--purge 选项表示彻底删 ...

  6. webpack window dev-server配置

    1.安装webpack dev-server npm install --save-dev webpack webpack-dev-server 著作权归作者所有.商业转载请联系作者获得授权,非商业转 ...

  7. 基于js利用经纬度进行两地的距离计算(转)

    转自:http://www.storyday.com/html/y2009/2212_according-to-latitude-and-longitude-distance-calculation- ...

  8. 【SqlServer】如何把本地SqlServer数据库部署到远程服务器上

    这里笔者使用的使用SqlServer2012,本机和远程环境均为Win7. 1.选中需要部署的数据库,右击>任务>分离.选中删除连接. 2.现在在左侧的表中就看不见刚才那个数据了. 3.在 ...

  9. Python读文本文件中文乱问题

    file_object = open('thefile.txt')try: all_the_text = file_object.read().decode("gb2312")fi ...

  10. 使用Unified Auditing Policy审计数据泵导出操作

    1.创建审计策略 SQL> alter session set container=pdb1; SQL> create or replace directory dumpdir as '/ ...