我想修改溢出菜单的宽度。 但是我不知道如何访问溢出菜单。
我试图
How can I change popup item width size?
Reduce Menu items width,height and textview size
但是我无法修改宽度。
res / menu / custom_actionbar_item.xml
CREATE TABLE elbat
(nmuloc varchar(8));
INSERT INTO elbat
(nmuloc)
VALUES ('x'),
('y'),
('z');
SELECT coalesce(CASE
WHEN row_number() OVER (ORDER BY nmuloc DESC) <> (SELECT count(*)
FROM elbat) THEN
CASE row_number() OVER (ORDER BY nmuloc DESC)
WHEN 1 THEN
' and '
ELSE
', '
END
END,
'') + nmuloc
FROM elbat
ORDER BY row_number() OVER (ORDER BY nmuloc ASC)
FOR XML PATH('');
java / source
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<item
android:id="@+id/action_search"
android:title="@string/search"
app:showAsAction="never"/>
<item
android:id="@+id/action_menu"
android:title="@string/setting"
app:showAsAction="never"/>
</menu>