Notice
Recent Posts
Recent Comments
올해는 머신러닝이다.
getFont 오류 나오는 경우 본문
https://stackoverflow.com/a/47126127
Fix res/values/styles.xml and Manifest.xml like so:This solution is tested and don't forget to clean and build :
- Manifest.xml
change the theme of HomeActivity to :
<activity
android:name=".ui.home.HomeActivity"
android:theme="@style/Base.Theme.AppCompat.Light" />
<activity android:name=".BaseActivity"></activity>
2. res/values/styles.xml Make all your themes preceeded with Base :styles.xml will be like this :
<resources>
<!-- Base application theme. -->
<!--<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">-->
<style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
<style name="AppTheme.NoActionBar" parent="Base.Theme.AppCompat.Light">
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
<style name="AppTheme.AppBarOverlay" parent="Base.ThemeOverlay.AppCompat.Dark.ActionBar" />
<style name="AppTheme.PopupOverlay" parent="Base.ThemeOverlay.AppCompat.Light" />
Detailed explanation as requested: Theme.AppCompat.Light.DarkActionBar
is a subclass of the superclass Base
anyway. Ctrl+click (Android Studio) on it and you will be taken to the source:
<style name="Theme.AppCompat.Light.DarkActionBar" parent="Base.Theme.AppCompat.Light.DarkActionBar" />
- GithubBrowser-Master.gradle
make support_version = "27.0.0"
and not support_version = "26.0.2
4.app.gradle :
compileSdkVersion 27
buildToolsVersion '27.0.0'
and not
compileSdkVersion 26
buildToolsVersion '26.0.2'
'링크모음 > Android' 카테고리의 다른 글
Dagger 의존성 관련 설명 (0) | 2018.01.02 |
---|---|
안드로이드 지도 100프로 트래킹하기 (0) | 2017.12.30 |
안드로이드 엄청난 예제 링크 (0) | 2017.12.27 |
MVI 패턴 즐겨찾기 모음 (0) | 2017.12.26 |
Rn? 자마린??? 한국에서 위치는?? (0) | 2017.12.05 |