Android ConstraintLayout 向后兼容旧 android 版本?
Android ConstraintLayout backward compatible to older android version?
我正在使用 Android Studio 3.5 并正在开发新的 Android 应用程序,该应用程序必须 运行 在 Android 4.0 及更高版本上。
我想使用ConstraintLayout。我的应用程序是否与 Android 4.0 兼容?
是它将在 4.0 上运行,它 向后兼容直到 api 级别 9,请查看 this link 了解更多信息。
minsdk 取决于所使用的库:
借助 支持库(class 是 android.support.constraint.ConstraintLayout
),您可以使用:
implementation 'com.android.support.constraint:constraint-layout:1.1.3' --> minSdk=9
使用 androidx(class 是 androidx.constraintlayout.widget.ConstraintLayout
)你可以使用:
implementation "androidx.constraintlayout:constraintlayout:2.0.0-beta2" --> minSdk=14
implementation "androidx.constraintlayout:constraintlayout:1.1.3" --> minSdk=9
我正在使用 Android Studio 3.5 并正在开发新的 Android 应用程序,该应用程序必须 运行 在 Android 4.0 及更高版本上。
我想使用ConstraintLayout。我的应用程序是否与 Android 4.0 兼容?
是它将在 4.0 上运行,它 向后兼容直到 api 级别 9,请查看 this link 了解更多信息。
minsdk 取决于所使用的库:
借助 支持库(class 是 android.support.constraint.ConstraintLayout
),您可以使用:
implementation 'com.android.support.constraint:constraint-layout:1.1.3' --> minSdk=9
使用 androidx(class 是 androidx.constraintlayout.widget.ConstraintLayout
)你可以使用:
implementation "androidx.constraintlayout:constraintlayout:2.0.0-beta2" --> minSdk=14
implementation "androidx.constraintlayout:constraintlayout:1.1.3" --> minSdk=9