blob: b69623b5ff4c082f01ed224abdc44407cd0fb2a4 (
plain) (
blame)
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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"
android:id="@+id/rl_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity"
android:background="@color/black">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Random Image"
android:textColor="@color/white"
android:textSize="54px"
android:layout_centerHorizontal="true"
/>
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/randomImage"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_alignParentBottom="true"
android:layout_margin="26dp"
android:backgroundTint="#FFFFFF"
android:clickable="true"
android:focusable="true"
android:tint="#FFFFFF"
app:rippleColor="#FFFFFF"
app:srcCompat="@android:drawable/stat_notify_sync" />
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/addImage"
android:layout_width="90dp"
android:layout_height="91dp"
android:layout_alignParentStart="true"
android:layout_alignParentBottom="true"
android:layout_margin="26dp"
android:backgroundTint="#FFFFFF"
android:clickable="true"
android:focusable="true"
android:tint="#FFFFFF"
app:rippleColor="#FFFFFF"
app:srcCompat="@android:drawable/ic_input_add" />
<ImageView
android:id="@+id/randomImageView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_centerInParent="true"
android:layout_marginStart="0dp"
android:layout_marginTop="0dp"
android:layout_marginEnd="0dp"
android:layout_marginBottom="0dp"
android:scaleType="fitCenter" />
</RelativeLayout>
|