Home
Unlabelled
SlidingPaneLayout example
SlidingPaneLayout example
android.support.v4.widget.SlidingPaneLayout provides a horizontal, multi-pane layout for use at the top level of a UI. A left (or first) pane is treated as a content list or browser, subordinate to a primary detail view for displaying content.
![SlidingPaneLayout example SlidingPaneLayout example](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJBeviu4-IBxbSlDy1CoHtcn4jYb5bI6m9jB4C4OLve2N5HFLuOgnJAS7gzK8xH-6Ax5PbwEQbIZkHn1N7Z0wZvky_W1opj2Jlr7zCX7JJ1KsOGHJgG3YZfZc9ASA3JpJzKPYSXc2u9cR7/s1600/SlidingPaneLayout.png) |
SlidingPaneLayout example |
<android.support.v4.widget.SlidingPaneLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Pane A"
android:textStyle="bold" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="android-coding.blogspot.com" />
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/ic_launcher" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#101010"
android:orientation="vertical" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Pane B"
android:textColor="#C0C0C0"
android:textStyle="italic|bold" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_launcher" />
</LinearLayout>
</android.support.v4.widget.SlidingPaneLayout>
0 komentar:
Posting Komentar