Odoo Framework - For Activity Titlebar is not shown
up vote
0
down vote
favorite
In case of activity, titlebar is not shown.
I have tried:
1.getActionBar().show();
Error: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.app.ActionBar.show()' on a null object reference
2.Added below in OnCreate:
getWindow().addFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN);
getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
3.Tried using AppCompactActivity.

add a comment |
up vote
0
down vote
favorite
In case of activity, titlebar is not shown.
I have tried:
1.getActionBar().show();
Error: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.app.ActionBar.show()' on a null object reference
2.Added below in OnCreate:
getWindow().addFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN);
getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
3.Tried using AppCompactActivity.

add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
In case of activity, titlebar is not shown.
I have tried:
1.getActionBar().show();
Error: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.app.ActionBar.show()' on a null object reference
2.Added below in OnCreate:
getWindow().addFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN);
getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
3.Tried using AppCompactActivity.

In case of activity, titlebar is not shown.
I have tried:
1.getActionBar().show();
Error: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.app.ActionBar.show()' on a null object reference
2.Added below in OnCreate:
getWindow().addFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN);
getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
3.Tried using AppCompactActivity.


asked 7 hours ago
Nandhini
13
13
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53370475%2fodoo-framework-for-activity-titlebar-is-not-shown%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown