I'm using the compat library to add an action bar to an app. I have set a custom theme which extends Theme.AppCompat and set a background for the action bar and a background for the application. However the action bar icon and title backgrounds seems to be transparent which means the app background is visible through the action bar as you can see below. Any ideas?
Thanks
Related
I tried to add an icon to the Action Bar, in ShowAsAction I set it to ifRoom. But no matter how, the icon only shows up in the 3 dot menu and never show up in the Action Bar, what are the possible cause of this issue?
For an activity with NoActionBar in its theme, an action bar is still shown temporarily when calling startActionMode().
Is it possible to make the temporary action bar shown use an overlay? Setting windowActionBarOverlay in the theme does not affect the action bar shown by startActionMode().
I have some problems with the translucent navigation and title bar in our app. It looks very bad.
On the Splashscreen the background behind the navigation bar is broken directly on the border to the main screen. The complete background screen is not completely expanded to the background of the translucent navigation bar.
The other problem is, that the title bar is grey and das not have the color of the action bar. The title bar have the color of the
android:windowBackground
Is it possible to expand the style of the action bar to the title bar?
I want to customize navigation drawer app compact action bar, I want to remove app icon from that and want to make its title center in action bar.
I have applied all solutions , but nothing is working with all the conditions.
Please give me some clue for applying it correctly
You should creat a customize action bar. Then, if you want you can add a button that can open and close your drawerlayout.
I have solved my problem. As mentioned, I have two problems, and I solved that in following way :
1) For making title centre, we need to make custom layout of action bar, and need to remove action bar title.
2) for remove app icon from action bar, we need to set android:icon property of that activity in manifest with transparent image or colour.
I made an icon for my Android app but I want to use a different file for the action bar. So on icon for app section, and one icon for action bar. How can I do that ?
From official documentation:
By default, the system uses your application icon in the action bar,
as specified by the icon attribute in the or
element. However, if you also specify the logo attribute, then the
action bar uses the logo image instead of the icon.
http://developer.android.com/guide/topics/ui/actionbar.html#Logo