Skip to content

Commit 5478ad7

Browse files
committed
Style: Make overflow popupmenu show below topappbar
Signed-off-by: Akane Beneckendorff <akane@akanework.org>
1 parent b8c9ced commit 5478ad7

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
android:id="@+id/more"
66
android:icon="@drawable/ic_more_vert"
77
android:iconTint="?attr/colorOnSurface"
8-
android:title="@string/more"
9-
app:showAsAction="ifRoom" />
8+
android:title="@string/about"
9+
app:showAsAction="never" />
1010
</menu>

app/src/main/res/values-zh-rCN/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<resources>
22
<string name="app_name">校验者</string>
3-
<string name="more">更多</string>
3+
<string name="about">关于</string>
44
<string name="widevine">Widevine</string>
55
<string name="drm_security_level">安全等級</string>
66
<string name="drm_version">版本</string>

app/src/main/res/values/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<resources>
22
<string name="app_name">Checker</string>
3-
<string name="more">more</string>
3+
<string name="about">About</string>
44
<string name="widevine">Widevine</string>
55
<string name="drm_security_level">Security Level</string>
66
<string name="drm_version">Version</string>

app/src/main/res/values/themes.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,20 @@
77
<item name="android:navigationBarColor">@android:color/transparent</item>
88
<item name="android:windowLightStatusBar">@bool/lightStatusBarContent</item>
99
<item name="fontFamily">sans-serif</item>
10+
<item name="actionOverflowMenuStyle">@style/OverflowMenu</item>
1011
</style>
1112

1213
<style name="CheckerDialogTheme" parent="Theme.AppCompat.DayNight.Dialog.Alert">
1314
<item name="android:background">?attr/colorSurface</item>
1415
<item name="dialogCornerRadius">8dp</item>
1516
</style>
1617

18+
<style name="OverflowMenu" parent="Widget.Material3.PopupMenu.Overflow">
19+
<item name="android:windowDisablePreview">true</item>
20+
<item name="overlapAnchor">false</item>
21+
<item name="android:dropDownVerticalOffset">5.0dp</item>
22+
<!--<item name="android:popupBackground">#FFF</item>-->
23+
</style>
24+
1725
<style name="Theme.Checker" parent="Base.Theme.Checker" />
1826
</resources>

0 commit comments

Comments
 (0)