-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Expand file tree
/
Copy pathstorage_permission_warning_banner.xml
More file actions
74 lines (64 loc) 路 3.06 KB
/
Copy pathstorage_permission_warning_banner.xml
File metadata and controls
74 lines (64 loc) 路 3.06 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
<?xml version="1.0" encoding="utf-8"?><!--
~ Nextcloud - Android Client
~
~ SPDX-FileCopyrightText: 2025 Alper Ozturk <alper.ozturk@nextcloud.com>
~ SPDX-License-Identifier: AGPL-3.0-or-later
-->
<com.google.android.material.card.MaterialCardView 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/root"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="@dimen/standard_half_margin"
android:layout_marginTop="@dimen/standard_half_margin"
android:background="@drawable/rounded_rect_8dp"
android:backgroundTint="@color/task_container"
android:elevation="4dp"
android:padding="@dimen/standard_double_margin">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="@dimen/standard_padding">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal">
<ImageView
android:layout_width="@dimen/standard_icon_size"
android:layout_height="@dimen/standard_icon_size"
android:contentDescription="@null"
android:src="@drawable/ic_warning"
app:tint="@color/log_level_warning" />
<com.google.android.material.textview.MaterialTextView
android:id="@+id/description"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_weight="1"
tools:text="@string/placeholder_storage_permission_banner_text"
android:textAppearance="@style/TextAppearance.MaterialComponents.Body2"
android:textColor="@color/text_color" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="end"
android:orientation="horizontal">
<com.google.android.material.button.MaterialButton
android:id="@+id/mediaReadOnly"
style="@style/Widget.Material3.Button.TextButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/storage_permission_media_read_only" />
<com.google.android.material.button.MaterialButton
android:id="@+id/allFilesAccess"
style="@style/Widget.Material3.Button.TextButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/storage_permission_all_files_access" />
</LinearLayout>
</LinearLayout>
</com.google.android.material.card.MaterialCardView>