I have following layout, I would like to make it so that my 3 buttons each 
display individually on the page. 
Basically since I only have 3 buttons I would like it so when I select / 
click one, that button is centered and expands the width of the page
then the other buttons show slightly so the user understands that there is 
more to see if they scroll .. 

I found this example online of how mine looks, but would like to see if its 
possible to make it as described.

Found example:

<http://www.webdefllo.com/content/codes/horizontal-scrollview-autoscroll-screenshot2.png>
What I would like it to look like:
<https://lh3.googleusercontent.com/-mgmh6y9pwZU/VBzgfUh9-BI/AAAAAAAAAAs/HTIxPNqmOBY/s1600/scrollbutton.jpg>

Can my layout be changed to accomplish this look?

Here is my current layout:


<?xml version=*"1.0"* encoding=*"utf-8"*?>

<LinearLayout xmlns:android=*"http://schemas.android.com/apk/res/android 
<http://schemas.android.com/apk/res/android>"*

    android:layout_width=*"fill_parent"*

    android:layout_height=*"fill_parent"*

    android:orientation=*"vertical"* >

 

    <HorizontalScrollView

        android:id=*"@+id/horizontalScrollView1"*

        android:layout_width=*"wrap_content"*

        android:layout_height=*"wrap_content"* 

        android:layout_marginTop=*"10dp"*>

 

        <LinearLayout

            android:layout_width=*"wrap_content"*

            android:layout_height=*"wrap_content"*

            android:orientation=*"horizontal"* >

            

                <Button

                             style=*"@style/btnBlackTextOrange"*

                             android:id=*"@+id/btnPending"*

                             android:layout_width=*"0px"*

                             android:layout_weight=*"1"*

                             android:text=*"@string/pending"*

                             android:layout_marginLeft=*"15dp"*

                             android:paddingLeft=*"15dp"*

                             android:paddingRight=*"15dp"*/>

                

                <Button

                             style=*"@style/btnBlackTextOrange"*

                             android:id=*"@+id/btnPurchaseOrders"*

                             android:layout_width=*"0px"*

                             android:layout_weight=*"1"*

                             android:text=*"@string/purchaseorders"*

                             android:layout_marginLeft=*"15dp"*

                             android:paddingLeft=*"15dp"*

                             android:paddingRight=*"15dp"* />

                

                <Button

                             style=*"@style/btnBlackTextOrange"*

                             android:id=*"@+id/btnMasterPartList"*

                             android:layout_width=*"0px"*

                             android:layout_weight=*"1"*

                             android:text=*"@string/masterparts"*

                             android:layout_marginLeft=*"15dp"*

                             android:layout_marginRight=*"15dp"*

                             android:paddingLeft=*"15dp"*

                             android:paddingRight=*"15dp"* />                


                

        </LinearLayout>

    </HorizontalScrollView>
 
    <ListView

        android:id=*"@+id/listView1"*

        android:layout_width=*"fill_parent"*

        android:layout_height=*"fill_parent"* >

    </ListView>
 
</LinearLayout>

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to