Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以使 SherlockActionBar 半透明,而无需为其分配背景可绘制对象?
您可以使用requestWindowFeature(Window.FEATURE_ACTION_BAR_OVERLAY);它使其类似透明,但它是一个浮动的 ActionBar,内容可以在它后面。
requestWindowFeature(Window.FEATURE_ACTION_BAR_OVERLAY);