aboutsummaryrefslogtreecommitdiff
path: root/imagepicker/src/main/res/layout/kau_iitem_image.xml
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-07-04 17:04:05 -0700
committerAllan Wang <me@allanwang.ca>2017-07-04 17:04:05 -0700
commit8844116ebfa5dcab29ffacc66ffab4d20447a104 (patch)
tree2da1fa7008133aefca625328d060899734c60df6 /imagepicker/src/main/res/layout/kau_iitem_image.xml
parentcf2a7fcd0880a8d276970124cdb5d5845d5631fe (diff)
downloadkau-8844116ebfa5dcab29ffacc66ffab4d20447a104.tar.gz
kau-8844116ebfa5dcab29ffacc66ffab4d20447a104.tar.bz2
kau-8844116ebfa5dcab29ffacc66ffab4d20447a104.zip
Set up base
Diffstat (limited to 'imagepicker/src/main/res/layout/kau_iitem_image.xml')
-rw-r--r--imagepicker/src/main/res/layout/kau_iitem_image.xml16
1 files changed, 10 insertions, 6 deletions
diff --git a/imagepicker/src/main/res/layout/kau_iitem_image.xml b/imagepicker/src/main/res/layout/kau_iitem_image.xml
index 824ae7b..22cc998 100644
--- a/imagepicker/src/main/res/layout/kau_iitem_image.xml
+++ b/imagepicker/src/main/res/layout/kau_iitem_image.xml
@@ -1,11 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
-<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="80dp"
- android:layout_height="80dp">
+<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/kau_image"
- android:layout_width="match_parent"
- android:layout_height="match_parent" />
+ android:layout_width="0dp"
+ android:layout_height="0dp"
+ android:scaleType="centerCrop"
+ android:background="#f0f"
+ app:layout_constraintDimensionRatio="1:1" />
-</FrameLayout> \ No newline at end of file
+</android.support.constraint.ConstraintLayout> \ No newline at end of file