Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"main layout" android:layout_width="match_parent" not working. #101

Open
nsingh-blockgrain opened this issue Mar 14, 2019 · 0 comments
Open

Comments

@nsingh-blockgrain
Copy link

nsingh-blockgrain commented Mar 14, 2019

` <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 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant