Android Studio Proportional Width

[Solved] Android Studio Proportional Width | Lisp - Code Explorer | yomemimo.com
Question : android studio proportional width

Answered by : crowded-caterpillar-xo733sicd6cc

<android.support.constraint.ConstraintLayout 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"> <ImageView android:id="@+id/img_icon" android:layout_width="0dp" android:layout_height="0dp" android:background="@color/dark_red" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintDimensionRatio="1:1" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" app:layout_constraintWidth_percent="0.5" />
</android.support.constraint.ConstraintLayout>

Source : https://stackoverflow.com/questions/49639231/constraintlayout-proportional-width-height-to-self | Last Update : Tue, 09 Jun 20

Answers related to android studio proportional width

Code Explorer Popular Question For Lisp