<?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. .NET网址

    1.爱整理:http://www.aizhengli.com/

  2. 图解Win7如何手动添加受信任证书

    点击开始—>运行,如下图所示:   弹出“控制台”窗口如下,如下图所示:   点击“文件—添加/删除管理单元”,如下图所示:   选择“证书”,并点击“添加”,如下图所示:   在弹出的窗口上选 ...

  3. Linux和windows下内核socket优化项 (转)

    问题: No buffer space available Linux: vi /etc/sysctl.conf net.core.netdev_max_backlog = 30000  每个网络接口 ...

  4. win8下硬盘安装Ubuntu12.04双系统成功记录

    一开始是在windows下VirtualBox虚拟机中搞了一个Ubuntu玩,时间一长,感觉卡的厉害,浪费时间,那就装个双系统! 在win8下磁盘管理中的最后一个盘中压缩出20G左右的空闲硬盘分区: ...

  5. (原)tensorflow中函数执行完毕,显存不自动释放

    转载请注明出处: http://www.cnblogs.com/darkknightzh/p/7608916.html 参考网址: https://stackoverflow.com/question ...

  6. 比较JSF、Spring MVC、Stripes、Struts 2、Tapestry、Wicket

    2009-06-23 Java Web层框架--JSF.Spring MVC.Stripes.Struts 2.Tapestry和Wicket他们各自的优点和缺点: JSF 优点: ◆Java EE标 ...

  7. mysql8.0 Authentication plugin 'caching_sha2_password' cannot be loaded

    安装mysql8.0后使用navicat创建连接, 然后报如题所示警告.可参考如下解决方案: https://stackoverflow.com/questions/49194719/authenti ...

  8. Java Exceptions

    invalid end header( bad central directory size) 异常描述 java.util.zip.ZipException: invalid END header ...

  9. Linux主要shell命令详解(上)

    [摘自网络] kill -9 -1即实现用kill命令退出系统 Linux主要shell命令详解 [上篇] shell是用户和Linux操作系统之间的接口.Linux中有多种shell,其中缺省使用的 ...

  10. google开发新人入职100天,聊聊自己的经验&教训 个人对编程和开发的理解 技术发展路线

    新人入职100天,聊聊自己的经验&教训 这篇文章讲了什么? 如题,本屌入职100天之后的经验和教训,具体包含: 对开发的一点感悟. 对如何提问的一点见解. 对Google开发流程的吐槽. 如果 ...