Click here to Skip to main content
12,297,734 members (26,173 online)
   

Mobile

 
Questionandroid action bar Pin
msh667-Oct-12 1:15
membermsh667-Oct-12 1:15 
AnswerRe: android action bar Pin
Richard MacCutchan7-Oct-12 1:30
mvpRichard MacCutchan7-Oct-12 1:30 
GeneralRe: android action bar Pin
msh667-Oct-12 1:44
membermsh667-Oct-12 1:44 
my code is :
protected override void OnCreate(Bundle bundle)
       {
           base.OnCreate(bundle);
           SetContentView(Resource.Layout.Main);
       
           Directory.InitializeDirectory();
           ActionBar bar = ActionBar;
 
           
           mActionBarView = LayoutInflater.Inflate(Resource.Layout.action_bar_custom, null);
           ActionBar.SetCustomView(mActionBarView, new ActionBar.LayoutParams(WindowManagerLayoutParams.WrapContent, WindowManagerLayoutParams.WrapContent));
 
           var tab1 = ActionBar.NewTab();
           tab1.SetText("Login");
           tab1.SetTabListener(actionbarInterface);
           bar.AddTab(bar.NewTab().SetText("Login").SetTabListener(actionbarInterface));
           bar.CustomView = mActionBarView;
           bar.DisplayOptions = ActionBarDisplayOptions.ShowCustom | ActionBarDisplayOptions.UseLogo;
           bar.NavigationMode = ActionBarNavigationMode.Tabs;
           bar.SetDisplayShowHomeEnabled(true);

The full text of the error is
Unhandled Exception:Java.Lang.IllegalStateException

.
GeneralRe: android action bar Pin
Richard MacCutchan7-Oct-12 2:00
mvpRichard MacCutchan7-Oct-12 2:00 
AnswerRe: android action bar Pin
msh667-Oct-12 2:26
membermsh667-Oct-12 2:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.160525.2 | Last Updated 26 May 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid