Open taar1 opened 5 years ago
Strange, I had no issues with switching to AndroidX. What was happening for you?
Excerpt from my build.gradle:
compileSdkVersion 28
buildToolsVersion "28.0.3"
defaultConfig {
minSdkVersion 19
targetSdkVersion 28
}
dependencies {
...
implementation 'com.github.hackware1993:MagicIndicator:1.5.0'
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
}
Example layout:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<net.lucode.hackware.magicindicator.MagicIndicator
android:id="@+id/magicIndicatorThing"
android:layout_width="fill_parent"
android:layout_height="45dp" />
<androidx.viewpager.widget.ViewPager
android:id="@+id/viewPagerThing"
android:layout_width="fill_parent"
android:layout_height="0dp"
android:layout_weight="1"/>
</LinearLayout>
MadicIndicator isn't compatible with any of my projects anymore since targetSdkVersion 28
Neither with Android X nor with the Android Support Library.
We badly need an update that is compatible with Android Oreo and Pie etc.