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

is not support ratio child or parent percentLayout wrap #16

Open
lozn00 opened this issue Nov 10, 2017 · 0 comments
Open

is not support ratio child or parent percentLayout wrap #16

lozn00 opened this issue Nov 10, 2017 · 0 comments

Comments

@lozn00
Copy link

lozn00 commented Nov 10, 2017



    <com.gigamole.library.ShadowLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:app="http://schemas.android.com/apk/res-auto"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        app:sl_shadow_angle="45"
        app:sl_shadow_color="#55000000"
        app:sl_shadow_distance="2dp"
        app:sl_shadow_radius="@dimen/banner_radius"
        app:sl_shadowed="true">

        <android.support.constraint.ConstraintLayout

            background="#f00"
            android:layout_width="match_parent"
            android:layout_height="match_parent">


            <com.joooonho.SelectableRoundedImageView
                app:layout_constraintLeft_toLeftOf="parent"
                background="#f00"
                app:layout_constraintRight_toRightOf="parent"
                app:layout_constraintBottom_toBottomOf="parent"
                app:layout_constraintTop_toTopOf="parent"
                android:layout_width="match_parent"
                app:layout_constraintDimensionRatio="16:9"
                android:layout_height="0dp"
                android:scaleType="centerCrop"
                android:shadowColor="@color/grayText"
                app:image="@{model.image}"
                app:layout_aspectRatio="177%"
                app:layout_widthPercent="100%"
                app:sriv_border_width="0dp"
                app:sriv_left_bottom_corner_radius="@dimen/banner_radius"
                app:sriv_left_top_corner_radius="@dimen/banner_radius"
                app:sriv_right_bottom_corner_radius="@dimen/banner_radius"
                app:sriv_right_top_corner_radius="@dimen/banner_radius" />
        </>
    </com.gigamole.library.ShadowLayout>
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