Ejemplo n.º 1
0
 public void Add(String _title, View _panel, View _customTabView) {
   ActionBar.Tab tab = CreateTab(_title, _panel);
   _customTabView.setVisibility(View.VISIBLE);
   tab.setCustomView(_customTabView); // This overrides values set by setText(CharSequence) and
   // setIcon(Drawable).
   ActionBar actionBar = this.controls.activity.getActionBar();
   actionBar.addTab(tab, false);
 }
Ejemplo n.º 2
0
 @Override
 public Tab setCustomView(int layoutResId) {
   mNativeTab.setCustomView(layoutResId);
   return this;
 }
Ejemplo n.º 3
0
 @Override
 public Tab setCustomView(View view) {
   mNativeTab.setCustomView(view);
   return this;
 }