PreferenceFragmentCompat has padding on PreferenceCategory that I can’t get rid of

Actually there is a better hack to fix this, also with resource overriding: Create res/values-sw360dp-v13/values-preference.xml: <?xml version=”1.0″ encoding=”utf-8″?> <resources xmlns:tools=”http://schemas.android.com/tools”> <bool name=”config_materialPreferenceIconSpaceReserved” tools:ignore=”MissingDefaultResource,PrivateResource”>false</bool> <dimen name=”preference_category_padding_start” tools:ignore=”MissingDefaultResource,PrivateResource”>0dp</dimen> </resources> The <bool> fixes the default value of iconSpacePreserved for all Preference; The <dimen> fixes the PreferenceCategory. EDIT: If you are using androidx.preference:preference:1.1.0-alpha01 or above, you won’t need the … Read more

Error when adding buildFeatures in build.gradle file

I caught this error when I tried to add Jetpack to my existing app. I followed Suraj’s answer, even used the newest Kotlin gradle plugin, and couldn’t exactly figure out what was wrong. I also followed the official setup guide and it didn’t work. Everything seemed okay, but nothing helped. Installing Android Studio 4.0 canary … Read more

Crash on Android 10 (InflateException in layout/abc_screen_simple line #17)

Update Calligraphy to newest version to solve this problem: Link: https://github.com/InflationX/Calligraphy/issues/35 More specifically, both Calligraphy and ViewPump need to be updated: implementation ‘io.github.inflationx:calligraphy3:3.1.1’ implementation ‘io.github.inflationx:viewpump:2.0.3’ Migrating from Calligraphy 2 to 3 requires some code changes; see examples in Calligraphy 3 README.

SupportMapFragment does not support AndroidX Fragment

This issue has already been reported to Google in the public issue tracker: https://issuetracker.google.com/issues/110573930 I would suggest starring the feature request in the public issue tracker to add your vote and subscribe to further notifications from Google. Hopefully, Google will implement it in next versions of Android Maps SDK. Update Google has provided the following … Read more