2012-04-28 3 views
1

私はタブを左側に縦に表示したいと思っています。私は、tabwidgetでAndroid - Honeycombでtabhost/tabwidgetを縦書きで表示するにはどうすればいいですか?

を使用しています。これを含めると、マニフェストファイルに

<uses-sdk android:minSdkVersion="11"/> 

が表示されます。しかし、インターネットデータベースに接続しているコードでバージョンを「3」に設定する必要があるため、バージョンを3に変更するとタブを表示できません。

ここに誰でもこの問題を解決するのに役立つことを願っています。私はこれで数週間苦労していますが、まだ解決できません。私のための任意の提案またはどのようにsdkバージョンの問題を解決するようにすべての私のコードは、そのSDKのバージョンで正常に動作することができます。緊急にあなたの助けが必要です。ありがとうございました

<TabHost 
xmlns:android="http://schemas.android.com/apk/res/android" 
android:id="@android:id/tabhost" 
android:layout_width="match_parent" 
android:layout_height="match_parent" 
> 
<LinearLayout android:orientation="horizontal" 
       android:layout_width="match_parent" 
       android:layout_height="match_parent"> 
    <TabWidget android:id="@android:id/tabs" 
       android:layout_height="match_parent" 
       android:layout_width="380dip" 
       android:layout_weight="0" 
       android:orientation="vertical" 
       android:background="#ffe185" 
       /> 
    <FrameLayout android:id="@android:id/tabcontent" 
       android:layout_height="match_parent" 
       android:layout_width="0dip" 
       android:layout_weight="1" 
       android:background="#ffffff"/> 
</LinearLayout> 
</TabHost> 

答えて

0

API 8までmatch_parentは利用できなくなりました。fill_parentに置き換えてください。 API 4に戻る場合は、Android Support Libraryを使用できます。

関連する問題