Started working on custom profile images

This commit is contained in:
Michael Schättgen 2018-06-06 21:26:09 +02:00
parent 8b280ddbb0
commit 04e6e36811
3 changed files with 63 additions and 9 deletions

View file

@ -16,18 +16,28 @@
android:layout_height="250dp"
android:background="@color/colorPrimary">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="200dp"
android:paddingTop="100dp"
android:background="@color/colorPrimary">
<ImageView
android:id="@+id/profile_drawable"
android:layout_width="100dp"
android:layout_height="100dp"
android:id="@+id/profile_drawable"
android:scaleType="centerCrop"
android:layout_centerHorizontal="true"/>
</RelativeLayout>
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:scaleType="centerCrop" />
<com.avito.android.krop.KropView
android:id="@+id/krop_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:visibility="invisible"
app:krop_aspectX="1"
app:krop_aspectY="1"
app:krop_offset="70dp"
app:krop_overlayColor="#aaffffff" >
</com.avito.android.krop.KropView>
</RelativeLayout>