-2

getActionBar在android中返回null。儘管我已經嘗試過獲取this.getRequestFeature,那麼遇到的actionbar參考會出現nullpointerexception。 我想在android L中實現帶有選項卡的actionbar,並且不推薦使用actionbar.tablistener。 有人可以請建議一種方法來做它在Android L?getActionBar在Android中返回null L.

+0

您可以發佈代碼,您已經嘗試過嗎? – Aleksandar 2014-11-21 09:12:02

回答