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+ <!-- Collapsed-bar handle: a Material 3 tab of the bar's own surface with a drag grabber,
18+ so it reads as the nav bar peeking from the bottom edge rather than a separate button. -->
19+ <ImageButton
1520 android : id =" @+id/btnHandle"
16- android : layout_width =" 60dp "
17- android : layout_height =" 32dp "
21+ android : layout_width =" 56dp "
22+ android : layout_height =" 48dp "
1823 android : layout_alignParentBottom =" true"
1924 android : layout_centerHorizontal =" true"
20- 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 " />
25+ android : background = " @drawable/bg_nav_handle "
26+ android : contentDescription = " @string/k2go_nav_show_bar "
27+ android : elevation = " 8dp "
28+ android : paddingTop = " 20dp "
29+ android : scaleType = " center "
30+ app : tint =" ?attr/colorOnSurfaceVariant "
31+ app : srcCompat = " @drawable/ic_nav_grabber " />
2732
2833 <LinearLayout
2934 android : id =" @+id/bottomNav"
3035 android : layout_width =" match_parent"
3136 android : layout_height =" wrap_content"
3237 android : layout_alignParentBottom =" true"
33- android : background =" ?android: attr/colorBackgroundFloating "
38+ android : background =" ?attr/colorSurfaceContainer "
3439 android : orientation =" vertical"
3540 android : visibility =" invisible"
3641 android : elevation =" 8dp" >
3742
38- <Button
43+ <ImageButton
3944 android : id =" @+id/btnHideNav"
4045 android : layout_width =" match_parent"
4146 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" />
47+ android : background =" ?attr/selectableItemBackground"
48+ android : contentDescription =" @string/k2go_nav_hide_bar"
49+ android : padding =" 4dp"
50+ android : scaleType =" fitCenter"
51+ app : tint =" ?attr/colorOnSurfaceVariant"
52+ app : srcCompat =" @drawable/ic_expand_more" />
4753
4854 <LinearLayout
4955 android : layout_width =" match_parent"
5056 android : layout_height =" wrap_content"
5157 android : orientation =" horizontal"
5258 android : paddingBottom =" 8dp" >
5359
54- <Button
60+ <ImageButton
5561 android : id =" @+id/btnBack"
5662 android : layout_width =" 0dp"
57- android : layout_height =" wrap_content "
63+ android : layout_height =" 48dp "
5864 android : layout_weight =" 1"
59- android : text =" ◀"
60- android : textSize =" 20sp"
61- style =" ?android:attr/buttonBarButtonStyle"
62- android : textColor =" ?android:attr/textColorPrimary" />
65+ android : background =" ?attr/selectableItemBackgroundBorderless"
66+ android : contentDescription =" @string/k2go_nav_back"
67+ android : padding =" 12dp"
68+ android : scaleType =" fitCenter"
69+ app : tint =" ?attr/colorOnSurface"
70+ app : srcCompat =" @drawable/ic_arrow_left" />
6371
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
72+ <!-- ADFA-4887: repurposed as a Fullscreen toggle (no in-WebView home page anymore). -->
73+ <ImageButton
6774 android : id =" @+id/btnHome"
6875 android : layout_width =" 0dp"
69- android : layout_height =" wrap_content "
76+ android : layout_height =" 48dp "
7077 android : layout_weight =" 1"
71- android : text =" ⛶"
72- android : textSize =" 20sp"
73- style =" ?android:attr/buttonBarButtonStyle"
74- android : textColor =" ?android:attr/textColorPrimary" />
78+ android : background =" ?attr/selectableItemBackgroundBorderless"
79+ android : contentDescription =" @string/k2go_nav_fullscreen"
80+ android : padding =" 12dp"
81+ android : scaleType =" fitCenter"
82+ app : tint =" ?attr/colorOnSurface"
83+ app : srcCompat =" @drawable/ic_fullscreen" />
7584
76- <Button
85+ <ImageButton
7786 android : id =" @+id/btnReload"
7887 android : layout_width =" 0dp"
79- android : layout_height =" wrap_content "
88+ android : layout_height =" 48dp "
8089 android : layout_weight =" 1"
81- android : text =" ↻"
82- android : textSize =" 20sp"
83- style =" ?android:attr/buttonBarButtonStyle"
84- android : textColor =" ?android:attr/textColorPrimary" />
90+ android : background =" ?attr/selectableItemBackgroundBorderless"
91+ android : contentDescription =" @string/k2go_nav_reload"
92+ android : padding =" 12dp"
93+ android : scaleType =" fitCenter"
94+ app : tint =" ?attr/colorOnSurface"
95+ app : srcCompat =" @drawable/ic_refresh" />
8596
86- <Button
97+ <ImageButton
8798 android : id =" @+id/btnExit"
8899 android : layout_width =" 0dp"
89- android : layout_height =" wrap_content "
100+ android : layout_height =" 48dp "
90101 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 -->
102+ android : background =" ?attr/selectableItemBackgroundBorderless"
103+ android : contentDescription =" @string/k2go_nav_exit"
104+ android : padding =" 12dp"
105+ android : scaleType =" fitCenter"
106+ app : tint =" @color/k2go_nav_exit"
107+ app : srcCompat =" @drawable/ic_close_24" /> <!-- Red is the universal alert color -->
95108
96- <Button
109+ <ImageButton
97110 android : id =" @+id/btnForward"
98111 android : layout_width =" 0dp"
99- android : layout_height =" wrap_content "
112+ android : layout_height =" 48dp "
100113 android : layout_weight =" 1"
101- android : text =" ▶"
102- android : textSize =" 20sp"
103- style =" ?android:attr/buttonBarButtonStyle"
104- android : textColor =" ?android:attr/textColorPrimary" />
114+ android : background =" ?attr/selectableItemBackgroundBorderless"
115+ android : contentDescription =" @string/k2go_nav_forward"
116+ android : padding =" 12dp"
117+ android : scaleType =" fitCenter"
118+ app : tint =" ?attr/colorOnSurface"
119+ app : srcCompat =" @drawable/ic_arrow_right" />
105120 </LinearLayout >
106121
107122 </LinearLayout >
108- </RelativeLayout >
123+ </RelativeLayout >
0 commit comments