5/17/2011
[Android] Tab Layout 的兩種實做方式 - TabWidget
Tab Layout 是一種適合將不同類型 View 作為顯示區隔的一種設計模式,這篇紀錄兩種實做的方式。按照 Android 官方範例說到,實現 Tab Layout 有兩種選擇:
1. Use the tabs to swap views within the same activity (使用單一activity去切換不同的views)
2. Use the tabs to change between entirely separate activities (用tabs切換多個activities)
以下附上我實驗出來的專案檔:
1. TabLayout_ViewSwap
2. TabLayout_Activities
參考資料:
1. http://developer.android.com/resources/tutorials/views/hello-tabwidget.html
2. http://developer.android.com/guide/topics/resources/drawable-resource.html#StateList
3. http://mobileorchard.com/android-app-development-tabbed-activities/
4. http://stackoverflow.com/questions/1590340/android-tabs-mapview-activities-within-tabs/3695817#3695817
... ...
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment