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

No actionbar #2

Closed
hamen opened this issue Apr 1, 2014 · 5 comments
Closed

No actionbar #2

hamen opened this issue Apr 1, 2014 · 5 comments

Comments

@hamen
Copy link

hamen commented Apr 1, 2014

Hi
Is there some tweak to make this run without Actionbar?
Thank you

@reisub
Copy link
Contributor

reisub commented Apr 1, 2014

When you declare the activity in the manifest, you can set a theme which has the actionbar disabled.

Something like this:

<style name="AppTheme.NoActionBar" parent="AppTheme">
      <item name="android:windowActionBar">false</item>
      <item name="android:windowNoTitle">true</item>
</style>

@hamen
Copy link
Author

hamen commented Apr 1, 2014

Hi
It gave me NPE at

Caused by: java.lang.NullPointerException at
im.dino.dbinspector.fragments.DatabaseListFragment.onActivityCreated(DatabaseListFragment.java:37)

so I moved theme settings from Application level to Activity level. We can still have our activity with no actionbar, but your activity has it. It's working OK now.

Thank you

@hamen hamen closed this as completed Apr 1, 2014
@hamen
Copy link
Author

hamen commented Apr 1, 2014

Do you have a flattr account?

@hamen hamen reopened this Apr 1, 2014
@reisub
Copy link
Contributor

reisub commented Apr 1, 2014

You're welcome.
There's a flattr button at the bottom of the README.

@reisub reisub closed this as completed Apr 1, 2014
@reisub reisub reopened this Apr 1, 2014
@reisub reisub closed this as completed Apr 1, 2014
@reisub
Copy link
Contributor

reisub commented Apr 2, 2014

I added the theme attribute to the activity declaration in the README, so it doesn't just use the application theme.

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