11<?xml version =" 1.0" encoding =" utf-8" ?>
22<RelativeLayout 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"
5- android : background =" ?android: attr/colorBackground " >
6+ android : background =" ?attr/colorSurface " >
67
78 <!-- WebView (Web page content handles its own background,
89 but you can force a dark theme in Java using WebSettings.setForceDark) -->
1112 android : layout_width =" match_parent"
1213 android : layout_height =" match_parent" />
1314
14- <Button
15+ <!-- ADFA-4886: nav chrome uses Material 3 vector icons + theme attributes (system day/night)
16+ instead of emoji/glyph text buttons. Icon-only buttons carry a contentDescription. -->
17+ <ImageButton
1518 android : id =" @+id/btnHandle"
1619 android : layout_width =" 60dp"
1720 android : layout_height =" 32dp"
1821 android : layout_alignParentBottom =" true"
1922 android : layout_centerHorizontal =" true"
2023 android : alpha =" 0.8"
21- android : background =" ?android: attr/colorButtonNormal "
22- android : padding = " 0dp "
23- android : stateListAnimator = " @null "
24- android : text = " ⌃ "
25- android : textColor =" ?android: attr/textColorPrimary "
26- android : textSize = " 18sp " />
24+ android : background =" ?attr/colorSurfaceContainerHighest "
25+ android : contentDescription = " @string/k2go_nav_show_bar "
26+ android : padding = " 4dp "
27+ android : scaleType = " fitCenter "
28+ android : tint =" ?attr/colorOnSurfaceVariant "
29+ app : srcCompat = " @drawable/ic_expand_less " />
2730
2831 <LinearLayout
2932 android : id =" @+id/bottomNav"
3033 android : layout_width =" match_parent"
3134 android : layout_height =" wrap_content"
3235 android : layout_alignParentBottom =" true"
33- android : background =" ?android: attr/colorBackgroundFloating "
36+ android : background =" ?attr/colorSurfaceContainer "
3437 android : orientation =" vertical"
3538 android : visibility =" invisible"
3639 android : elevation =" 8dp" >
3740
38- <Button
41+ <ImageButton
3942 android : id =" @+id/btnHideNav"
4043 android : layout_width =" match_parent"
4144 android : layout_height =" 30dp"
42- android : background =" ?android:attr/selectableItemBackground"
43- android : text =" ⌄"
44- android : textSize =" 20sp"
45- android : textColor =" ?android:attr/textColorSecondary"
46- android : stateListAnimator =" @null" />
45+ android : background =" ?attr/selectableItemBackground"
46+ android : contentDescription =" @string/k2go_nav_hide_bar"
47+ android : padding =" 4dp"
48+ android : scaleType =" fitCenter"
49+ android : tint =" ?attr/colorOnSurfaceVariant"
50+ app : srcCompat =" @drawable/ic_expand_more" />
4751
4852 <LinearLayout
4953 android : layout_width =" match_parent"
5054 android : layout_height =" wrap_content"
5155 android : orientation =" horizontal"
5256 android : paddingBottom =" 8dp" >
5357
54- <Button
58+ <ImageButton
5559 android : id =" @+id/btnBack"
5660 android : layout_width =" 0dp"
57- android : layout_height =" wrap_content "
61+ android : layout_height =" 48dp "
5862 android : layout_weight =" 1"
59- android : text =" ◀"
60- android : textSize =" 20sp"
61- style =" ?android:attr/buttonBarButtonStyle"
62- android : textColor =" ?android:attr/textColorPrimary" />
63+ android : background =" ?attr/selectableItemBackgroundBorderless"
64+ android : contentDescription =" @string/k2go_nav_back"
65+ android : padding =" 12dp"
66+ android : scaleType =" fitCenter"
67+ android : tint =" ?attr/colorOnSurface"
68+ app : srcCompat =" @drawable/ic_arrow_left" />
6369
64- <!-- ADFA-4887: repurposed as a Fullscreen toggle (no in-WebView home page anymore).
65- Material 3 icon + contentDescription land in ADFA-4886. -->
66- <Button
70+ <!-- ADFA-4887: repurposed as a Fullscreen toggle (no in-WebView home page anymore). -->
71+ <ImageButton
6772 android : id =" @+id/btnHome"
6873 android : layout_width =" 0dp"
69- android : layout_height =" wrap_content "
74+ android : layout_height =" 48dp "
7075 android : layout_weight =" 1"
71- android : text =" ⛶"
72- android : textSize =" 20sp"
73- style =" ?android:attr/buttonBarButtonStyle"
74- android : textColor =" ?android:attr/textColorPrimary" />
76+ android : background =" ?attr/selectableItemBackgroundBorderless"
77+ android : contentDescription =" @string/k2go_nav_fullscreen"
78+ android : padding =" 12dp"
79+ android : scaleType =" fitCenter"
80+ android : tint =" ?attr/colorOnSurface"
81+ app : srcCompat =" @drawable/ic_fullscreen" />
7582
76- <Button
83+ <ImageButton
7784 android : id =" @+id/btnReload"
7885 android : layout_width =" 0dp"
79- android : layout_height =" wrap_content "
86+ android : layout_height =" 48dp "
8087 android : layout_weight =" 1"
81- android : text =" ↻"
82- android : textSize =" 20sp"
83- style =" ?android:attr/buttonBarButtonStyle"
84- android : textColor =" ?android:attr/textColorPrimary" />
88+ android : background =" ?attr/selectableItemBackgroundBorderless"
89+ android : contentDescription =" @string/k2go_nav_reload"
90+ android : padding =" 12dp"
91+ android : scaleType =" fitCenter"
92+ android : tint =" ?attr/colorOnSurface"
93+ app : srcCompat =" @drawable/ic_refresh" />
8594
86- <Button
95+ <ImageButton
8796 android : id =" @+id/btnExit"
8897 android : layout_width =" 0dp"
89- android : layout_height =" wrap_content "
98+ android : layout_height =" 48dp "
9099 android : layout_weight =" 1"
91- android : text =" ✖"
92- android : textSize =" 20sp"
93- style =" ?android:attr/buttonBarButtonStyle"
94- android : textColor =" #D32F2F" /> <!-- Red is universal alert color -->
100+ android : background =" ?attr/selectableItemBackgroundBorderless"
101+ android : contentDescription =" @string/k2go_nav_exit"
102+ android : padding =" 12dp"
103+ android : scaleType =" fitCenter"
104+ android : tint =" @color/k2go_nav_exit"
105+ app : srcCompat =" @drawable/ic_close_24" /> <!-- Red is the universal alert color -->
95106
96- <Button
107+ <ImageButton
97108 android : id =" @+id/btnForward"
98109 android : layout_width =" 0dp"
99- android : layout_height =" wrap_content "
110+ android : layout_height =" 48dp "
100111 android : layout_weight =" 1"
101- android : text =" ▶"
102- android : textSize =" 20sp"
103- style =" ?android:attr/buttonBarButtonStyle"
104- android : textColor =" ?android:attr/textColorPrimary" />
112+ android : background =" ?attr/selectableItemBackgroundBorderless"
113+ android : contentDescription =" @string/k2go_nav_forward"
114+ android : padding =" 12dp"
115+ android : scaleType =" fitCenter"
116+ android : tint =" ?attr/colorOnSurface"
117+ app : srcCompat =" @drawable/ic_arrow_right" />
105118 </LinearLayout >
106119
107120 </LinearLayout >
108- </RelativeLayout >
121+ </RelativeLayout >
0 commit comments