我开发了android应用程序.我完成了更多,但我想尽量减少选项.我用过标签栏.在那我想最小化标签.用户单击最小化选项卡以最小化整个应用程序 我的tabbar代码为..
public class tabbar extends TabActivity implements OnTabChangeListener {
private Context mContext;
TabHost tabHost;
int tabload=0;
private AlertDialog alertDialog;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.tabbar);
//mContext=this;
/** TabHost will have Tabs */
tabHost = (TabHost)findViewById(android.R.id.tabhost);
tabHost.setOnTabChangedListener(this);
/** TabSpec used to create a new tab.
* By using TabSpec only we can able to setContent to the tab.
* By using TabSpec setIndicator() we can set name to tab. …Run Code Online (Sandbox Code Playgroud) 我想"最小化"应用程序,使其在后台完全相同,当用户单击按钮时按下主页按钮(但没有完成)我该怎么做?