Click here to Skip to main content
15,895,011 members
Home / Discussions / Mobile
   

Mobile

 
Questionandroid action bar Pin
msh667-Oct-12 1:15
msh667-Oct-12 1:15 
AnswerRe: android action bar Pin
Richard MacCutchan7-Oct-12 1:30
mveRichard MacCutchan7-Oct-12 1:30 
GeneralRe: android action bar Pin
msh667-Oct-12 1:44
msh667-Oct-12 1:44 
my code is :
C#
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
CSS
Unhandled Exception:Java.Lang.IllegalStateException


.
GeneralRe: android action bar Pin
Richard MacCutchan7-Oct-12 2:00
mveRichard MacCutchan7-Oct-12 2:00 
AnswerRe: android action bar Pin
msh667-Oct-12 2:26
msh667-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.