Each time I swipe open the item on the list, the icon or color or text i decide to put back there changes width on each swipe, smaller, larger, even to the point where there's nothing there at all, the only thing that seems to solve that is if i make the layout behind the listview text to match the parent so it covers everything.
Each time I swipe open the item on the list, the icon or color or text i decide to put back there changes width on each swipe, smaller, larger, even to the point where there's nothing there at all, the only thing that seems to solve that is if i make the layout behind the listview text to match the parent so it covers everything.
my xml in case it helps
<com.daimajia.swipe.SwipeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/swipe" android:layout_width="match_parent" android:layout_height="match_parent"> <LinearLayout android:tag="Bottom2" android:id="@+id/bottom_wrapper" android:layout_width="200dp" android:gravity="left" android:layout_height="120dp"> <TextView android:id="@+id/trash" android:background="@android:color/holo_green_dark" android:text="Delete" android:layout_width="match_parent" android:layout_height="match_parent" /> <LinearLayout android:padding="10dp" android:background="#ffffff" android:layout_width="match_parent" android:layout_height="match_parent"> <TextView android:id="@+id/position" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</com.daimajia.swipe.SwipeLayout>