• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps How to use HorizontalScrollView?

Ankit2502

Newbie
Hello Friends,
I have some query regarding HorizontalScrollView, i want to produce a tab like effect on HorizontalScrollView means when i select a particular Tab item of that tab is visible and this whole view is scrollable.Does anybody know how to do this using HorizontalScrollView.....
 
Do you just mean:
Code:
<TabHost
        xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:app="http://schemas.android.com/apk/res/com.blundell"
    android:id="@android:id/tabhost"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">
        <TabWidget
        android:id="@android:id/tabs"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content" 
        />
        <HorizontalScrollView 
         android:id="@android:id/tabcontent"
         android:layout_height="fill_parent"
         android:layout_width="fill_parent">

                     <!-- Blah contents -->

        </HorizontalScrollView >
</TabHost>

This is a tab view with only one tab obviously
 
Back
Top Bottom