Hi,
I tried to add uiOptions, as my manifest file is as follows:
<uses-sdk
android:minSdkVersion="11"
android:targetSdkVersion="15" />
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@android:style/Theme.Holo"
android:uiOptions="splitActionBarWhenNarrow" >
<activity
android:name=".MainActivity"
android:label="@string/title_activity_main"
android:layout_gravity="bottom">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".MerchantTab" />
<activity android:name=".ConsumerTab" />
<activity android:name=".MyWallet" />
<activity android:name=".MerchantDetailsTab" />
</application>
~~~~~~~~~~~~~~~
in mainAcitivity:
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Anything else I might miss here?
Thanks
Summer
On Mon, Jan 14, 2013 at 6:39 PM, Summer <[email protected] <javascript:>>
wrote:
> > Hi, I am trying to use actionbar to generate tabs at bottom of the page.
> It
> > works fine to show the tabs at the top. but how to put it at bottom?
>
> Use android:uiOptions="splitActionBarWhenNarrow" on your <activity> or
> <application>.
>
> > I tried " android:uiOptions="splitActionBarWhenNarrow"" at Manifest
> file.
>
> This will only take effect in situations where the OS considers the
> display to be "narrow". Typically, that is a phone-sized screen in
> portrait. In all other circumstances, the action bar is not split.
>
> There is no other means of putting an "action bar" at the bottom.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Localized Android Question-and-Answer Sites: http://www.andglobe.com
>
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en