|
15 | 15 | ~ See the License for the specific language governing permissions and |
16 | 16 | ~ limitations under the License. |
17 | 17 | --> |
18 | | - |
19 | | -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 18 | +<ScrollView |
| 19 | + xmlns:android="http://schemas.android.com/apk/res/android" |
20 | 20 | xmlns:app="http://schemas.android.com/apk/res-auto" |
21 | 21 | xmlns:tools="http://schemas.android.com/tools" |
22 | | - android:id="@+id/main_viewGroup" |
23 | 22 | android:layout_width="match_parent" |
24 | | - android:layout_height="wrap_content" |
25 | | - android:padding="@dimen/cat_imageview_padding" |
26 | | - android:orientation="vertical"> |
| 23 | + android:layout_height="match_parent"> |
27 | 24 |
|
28 | | - <com.google.android.material.button.MaterialButtonToggleGroup |
29 | | - android:id="@+id/togglegroup" |
30 | | - android:layout_width="wrap_content" |
| 25 | + <LinearLayout |
| 26 | + android:id="@+id/main_viewGroup" |
| 27 | + android:layout_width="match_parent" |
31 | 28 | android:layout_height="wrap_content" |
32 | | - android:layout_gravity="center" |
33 | | - app:checkedButton="@id/button_square" |
34 | | - app:selectionRequired="true" |
35 | | - app:singleSelection="true"> |
36 | | - <Button |
37 | | - android:id="@+id/button_square" |
38 | | - style="?attr/materialButtonOutlinedStyle" |
39 | | - android:layout_width="wrap_content" |
40 | | - android:layout_height="wrap_content" |
41 | | - android:text="@string/cat_imageview_square" /> |
| 29 | + android:padding="@dimen/cat_imageview_padding" |
| 30 | + android:orientation="vertical"> |
42 | 31 |
|
43 | | - <Button |
44 | | - android:id="@+id/button_diamond" |
45 | | - style="?attr/materialButtonOutlinedStyle" |
46 | | - android:layout_width="wrap_content" |
47 | | - android:layout_height="wrap_content" |
48 | | - android:text="@string/cat_imageview_diamond" /> |
49 | | - <Button |
50 | | - android:id="@+id/button_circle" |
51 | | - style="?attr/materialButtonOutlinedStyle" |
| 32 | + <com.google.android.material.button.MaterialButtonToggleGroup |
| 33 | + android:id="@+id/togglegroup" |
52 | 34 | android:layout_width="wrap_content" |
53 | 35 | android:layout_height="wrap_content" |
54 | | - android:text="@string/cat_imageview_circle" /> |
| 36 | + android:layout_gravity="center" |
| 37 | + app:checkedButton="@id/button_square" |
| 38 | + app:selectionRequired="true" |
| 39 | + app:singleSelection="true"> |
| 40 | + <Button |
| 41 | + android:id="@+id/button_square" |
| 42 | + style="?attr/materialButtonOutlinedStyle" |
| 43 | + android:layout_width="wrap_content" |
| 44 | + android:layout_height="wrap_content" |
| 45 | + android:text="@string/cat_imageview_square" /> |
55 | 46 |
|
56 | | - </com.google.android.material.button.MaterialButtonToggleGroup> |
57 | | - |
58 | | - <com.google.android.material.imageview.ShapeableImageView |
59 | | - android:id="@+id/image_view" |
60 | | - android:layout_margin="10dp" |
61 | | - android:layout_gravity="center" |
62 | | - android:layout_width="match_parent" |
63 | | - android:layout_height="wrap_content" |
64 | | - android:scaleType="fitXY" |
65 | | - android:adjustViewBounds="true" |
66 | | - app:strokeColor="?attr/colorSecondary" |
67 | | - app:shapeAppearance="?attr/shapeAppearanceMediumComponent" |
68 | | - app:strokeWidth="1dp" |
69 | | - android:elevation="5dp" |
70 | | - android:padding="8dp" |
71 | | - app:srcCompat="@drawable/dog_image" /> |
| 47 | + <Button |
| 48 | + android:id="@+id/button_diamond" |
| 49 | + style="?attr/materialButtonOutlinedStyle" |
| 50 | + android:layout_width="wrap_content" |
| 51 | + android:layout_height="wrap_content" |
| 52 | + android:text="@string/cat_imageview_diamond" /> |
| 53 | + <Button |
| 54 | + android:id="@+id/button_circle" |
| 55 | + style="?attr/materialButtonOutlinedStyle" |
| 56 | + android:layout_width="wrap_content" |
| 57 | + android:layout_height="wrap_content" |
| 58 | + android:text="@string/cat_imageview_circle" /> |
72 | 59 |
|
73 | | - |
74 | | - <LinearLayout |
75 | | - android:layout_width="match_parent" |
76 | | - android:layout_height="wrap_content" |
77 | | - android:layout_margin="10dp" |
78 | | - android:layoutDirection="ltr" |
79 | | - android:orientation="horizontal" |
80 | | - tools:ignore="UnusedAttribute"> |
| 60 | + </com.google.android.material.button.MaterialButtonToggleGroup> |
81 | 61 |
|
82 | 62 | <com.google.android.material.imageview.ShapeableImageView |
83 | | - android:id="@+id/image_view_jpeg" |
84 | | - android:layout_width="wrap_content" |
| 63 | + android:id="@+id/image_view" |
| 64 | + android:layout_margin="10dp" |
| 65 | + android:layout_gravity="center" |
| 66 | + android:layout_width="match_parent" |
85 | 67 | android:layout_height="wrap_content" |
86 | | - android:adjustViewBounds="true" |
87 | 68 | android:scaleType="fitXY" |
88 | | - android:elevation="5dp" |
89 | | - app:shapeAppearance="@style/ShapeAppearanceImageLeft" |
90 | | - app:srcCompat="@drawable/cat_image" |
| 69 | + android:adjustViewBounds="true" |
91 | 70 | app:strokeColor="?attr/colorSecondary" |
92 | | - app:strokeWidth="1dp" /> |
| 71 | + app:shapeAppearance="?attr/shapeAppearanceMediumComponent" |
| 72 | + app:strokeWidth="1dp" |
| 73 | + android:elevation="5dp" |
| 74 | + android:padding="8dp" |
| 75 | + app:srcCompat="@drawable/dog_image" /> |
| 76 | + |
| 77 | + |
| 78 | + <LinearLayout |
| 79 | + android:layout_width="match_parent" |
| 80 | + android:layout_height="wrap_content" |
| 81 | + android:layout_margin="10dp" |
| 82 | + android:layoutDirection="ltr" |
| 83 | + android:orientation="horizontal" |
| 84 | + tools:ignore="UnusedAttribute"> |
| 85 | + |
| 86 | + <com.google.android.material.imageview.ShapeableImageView |
| 87 | + android:id="@+id/image_view_jpeg" |
| 88 | + android:layout_width="wrap_content" |
| 89 | + android:layout_height="wrap_content" |
| 90 | + android:adjustViewBounds="true" |
| 91 | + android:scaleType="fitXY" |
| 92 | + android:elevation="5dp" |
| 93 | + app:shapeAppearance="@style/ShapeAppearanceImageLeft" |
| 94 | + app:srcCompat="@drawable/cat_image" |
| 95 | + app:strokeColor="?attr/colorSecondary" |
| 96 | + app:strokeWidth="1dp" /> |
| 97 | + |
| 98 | + <com.google.android.material.imageview.ShapeableImageView |
| 99 | + android:id="@+id/image_view_gif" |
| 100 | + tools:ignore="InefficientWeight" |
| 101 | + android:layout_width="wrap_content" |
| 102 | + android:layout_height="match_parent" |
| 103 | + android:layout_weight="1" |
| 104 | + android:adjustViewBounds="true" |
| 105 | + android:scaleType="fitXY" |
| 106 | + android:elevation="5dp" |
| 107 | + app:shapeAppearance="@style/ShapeAppearanceImageRight" |
| 108 | + app:srcCompat="@drawable/cateyes_image" |
| 109 | + app:strokeColor="?attr/colorSecondary" |
| 110 | + app:strokeWidth="1dp" /> |
| 111 | + |
| 112 | + </LinearLayout> |
93 | 113 |
|
94 | 114 | <com.google.android.material.imageview.ShapeableImageView |
95 | | - android:id="@+id/image_view_gif" |
96 | | - tools:ignore="InefficientWeight" |
97 | | - android:layout_width="wrap_content" |
98 | | - android:layout_height="match_parent" |
99 | | - android:layout_weight="1" |
100 | | - android:adjustViewBounds="true" |
101 | | - android:scaleType="fitXY" |
102 | | - android:elevation="5dp" |
103 | | - app:shapeAppearance="@style/ShapeAppearanceImageRight" |
104 | | - app:srcCompat="@drawable/cateyes_image" |
105 | | - app:strokeColor="?attr/colorSecondary" |
106 | | - app:strokeWidth="1dp" /> |
| 115 | + android:id="@+id/icon_view" |
| 116 | + android:layout_margin="10dp" |
| 117 | + android:layout_gravity="center" |
| 118 | + android:layout_width="40dp" |
| 119 | + android:layout_height="40dp" |
| 120 | + android:background="?colorSecondary" |
| 121 | + android:elevation="2dp" |
| 122 | + app:contentPadding="8dp" |
| 123 | + app:shapeAppearance="?shapeAppearanceSmallComponent" |
| 124 | + app:srcCompat="@drawable/ic_pets_24dp" |
| 125 | + app:tint="?colorOnSecondary" |
| 126 | + tools:ignore="UnusedAttribute" /> |
107 | 127 |
|
108 | 128 | </LinearLayout> |
109 | 129 |
|
110 | | -</LinearLayout> |
| 130 | +</ScrollView> |
0 commit comments