-
Notifications
You must be signed in to change notification settings - Fork 7
/
activity_image_display.xml
45 lines (38 loc) · 1.53 KB
/
activity_image_display.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools">
<data>
<variable
name="backgroundRemotePath"
type="String" />
<variable
name="drawableId"
type="Integer" />
</data>
<androidx.constraintlayout.widget.ConstraintLayout
backgroundData="@{backgroundRemotePath}"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ui.activity.ImageDisplayActivity">
<ImageView
imageData="@{drawableId}"
placeholderRes="@{@drawable/ic_launcher}"
radius="@{60}"
android:layout_width="60dp"
android:layout_height="60dp"
android:contentDescription="@null"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<ImageView
imageData="@{@drawable/ava}"
radius="@{100}"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:contentDescription="@null"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
</layout>