Click here to Skip to main content
12,826,676 members (32,398 online)
   

Mobile

 
Questionandroid action bar Pin
msh667-Oct-12 2:15
membermsh667-Oct-12 2:15 
AnswerRe: android action bar Pin
Richard MacCutchan7-Oct-12 2:30
mvpRichard MacCutchan7-Oct-12 2:30 
GeneralRe: android action bar Pin
msh667-Oct-12 2:44
membermsh667-Oct-12 2: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 3:00
mvpRichard MacCutchan7-Oct-12 3:00 
AnswerRe: android action bar Pin
msh667-Oct-12 3:26
membermsh667-Oct-12 3: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
Web01 | 2.8.170326.1 | Last Updated 28 Mar 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid