android - make minimum height based on imageview -
<?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:minheight="400dp" android:background="@android:color/black" android:layout_height="wrap_content" android:orientation="vertical"> <imageview android:id="@+id/invitation_imageview" android:layout_width="match_parent" android:layout_height="wrap_content" android:adjustviewbounds="true" android:layout_margin="1dp" android:scaletype="centercrop" /> <imageview android:id="@+id/invitation_avatar_view_1" android:layout_width="28dp" android:layout_height="28dp" android:scaletype="centercrop" android:layout_margin="6dp" /> </linearlayout>
hi all, layout , have issue if put smaller image example 60*60 - px layout view around 60 pixel tall. image stretched should be, added minimum height layout, not solve problem because number different based on width of device. should have shown whole imageview , have wrap content well, , not play minheight?
Comments
Post a Comment