1
我的移动应用程序必须具有所有空间(活动)的背景图像。 ActionBar是透明的,我想通过ActionBar看到背景图像。 如何做到这一点?如何在ActionBar下设置背景
我的移动应用程序必须具有所有空间(活动)的背景图像。 ActionBar是透明的,我想通过ActionBar看到背景图像。 如何做到这一点?如何在ActionBar下设置背景
我认为你可以做这样的事情让你的动作条透明:
getWindow().requestFeature(Window.FEATURE_ACTION_BAR_OVERLAY);
ActionBar actionBar = getActionBar();
actionBar.setBackgroundDrawable(new ColorDrawable(Color.parseColor("#330000ff")));
actionBar.setStackedBackgroundDrawable(new ColorDrawable(Color.parseColor("#550000ff")));