9/19/2023 0 Comments Wallpaper menu androidSo we have to use a solution that works in current versions and is designed to minimize the chances of crashing/breaking in future versions. We would love to do this with a documented, future-proof solution, but one is simply not available as of Android <= 2.3. However, there is currently no way to control the Options menu text color with styles, and so one can only use this method to change the background to another color that won't make the text "disappear." I and many other developers wish to control the background color of the Options menu cells as well as the color of the Options menu text.Ĭertain app developers only need to set the cell background color (not the text color), and they can do this in a cleaner manner using the android:panelFullBackground style described in another answer. Pure black with white text on some, pure white with black text on some. The Options menu has vastly different styles on different devices. STATEMENT OF THE PROBLEM (read this before trigger-replying with a negative comment): This hack will almost certainly do nothing (no harm and no good) on 3.X tablets. Given that 3.X tablets use Action Bars instead of Options Menus, as explained here: I don't have any 3.X tablets to test on yet but will post any needed changes here when/if I do. I tested this hack on 2.1 (simulator), 2.2 (2 real devices), and 2.3 (2 real devices). Is it possible to make the Android options menu background non-translucent? How to change the background color of the options menu?Īndroid: customize application's menu (e.g background color) There are a lot of crossed intentions and misunderstandings floating around posts on this topic, so please read this whole answer before responding.īelow I include a more "refined" and well-commented version of the hack from other answers on this page, also incorporating ideas from these very closely related questions: This is clearly a problem that a lot of programmers have and to which Google has yet to provide a satisfactory, supported solution.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |