android - Relative Layout with HorizontalScrollView -


i trying set imagebuttons in horizontal scroll view appears under frame layout. below have done far. however, scrolls everything, including frame layout. how avoid that? or in way @ it, i'm trying take navigation drawer , lay down instead of popping out side? maybe there's way replicate that? overall goal looks similar old blackberry scroll menu.

<android.support.v4.widget.drawerlayout     xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:tools="http://schemas.android.com/tools"     android:id="@+id/drawer_layout"     android:layout_width="match_parent"     android:layout_height="match_parent"     tools:context=".dmactivity">     <horizontalscrollview         android:layout_width="fill_parent"         android:layout_height="fill_parent">     <relativelayout         android:layout_width="fill_parent"         android:layout_height="fill_parent"         android:orientation="vertical"         android:gravity="center">         <framelayout             android:id="@+id/container"             android:layout_width="match_parent"             android:layout_height="900px"></framelayout>         <imagebutton             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:layout_below="@+id/container"             android:src="@drawable/directmessage_button"             android:id="@+id/btn_directmessages"             android:background="#0000"             android:padding="20px"             android:focusableintouchmode="false" />         <imagebutton             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:layout_below="@+id/container"             android:src="@drawable/instantmessage_button"             android:id="@+id/btn_instantmessage"             android:layout_torightof="@+id/btn_directmessages"             android:background="#0000"             android:padding="20px"             android:focusableintouchmode="false"/>         <imagebutton             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:layout_below="@+id/container"             android:layout_torightof="@+id/btn_instantmessage"             android:src="@drawable/reports_button"             android:id="@+id/btn_reports"             android:background="#0000"             android:padding="20px"             android:focusableintouchmode="false"/>         <imagebutton             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:src="@drawable/conference_button"             android:id="@+id/btn_conference"             android:layout_torightof="@+id/btn_reports"             android:layout_below="@+id/container"             android:background="#0000"             android:padding="20px"             android:focusableintouchmode="false"/>         <imagebutton             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:src="@drawable/account_button"             android:id="@+id/btn_account"             android:layout_torightof="@id/btn_conference"             android:layout_below="@+id/container"             android:background="#0000"             android:padding="20px"/>         <imagebutton             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:src="@drawable/filetransfer_button"             android:id="@+id/btn_filetransfer"             android:layout_below="@id/container"             android:layout_torightof="@+id/btn_account"             android:background="#0000"             android:padding="20px"/>     </relativelayout> </horizontalscrollview>     <fragment android:id="@+id/navigation_drawer"         android:layout_width="@dimen/navigation_drawer_width"         android:layout_height="match_parent"         android:layout_gravity="start"         android:name="datamotion.dmandroidclient.navigationdrawerfragment"         tools:layout="@layout/fragment_navigation_drawer" /> </android.support.v4.widget.drawerlayout> 

i don't know if understood well, use library horizontal scroll, can implement horizontal listview , inside put imagebuttons vertical listview.

https://github.com/sephiroth74/horizontalvariablelistview

hope helps you.


Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -

php - $params->set Array between square bracket -