I have a layout with multiple buttons. Now I need to scroll them
horizontally.
Below is the part of my xml file. But I am not able to get the scroll
bar and also not able to see the Buttons 4 & 5.

                           <ScrollView
                                        android:id="@+id/ScrollView_Toolbar"
                                        android:layout_width="fill_parent"
                                        android:layout_height="wrap_content"
                                        android:scrollbars="horizontal"
                                        
android:layout_below="@id/ImageView_Divider">
                                        <RelativeLayout
                                                
android:layout_width="fill_parent"
                                                
android:layout_height="wrap_content"
                                                android:scrollbars="horizontal" 
>
                                                <Button
                                                        
android:id="@+id/Button_1"
                                                        
android:layout_width="80dp"
                                                        
android:layout_height="50dp"
                                                        
android:scrollHorizontally="true"
                                                        
android:layout_marginTop="7dp"
                                                        
android:scaleType="fitXY"
                                                        android:text="Button1"/>
                                                <Button
                                                        
android:id="@+id/Button_2"
                                                        
android:layout_width="80dp"
                                                        
android:layout_height="50dp"
                                                        
android:layout_toRightOf="@id/Button_1"
                                                        
android:scrollHorizontally="true"
                                                        
android:layout_marginLeft="10dp"
                                                        
android:layout_marginTop="7dp"
                                                        
android:scaleType="fitXY"
                                                        android:text="Button2"/>
                                                <Button
                                                        
android:id="@+id/Button_3"
                                                        
android:layout_width="80dp"
                                                        
android:layout_height="50dp"
                                                        
android:layout_toLeftOf="@id/Button_1"
                                                        
android:scrollHorizontally="true"
                                                        
android:layout_marginRight="10dp"
                                                        
android:layout_marginTop="7dp"
                                                        
android:scaleType="fitXY"
                                                        android:text="Button3"/>
                                                <Button
                                                        
android:id="@+id/Button_4"
                                                        
android:layout_width="80dp"
                                                        
android:layout_height="50dp"
                                                        
android:layout_toRightOf="@id/Button_2"
                                                        
android:scrollHorizontally="true"
                                                        
android:layout_marginLeft="10dp"
                                                        
android:layout_marginTop="7dp"
                                                        
android:scaleType="fitXY"
                                                        android:text="Button4"/>
                                                <Button
                                                        
android:id="@+id/Button_5"
                                                        
android:layout_width="80dp"
                                                        
android:layout_height="50dp"
                                                        
android:layout_toLeftOf="@id/Button_3"
                                                        
android:scrollHorizontally="true"
                                                        
android:layout_marginRight="10dp"
                                                        
android:layout_marginTop="7dp"
                                                        
android:scaleType="fitXY"
                                                        android:text="Button5"/>
                                        </RelativeLayout>
                                </ScrollView>

Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to