mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Fixed square image in contact editor
This commit is contained in:
parent
945fd709d4
commit
4098827253
2 changed files with 6 additions and 4 deletions
|
|
@ -318,7 +318,9 @@ fun ImageView.startAnimatedDrawable(start: Boolean = true) {
|
|||
@BindingAdapter("coil")
|
||||
fun ImageView.loadCircleFileWithCoil(file: String?) {
|
||||
if (file != null) {
|
||||
load(file)
|
||||
load(file) {
|
||||
transformations(CircleCropTransformation())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -92,8 +92,8 @@
|
|||
app:layout_constraintBottom_toBottomOf="@id/avatar" />
|
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
android:onClick="@{pickImageClickListener}"
|
||||
style="@style/default_text_style"
|
||||
android:onClick="@{pickImageClickListener}"
|
||||
android:id="@+id/add_picture_label"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
|
|
@ -108,8 +108,8 @@
|
|||
app:layout_constraintEnd_toEndOf="parent"/>
|
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
android:onClick="@{pickImageClickListener}"
|
||||
style="@style/default_text_style"
|
||||
android:onClick="@{pickImageClickListener}"
|
||||
android:id="@+id/edit_picture_label"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
|
|
@ -125,8 +125,8 @@
|
|||
app:layout_constraintEnd_toStartOf="@id/remove_picture_label"/>
|
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
android:onClick="@{deleteImageClickListener}"
|
||||
style="@style/default_text_style"
|
||||
android:onClick="@{deleteImageClickListener}"
|
||||
android:id="@+id/remove_picture_label"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue