Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GlassActionBar with custom action bar #9

Open
Neno0o opened this issue Jan 30, 2015 · 1 comment
Open

GlassActionBar with custom action bar #9

Neno0o opened this issue Jan 30, 2015 · 1 comment

Comments

@Neno0o
Copy link

Neno0o commented Jan 30, 2015

Hi, I'm trying to set a custom glass actionbar on top of a listview, but I get a white background.
Here's my code

protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
chatAdapter = new ChatAdapter();
glassActionBarHelper = new GlassActionBarHelper().contentLayout(R.layout.activity_chat, chatAdapter);
setContentView(glassActionBarHelper.createView(this));

    ActionBar ab = getActionBar();
    ab.setDisplayHomeAsUpEnabled(true);
    View mActionbar = getLayoutInflater().inflate(R.layout.chat_action_bar, null);
    ab.setCustomView(mActionbar);
    ab.setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM);

}

@caocao485
Copy link

you can override the onCreateOptionsMenu method

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants