Swipe a specific linearlayout
Hello there is a problem there is a main activity with a design of 3 linearlayout plates like this example here is the code for this tile:
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center"
android:background="#092E47"
android:layout_marginLeft="2dp"
android:layout_marginRight="2dp"
>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center"
>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="5dp"
android:src="@drawable/contact" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center"
android:orientation="vertical"
>
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="заголовок"
android:textColor="#D0DFD7"
android:textSize="18sp"
android:typeface="normal" />
<TextView
android:layout_marginTop="3dp"
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Новости"
android:textColor="#D0DFD7"
android:textSize="16sp"
android:typeface="normal" />
</LinearLayout>
</LinearLayout>
I need to swipe the news to the side
1
1 answers
The question is a little unclear. If you need a swipe like in the Gmail app (well, there with additional buttons by default), then SwipeListView
1
Author: Slampy, 2014-03-25 14:23:18