andrid底部导航栏设计Word格式文档下载.docx
《andrid底部导航栏设计Word格式文档下载.docx》由会员分享,可在线阅读,更多相关《andrid底部导航栏设计Word格式文档下载.docx(8页珍藏版)》请在冰豆网上搜索。
encoding="
UTF-8"
>
TabHostandroid:
id="
@android:
id/tabhost"
android:
layout_width="
fill_parent"
layout_height="
xmlns:
android="
<
LinearLayoutandroid:
orientation="
vertical"
FrameLayoutandroid:
id/tabcontent"
0.0dip"
layout_weight="
/>
TabWidgetandroid:
id/tabs"
visibility="
gone"
wrap_content"
0.0"
RadioGroup
gravity="
center_vertical"
layout_gravity="
bottom"
horizontal"
@id/main_radio"
background="
@drawable/maintab_toolbar_bg"
RadioButton
@id/radio_button0"
layout_marginTop="
2.0dip"
text="
@string/main_home"
drawableTop="
@drawable/icon_1_n"
style="
@style/main_tab_bottom"
@id/radio_button1"
@string/main_news"
@drawable/icon_2_n"
@id/radio_button2"
@string/main_manage_date"
@drawable/icon_3_n"
@id/radio_button3"
@string/main_friends"
@drawable/icon_4_n"
@id/radio_button4"
@string/more"
@drawable/icon_5_n"
/RadioGroup>
/LinearLayout>
/TabHost>
[2]res/drawable下的home_btn_bg.xml源码:
selector
itemandroid:
state_focused="
true"
state_enabled="
state_pressed="
false"
drawable="
@drawable/home_btn_bg_s"
state_checked="
@drawable/home_btn_bg_d"
@drawable/transparent"
/selector>
[3]res/values下的源码:
dimens.xml源码
utf-8"
resources>
dimenname="
bottom_tab_font_size"
10.0sp<
/dimen>
bottom_tab_padding_up"
5.0dip<
bottom_tab_padding_drawable"
2.0dip<
switch_logo_bottom_padding"
30.0sp<
widget_height"
100.0dip<
sta_height"
48.0dip<
large_padding_length"
20.0dip<
widget_write_margin_top"
19.0dip<
widget_write_margin_left"
10.0dip<
widget_content_margin_top"
widget_content_margin_left"
widget_logo_size"
35.0dip<
title_height"
74.0dip<
new_blog_size"
70.0dip<
emotion_item_view_height"
13.299988dip<
splash_test_top_margin_top"
splash_test_center_margin_right"
0.0dip<
title_text_size"
20.0sp<
normal_padding_length"
no_result_padding_length"
50.0dip<
/resources>
drawables.xml源码:
itemtype="
drawable"
name="
ltgray"
#fff4f4f4<
/item>
ltyellow"
#fffff4db<
black"
#ff000000<
transparent"
#00000000<
widget_edit_block_bg_normal"
color/transparent<
transparent_background"
#99000000<
list_background"
namcard_picker_bkg_normal"
#ff272727<
namcard_picker_bkg_hover"
#ff333333<