Files
app_Settings/res/menu/preferred_locale_menu_top.xml
Zoey Chen f2eaafc2e4 [Settings] "Move to top" should not be in second language, do not set menu if the menu button is not visible (list = 1)
list = 2
1. Move down + remove
2. Move up + remove

list > 2
1. Move down + remove
2. Move up + remove
3. Move to top + move up + move down + remove
4. Move to top + move up + remove

Test: manual
Flag: EXEMPT refactor
Bug: 440191791
Change-Id: Iea95ac7d8c4c14d94f4a75fbb7bc4a8ef63ee7d1
2025-08-22 02:57:32 +00:00

37 lines
1.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2025 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
tools:ignore="AlwaysShowAction">
<item
android:id="@+id/move_top"
android:showAsAction="never"
android:icon="@drawable/ic_menu_arrow_top"
android:title="@string/preferred_locale_menu_top"/>
<item
android:id="@+id/move_up"
android:showAsAction="never"
android:icon="@drawable/ic_menu_arrow_upward"
android:title="@string/preferred_locale_menu_up"/>
<item
android:id="@+id/remove"
android:showAsAction="never"
android:icon="@drawable/ic_delete"
android:title="@string/preferred_locale_menu_remove"/>
</menu>