You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add following line to your gradle of DobSliding module - if you are using android studio, else download the lib from officials http://actionbarsherlock.com/download.html
The point is while you use TabActivity and child activity inside Tabhost, you will face the same issue once you call ((TabActivity) getParent()).getActionBar().set...() in your childActivity Extends Activity and then try to create object of
// Initialization
try {
// Instance of this activity as a parameter
vSlidingMenu = new DobSlidingMenu(this);
// Sliding type can be sizing or moving
vSlidingMenu.setSlidingType(SlidingType.SIZE);
..}
if you just use getActionBar().set...() ... then the null pointer error will lies here for any method call using getActionBar() ... before you can create object of DobSlidingMenu
in following function getting null pointer exception in this line.
"actionBarView = (View) home.getParent().getParent().getParent();"
please provide gradle build.
public static View getActionBarView(ViewGroup decor)
throws NoActionBarException {
View actionBarView;
Context context = decor.getContext();
The text was updated successfully, but these errors were encountered: