2

I have to say I'm pretty lost when it comes to designing tabbed layouts on Android right now. The platform developers seem to be evolving the design faster than I can figure out their intentions.

From what I can gather from the combination of the recently deprecated TabActivity and the new design guide, I think they intend for tabs to be exclusively with the Action Bar, either inside the main action bar or stacked on a secondary action bar.

Though the developer's guide suggests using the Action Bar for "global navigation". Does this mean that it's recommended to create your own tabs outside the Action Bar if your tabs only apply to a particular application context?

4

1 に答える 1

2

ここでは、「グローバル」はローカル コンテキストで使用されます。:) このステートメントの意図は、アクション バー タブをアクティビティのグローバル ナビゲーションに使用する必要があること、およびアクション バー タブを使用して同じアクティビティのサブペイン内でナビゲーションを切り替えることを控えるべきであるということです。

これは主に、コンテンツの複数のペインがある可能性がある大画面またはタブレット レイアウトに適用されます。このような構成でアクション バー タブを使用する場合、それらのタブがアクティビティの右側の詳細ペインにのみ適用され、左側のペインはそのままにしておくのは意味がありません。アクティビティの 1 つのペインにのみ適用されるタブが必要な場合は、それらのタブをアクション バーの一部ではなく、そのペインの一部にする必要があります。

基本的に、タブは常に、影響を受けるコンテンツに対してローカルである必要があります。タブを切り替えるとアクティビティ ウィンドウ全体の異なるコンテンツが切り替わる場合は、アクション バー タブを使用します。タブが UI の小さな部分に近い場合は、新しいタブを選択したときに実際に変更されるコンテンツの近くに配置します。

于 2012-09-14T00:26:23.927 に答える