Android: getSupportActionBar() always returns null in ActionBarSherlock library

前端 未结 14 720
盖世英雄少女心
盖世英雄少女心 2020-11-29 05:29

I\'m trying to use the ActionBarSherlock library to provide backwards compatible ActionBar support with tabs in my Android app, so I downloaded the latest build, built the d

14条回答
  •  天涯浪人
    2020-11-29 06:12

    you are declared Theme.Sherlock or Theme.Sherlock.Light as your activity or application theme in the manifest Or using a custom theme that inherits from one of these two

    Example:-

    
    

    also u can use dark theme:-

    android:theme="@style/Theme.Sherlock"
    

提交回复
热议问题