mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-06-21 16:41:05 +00:00
User is now able to crop custom images
This commit is contained in:
parent
04e6e36811
commit
d8bfe2e947
5 changed files with 36 additions and 5 deletions
|
@ -16,14 +16,14 @@
|
|||
android:layout_height="250dp"
|
||||
android:background="@color/colorPrimary">
|
||||
|
||||
|
||||
<ImageView
|
||||
<de.hdodenhof.circleimageview.CircleImageView
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/profile_drawable"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="100dp"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:scaleType="centerCrop" />
|
||||
/>
|
||||
|
||||
<com.avito.android.krop.KropView
|
||||
android:id="@+id/krop_view"
|
||||
|
@ -37,6 +37,14 @@
|
|||
app:krop_offset="70dp"
|
||||
app:krop_overlayColor="#aaffffff" >
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_saveImage"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom|right"
|
||||
android:layout_margin="15dp"
|
||||
android:src="@drawable/ic_check_black_24dp"
|
||||
android:tint="?attr/iconColorPrimary" />
|
||||
</com.avito.android.krop.KropView>
|
||||
|
||||
</RelativeLayout>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue