Android Question B4XPages Action bar menu item height

Grinaute

Member
Licensed User
Longtime User
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)?

Screenshot.jpg
 

Attachments

  • ActionBar Menu.zip
    10.2 KB · Views: 73

jkhazraji

Active Member
Licensed User
Longtime User
change the value '30dp' in androidmanifest.xml:
XML:
 <item name="android:actionBarSize">30dp</item>
into :
XML:
 <item name="android:actionBarSize">48dp</item>
1718994975339.png
 
Last edited:
Upvote 0

Grinaute

Member
Licensed User
Longtime User
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

jkhazraji

Active Member
Licensed User
Longtime User
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.
B4X:
 <item name="android:actionBarSize">30dp</item>
        <item name="android:listPreferredItemHeightSmall">30dp</item>
1719004160724.png
 
Upvote 1
Solution

Grinaute

Member
Licensed User
Longtime User
Thanks a lot, that's the line I was missing:
B4X:
<item name="android:listPreferredItemHeightSmall">30dp</item>
 
Upvote 0
Top