예제 #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);
 }
 @Override
 public Tab setCustomView(int layoutResId) {
   mNativeTab.setCustomView(layoutResId);
   return this;
 }
 @Override
 public Tab setCustomView(View view) {
   mNativeTab.setCustomView(view);
   return this;
 }