How we can use slider Drawer from left to right orientation in Android

后端 未结 1 977
-上瘾入骨i
-上瘾入骨i 2021-01-16 05:41

How we can use slider Drawer from left to right flow in Android Tablet. by default slider flow from bottom to top, but when we give horizontal orientation to it , it\'s fl

相关标签:
1条回答
  • 2021-01-16 06:22

    enter image description here

    Do you need something like this..

     <com.example.example.SlidingDrawer
         xmlns:my="http://schemas.android.com/apk/res/com.example.example"
         android:id="@+id/drawer"
         android:layout_width="301dp"
         android:layout_height="wrap_content"
         my:content="@+id/content"
         my:direction="leftToRight"
         my:handle="@+id/handle" >
          <ImageView 
       android:id="@+id/handle"
       android:layout_width="wrap_content"
       android:layout_height="fill_parent" 
       android:src="@drawable/tags"/>
    
      <LinearLayout
          android:id="@+id/content"
          android:layout_width="wrap_content"
          android:layout_height="fill_parent"
          android:background="@drawable/slidimage"
          android:orientation="vertical"
          android:layout_gravity="right"
          android:padding="10dp" >
    </LinearLayout>
        </com.example.example.SlidingDrawer>
    

    Here you can find example.

    0 讨论(0)
提交回复
热议问题