SwipeRevealLayout
SwipeRevealLayout copied to clipboard
Visualization problems
Hello,
I have created a simple chat app that shows the messages sent by the users, so each item in recycler view has a different size. The error occurred when you scroll down because sometimes an undesired spacing appears between elements.
It has to do with the sliding layout of the FrameLayout type of the SwipeRevealLayout. From time to time, this layout changes height and takes up more screen space as it has no limitations on its size. Any ideas?
<com.chauthai.swipereveallayout.SwipeRevealLayout android:layout_width="match_parent" android:layout_height="wrap_content" app:dragEdge="right" app:mode="same_level">
<FrameLayout android:layout_width="wrap_content" android:layout_height="match_parent">
<ImageView
android:id="@+id/imagen_unfollow"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical|center_horizontal"
app:srcCompat="@drawable/ic_visibility_off_white_24dp" />
<android.support.constraint.ConstraintLayout android:id="@+id/vista_frontal" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@android:color/background_light" android:padding="8dp"> . . . </com.chauthai.swipereveallayout.SwipeRevealLayout>`
I had the same problem. Did you find the solution?
Hi. I have been investigating the causes of this problem and it turns out that it is a problem without solution. For this reason, I had no choice but to use another library. I have not had any problems using this one: https://github.com/daimajia/AndroidSwipeLayout