2012-06-06 22 views
-3

我想知道是否有無論如何有to decrease the size of menu items displayed從任何XML或通過編碼...?反正使菜單項小...?

另一個問題是,我可以在屏幕底部繪製tabwidget。我的意思是我想讓他們在底部我可以做那個......?

另一個問題是,在android中有沒有two column list view。現在我知道有一個list view with two item,但他們跟着對方。一個是低於另一個,但有任何listview有列就像在一張桌子......?

+0

不要將標籤上的小部件底部。它的超級容易做,但Android設計指南告訴不要...... –

+3

這看起來像三個單獨的問題。 –

+0

所以,如果我問三個單獨的問題,最新的問題......? – kashifmehmood

回答

1

要回答你的第三個問題,你可以找到很好的教程在這裏:

http://www.technotalkative.com/android-multi-column-listview/ 

要回答你的第二個問題,你可以做如下:

<?xml version="1.0" encoding="utf-8"?> 
<TabHost xmlns:android="http://schemas.android.com/apk/res/android" 
    android:id="@android:id/tabhost" 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent"> 
    <LinearLayout 
     android:orientation="vertical" 
     android:layout_width="fill_parent" 
     android:layout_height="fill_parent" 
     android:padding="5dp"> 

     <FrameLayout 
      android:id="@android:id/tabcontent" 
      android:layout_width="fill_parent" 
      android:layout_height="fill_parent" 
      android:padding="5dp" /> 
<TabWidget 
      android:id="@android:id/tabs" 
      android:layout_width="fill_parent" 
      android:layout_height="wrap_content" /> 
    </LinearLayout> 
</TabHost>