• 大小: 165KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-01-01
  • 语言: Java
  • 标签: TabHost  

资源简介

Android平台中的TabHost控件标签默认只能显示在屏幕上、下两侧,该样例为修改源码,自定义TabHost,实现标签栏居于屏幕左侧或右侧(居右侧,则只需要修改标签控件的相对布居位置)。

资源截图

代码片段和文件信息

/* AUTO-GENERATED FILE.  DO NOT MODIFY.
 *
 * This class was automatically generated by the
 * aapt tool from the resource data it found.  It
 * should not be modified by hand.
 */

package com.test.activity;

public final class R {
    public static final class attr {
    }
    public static final class drawable {
        public static final int contact=0x7f020000;
        public static final int group=0x7f020001;
        public static final int ic_launcher=0x7f020002;
        public static final int setting=0x7f020003;
        public static final int tab_bottom_left=0x7f020004;
        public static final int tab_bottom_left_v4=0x7f020005;
        public static final int tab_bottom_right=0x7f020006;
        public static final int tab_bottom_right_v4=0x7f020007;
    

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        364  2012-12-19 15:54  VerticalTabHost\.classpath

     文件        851  2012-12-26 17:07  VerticalTabHost\.project

     文件        874  2012-12-26 17:05  VerticalTabHost\AndroidManifest.xml

     文件       1248  2012-12-19 15:54  VerticalTabHost\proguard.cfg

     文件        360  2012-12-19 15:54  VerticalTabHost\project.properties

     文件      24348  2012-12-26 17:06  VerticalTabHost\src\com\test\widget\MyTabHost.java

     文件      15172  2012-12-26 17:06  VerticalTabHost\src\com\test\widget\MyTabWidget.java

     文件        975  2012-12-26 17:06  VerticalTabHost\src\com\test\activity\MainActivity.java

     文件        297  2012-12-26 17:06  VerticalTabHost\src\com\test\activity\TestActivity1.java

     文件        295  2012-12-26 17:06  VerticalTabHost\src\com\test\activity\TestActivity2.java

     文件        196  2012-12-19 15:54  VerticalTabHost\res\values\strings.xml

     文件       1626  2012-12-26 17:22  VerticalTabHost\res\layout\main.xml

     文件       1491  2012-12-26 14:07  VerticalTabHost\res\layout\tab_indicator.xml

     文件        459  2012-12-26 14:19  VerticalTabHost\res\layout\test_activity1.xml

     文件        468  2012-12-26 16:45  VerticalTabHost\res\layout\test_activity2.xml

     文件       2574  2012-12-19 15:54  VerticalTabHost\res\drawable-mdpi\ic_launcher.png

     文件       1723  2012-12-19 15:54  VerticalTabHost\res\drawable-ldpi\ic_launcher.png

     文件       4147  2012-12-19 15:54  VerticalTabHost\res\drawable-hdpi\ic_launcher.png

     文件        304  2012-12-26 10:21  VerticalTabHost\res\drawable-hdpi\tab_focus.9.png

     文件        143  2012-12-26 10:21  VerticalTabHost\res\drawable-hdpi\tab_focus_bar_left.9.png

     文件        143  2012-12-26 10:21  VerticalTabHost\res\drawable-hdpi\tab_focus_bar_right.9.png

     文件        304  2012-12-26 10:21  VerticalTabHost\res\drawable-hdpi\tab_press.9.png

     文件        146  2012-12-26 10:21  VerticalTabHost\res\drawable-hdpi\tab_press_bar_left.9.png

     文件        146  2012-12-26 10:21  VerticalTabHost\res\drawable-hdpi\tab_press_bar_right.9.png

     文件        953  2012-12-26 10:21  VerticalTabHost\res\drawable-hdpi\tab_selected.9.png

     文件        150  2012-12-26 10:21  VerticalTabHost\res\drawable-hdpi\tab_selected_bar_left.9.png

     文件        151  2012-12-26 10:21  VerticalTabHost\res\drawable-hdpi\tab_selected_bar_left_v4.9.png

     文件        150  2012-12-26 10:21  VerticalTabHost\res\drawable-hdpi\tab_selected_bar_right.9.png

     文件        151  2012-12-26 10:21  VerticalTabHost\res\drawable-hdpi\tab_selected_bar_right_v4.9.png

     文件        998  2012-12-26 10:21  VerticalTabHost\res\drawable-hdpi\tab_selected_v4.9.png

............此处省略95个文件信息

评论

共有 条评论