Exemplo n.º 1
0
 // This method adds a tab for use in tabbed navigation mode
 public void Add(String _title, View _panel, String _iconIdentifier) {
   ActionBar.Tab tab = CreateTab(_title, _panel);
   if (!_iconIdentifier.equals("")) {
     tab.setIcon(
         GetDrawableResourceById(GetDrawableResourceId(_iconIdentifier))); // _iconIdentifier
   }
   ActionBar actionBar = this.controls.activity.getActionBar();
   actionBar.addTab(tab, false);
 }
 @Override
 public Tab setIcon(int resId) {
   mNativeTab.setIcon(resId);
   return this;
 }
 @Override
 public Tab setIcon(Drawable icon) {
   mNativeTab.setIcon(icon);
   return this;
 }