[問題] 目前最正確的分頁功能應該使用哪個物件?

看板AndroidDev作者 (Daniel)時間13年前 (2013/01/14 22:43), 編輯推噓6(602)
留言8則, 6人參與, 最新討論串1/1
Dear all, 小弟是android新手, 最近想練習分頁功能, 但google似乎改了好幾次版本? 網路上的資料有的都是很舊的功能, 新版的api甚至已經不支援, 目前查到的資料有 tabhost, tabactivity, fraqment, fraqmentactivity, actionbar 但照著網路上的範例到最後都執行不了, 官網也只有actionbar, 請問如果想做出跟speedtest.net這個app下方一樣的換頁選項, https://play.google.com/store/apps/details?id=org.zwanoo.android.speedtest&hl=en 到底應該用哪一種才好呢? 謝謝 ps. 目前使用android 4.2 api 17 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 180.218.158.208

01/14 23:23, , 1F
FragmentTabs ?
01/14 23:23, 1F

01/14 23:41, , 2F
搜尋 android tabactivity fragment
01/14 23:41, 2F

01/14 23:43, , 3F
01/14 23:43, 3F

01/14 23:45, , 4F
fragment,找action bar的API Guide
01/14 23:45, 4F

01/15 01:11, , 5F
Fragment
01/15 01:11, 5F

01/15 08:40, , 6F
那Actionbar算是平板專用?
01/15 08:40, 6F

01/15 12:04, , 7F
Actionbar是android 3.0以後才有的 不算平板專用
01/15 12:04, 7F

01/15 22:51, , 8F
Actionbarsherlock
01/15 22:51, 8F
文章代碼(AID): #1Gz1cT88 (AndroidDev)