web123456

Simple implementation Popular social APP (Tantan) (Who) Sliding effect

<?xml version="1.0" encoding="utf-8"?> <. android:id="@+id/dl_layout" xmlns:android="/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <RelativeLayout android:id="@+id/rl_content" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/colorPrimary"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:textAppearance="?android:attr/textAppearanceMedium" android:text="ABCDEFG123456ABCDEFG123456ABCDEFG123456ABCDEFG123456ABCDEFG123456ABCDEFG123456ABCDEFG123456" android:id="@+id/textView" android:layout_alignParentTop="true" android:layout_centerHorizontal="true" android:layout_marginTop="59dp" /> </RelativeLayout> <RelativeLayout android:id="@+id/rl_left" android:layout_width="300dp" android:layout_height="match_parent" android:background="@color/colorAccent" android:layout_gravity="start"> </RelativeLayout> <RelativeLayout android:id="@+id/rl_right" android:layout_width="300dp" android:layout_height="match_parent" android:background="@color/colorAccent2" android:layout_gravity="end"> </RelativeLayout> </.>