Skip to content

Commit 45a79c8

Browse files
Fei1Yangk3b
authored andcommitted
Fix icon color and style
1 parent 38f7782 commit 45a79c8

File tree

7 files changed

+46
-33
lines changed

7 files changed

+46
-33
lines changed
266 Bytes
Loading
182 Bytes
Loading
303 Bytes
Loading
424 Bytes
Loading
1 KB
Loading

app/src/main/res/layout/explode.xml

Lines changed: 45 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<androidx.appcompat.widget.LinearLayoutCompat xmlns:android="http://schemas.android.com/apk/res/android"
3+
xmlns:app="http://schemas.android.com/apk/res-auto"
34
android:layout_width="match_parent"
45
android:layout_height="match_parent"
56
android:divider="?android:attr/dividerHorizontal"
@@ -29,15 +30,17 @@
2930
android:layout_alignParentTop="true"
3031
android:text="@string/intent_action_title"/>
3132

32-
<ImageButton
33-
android:id="@+id/cmd_edit_history"
34-
android:layout_width="wrap_content"
35-
android:layout_height="wrap_content"
36-
android:layout_alignParentRight="true"
37-
android:layout_alignParentEnd="true"
38-
android:layout_below="@+id/lbl_action"
39-
android:visibility="gone"
40-
android:background="@android:drawable/ic_menu_more" />
33+
<ImageButton
34+
android:id="@+id/cmd_edit_history"
35+
android:layout_width="wrap_content"
36+
android:layout_height="wrap_content"
37+
android:layout_below="@+id/lbl_action"
38+
android:layout_alignParentEnd="true"
39+
android:layout_alignParentRight="true"
40+
android:background="@android:color/transparent"
41+
android:src="@drawable/ic_expand_more"
42+
android:visibility="gone"
43+
app:tint="?android:textColorPrimary" />
4144

4245
<uk.co.ashtonbrsc.intentexplode.widget.BlockEnterEditText
4346
android:id="@+id/action_edit"
@@ -64,14 +67,17 @@
6467
android:layout_below="@+id/action_edit"
6568
android:text="@string/intent_data_title" />
6669

67-
<ImageButton android:id="@+id/cmd_data_history"
68-
android:layout_width="wrap_content"
69-
android:layout_height="wrap_content"
70-
android:layout_alignParentRight="true"
71-
android:layout_alignParentEnd="true"
72-
android:layout_below="@+id/lbl_data"
73-
android:visibility="gone"
74-
android:background="@android:drawable/ic_menu_more" />
70+
<ImageButton
71+
android:id="@+id/cmd_data_history"
72+
android:layout_width="wrap_content"
73+
android:layout_height="wrap_content"
74+
android:layout_below="@+id/lbl_data"
75+
android:layout_alignParentEnd="true"
76+
android:layout_alignParentRight="true"
77+
android:background="@android:color/transparent"
78+
android:src="@drawable/ic_expand_more"
79+
android:visibility="gone"
80+
app:tint="?android:textColorPrimary" />
7581

7682
<uk.co.ashtonbrsc.intentexplode.widget.BlockEnterEditText
7783
android:id="@+id/data_edit"
@@ -95,14 +101,17 @@
95101
android:layout_below="@+id/data_edit"
96102
android:text="@string/intent_mime_type_title" />
97103

98-
<ImageButton android:id="@+id/cmd_type_history"
99-
android:layout_width="wrap_content"
100-
android:layout_height="wrap_content"
101-
android:layout_alignParentRight="true"
102-
android:layout_alignParentEnd="true"
103-
android:layout_below="@+id/lbl_type"
104-
android:visibility="gone"
105-
android:background="@android:drawable/ic_menu_more" />
104+
<ImageButton
105+
android:id="@+id/cmd_type_history"
106+
android:layout_width="wrap_content"
107+
android:layout_height="wrap_content"
108+
android:layout_below="@+id/lbl_type"
109+
android:layout_alignParentEnd="true"
110+
android:layout_alignParentRight="true"
111+
android:background="@android:color/transparent"
112+
android:src="@drawable/ic_expand_more"
113+
android:visibility="gone"
114+
app:tint="?android:textColorPrimary" />
106115
<uk.co.ashtonbrsc.intentexplode.widget.BlockEnterEditText
107116
android:id="@+id/type_edit"
108117
style="@style/EditTextNoSuggestion"
@@ -125,14 +134,17 @@
125134
android:layout_below="@+id/type_edit"
126135
android:text="@string/intent_uri_title" />
127136

128-
<ImageButton android:id="@+id/cmd_uri_history"
129-
android:layout_width="wrap_content"
130-
android:layout_height="wrap_content"
131-
android:layout_alignParentRight="true"
132-
android:layout_alignParentEnd="true"
133-
android:layout_below="@+id/lbl_uri"
134-
android:visibility="gone"
135-
android:background="@android:drawable/ic_menu_more" />
137+
<ImageButton
138+
android:id="@+id/cmd_uri_history"
139+
android:layout_width="wrap_content"
140+
android:layout_height="wrap_content"
141+
android:layout_below="@+id/lbl_uri"
142+
android:layout_alignParentEnd="true"
143+
android:layout_alignParentRight="true"
144+
android:background="@android:color/transparent"
145+
android:src="@drawable/ic_expand_more"
146+
android:visibility="gone"
147+
app:tint="?android:textColorPrimary" />
136148
<uk.co.ashtonbrsc.intentexplode.widget.BlockEnterEditText
137149
android:id="@+id/uri_edit"
138150
style="@style/EditTextNoSuggestion"

app/src/main/res/menu/menu.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<item
66
android:id="@+id/menu_copy"
77
android:icon="@drawable/ic_action_content_copy"
8+
app:iconTint="?android:textColorPrimary"
89
app:showAsAction="ifRoom"
910
android:title="@string/menu_copy_title">
1011
</item>

0 commit comments

Comments
 (0)