"main layout" android:layout_width="match_parent" not working.
nsingh-blockgrain opened this issue · 0 comments
nsingh-blockgrain commented
` <com.chauthai.swipereveallayout.SwipeRevealLayout
android:layout_width="match_parent"
android:layout_marginBottom="@dimen/margin_regular"
android:layout_height="wrap_content"
app:cardCornerRadius="8dp"
android:background="@color/light_blue_end"
android:layout_marginStart="@dimen/margin_regular"
android:layout_marginEnd="@dimen/margin_regular"
app:mode="normal"
app:dragEdge="right">
<FrameLayout android:background="@drawable/round_white"
android:layout_width="wrap_content" android:layout_height="104dp">
<ImageView android:layout_width="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="end|center"
android:layout_marginEnd="@dimen/margin_regular"
android:src="@drawable/ic_delete_load"/>
</FrameLayout>
<FrameLayout android:background="@color/quantum_purple" android:layout_width="match_parent"
android:layout_height="match_parent">
//My view
`
The swipeablelayout collapse to wrap_content instead match_parent.
EDIT - Found that replacing ConstrainLayout children with RelativeLayout worked as expected .