回答

0

不,沒有。我也搜索了從右到左的支持,但Android中沒有這樣的東西。

我做什麼是操作碼,所以用戶會覺得它的右至左 - 我創建的XML 3個標籤,並添加到我的活動代碼:

final TabHost tabs = (TabHost) this.findViewById(R.id.tabhost); 
    tabs.setup(); 
    TabHost.TabSpec spec; 
    final Resources resources = this.getResources(); 

    // third tab (first from left) 
    spec = tabs.newTabSpec("tag3"); 
    spec.setContent(R.id.aboutImg); 
    spec.setIndicator(this.getString(R.string.title_about), resources.getDrawable(R.drawable.id)); 
    tabs.addTab(spec); 

    // second tab 
    spec = tabs.newTabSpec("tag2"); 
    spec.setContent(R.id.listfav); 
    spec.setIndicator(this.getString(R.string.title_favorites), resources.getDrawable(R.drawable.bdge)); 
    tabs.addTab(spec); 

    // first tab 
    spec = tabs.newTabSpec("tag1"); 
    spec.setContent(R.id.viewflipper); 
    spec.setIndicator(this.getString(R.string.title_main), resources.getDrawable(R.drawable.cab)); 
    tabs.addTab(spec); 

    tabs.setCurrentTab(2); 

收費關注最後一行 - 即時將當前標籤設置爲最後一個 - 從右側開始。

相關問題