Реализация 'com.google.android.material: material: 1.0.0'
Но я получаю ошибку в заголовке при запуске api19 на устройстве.
Для этого:
<style name = "Theme.MyApp" parent = "Theme.MaterialComponents.Light">
<style name = "Theme.MyApp" parent = "Theme.MaterialComponents.Light.Bridge">
Я попробовал методы, но не получил результата.Как я могу решить эту проблему?
В других версиях Android нет проблем.
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<com.google.android.material.button.MaterialButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/google_login_button"
app:icon="@drawable/google"
app:layout_constraintStart_toStartOf="@+id/guideline"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintEnd_toStartOf="@+id/facebook_login_button"
app:layout_constraintHorizontal_chainStyle="spread_inside"
app:layout_constraintTop_toTopOf="@+id/facebook_login_button"
app:layout_constraintBottom_toBottomOf="@+id/facebook_login_button"
android:text="@string/google_button_text" app:cornerRadius="@dimen/login_screen_button_radius"/>
<com.google.android.material.button.MaterialButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/facebook_login_button"
app:icon="@drawable/facebook"
app:layout_constraintStart_toEndOf="@+id/google_login_button"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintEnd_toStartOf="@+id/twitter_login_button"
app:layout_constraintBottom_toBottomOf="parent"
android:layout_marginBottom="8dp"
android:text="@string/facebook_button_text" android:layout_marginStart="8dp"
android:layout_marginEnd="8dp" app:cornerRadius="@dimen/login_screen_button_radius"/>
<com.google.android.material.button.MaterialButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/twitter_login_button"
app:icon="@drawable/twitter"
app:layout_constraintEnd_toStartOf="@+id/guideline2"
app:layout_constraintStart_toEndOf="@+id/facebook_login_button"
app:layout_constraintHorizontal_bias="0.5"
android:layout_marginEnd="8dp"
app:layout_constraintBottom_toBottomOf="@+id/facebook_login_button"
app:layout_constraintTop_toTopOf="@+id/facebook_login_button"
android:text="@string/twitter_button_text" app:cornerRadius="@dimen/login_screen_button_radius"/>