G Grinaute Member Licensed User Longtime User Jun 21, 2024 #1 Hello, what code should I use so that the Information menu, which contains only one item, is the same height as the action bar, set at 30dip and not 50dip as the default (see the manifest in the attached file)? Attachments ActionBar Menu.zip 10.2 KB · Views: 63
Hello, what code should I use so that the Information menu, which contains only one item, is the same height as the action bar, set at 30dip and not 50dip as the default (see the manifest in the attached file)?
Solution jkhazraji Jun 21, 2024 Grinaute said: Thanks, but that's not what I want to do. I've set the action bar to 30dip and I want the menu to have the same height, i.e. 30dip. Click to expand... B4X: <item name="android:actionBarSize">30dp</item> <item name="android:listPreferredItemHeightSmall">30dp</item>
Grinaute said: Thanks, but that's not what I want to do. I've set the action bar to 30dip and I want the menu to have the same height, i.e. 30dip. Click to expand... B4X: <item name="android:actionBarSize">30dp</item> <item name="android:listPreferredItemHeightSmall">30dp</item>
jkhazraji Active Member Licensed User Longtime User Jun 21, 2024 #2 change the value '30dp' in androidmanifest.xml: XML: <item name="android:actionBarSize">30dp</item> into : XML: <item name="android:actionBarSize">48dp</item> Last edited: Jun 21, 2024 Upvote 0
change the value '30dp' in androidmanifest.xml: XML: <item name="android:actionBarSize">30dp</item> into : XML: <item name="android:actionBarSize">48dp</item>
G Grinaute Member Licensed User Longtime User Jun 21, 2024 #3 Thanks, but that's not what I want to do. I've set the action bar to 30dip and I want the menu to have the same height, i.e. 30dip. Upvote 0
Thanks, but that's not what I want to do. I've set the action bar to 30dip and I want the menu to have the same height, i.e. 30dip.
jkhazraji Active Member Licensed User Longtime User Jun 21, 2024 #4 Grinaute said: Thanks, but that's not what I want to do. I've set the action bar to 30dip and I want the menu to have the same height, i.e. 30dip. Click to expand... B4X: <item name="android:actionBarSize">30dp</item> <item name="android:listPreferredItemHeightSmall">30dp</item> Upvote 1 Solution
Grinaute said: Thanks, but that's not what I want to do. I've set the action bar to 30dip and I want the menu to have the same height, i.e. 30dip. Click to expand... B4X: <item name="android:actionBarSize">30dp</item> <item name="android:listPreferredItemHeightSmall">30dp</item>
G Grinaute Member Licensed User Longtime User Jun 21, 2024 #5 Thanks a lot, that's the line I was missing: B4X: <item name="android:listPreferredItemHeightSmall">30dp</item> Upvote 0
Thanks a lot, that's the line I was missing: B4X: <item name="android:listPreferredItemHeightSmall">30dp</item>