skip to Main Content

Android Studio – android material design sample code giving missing resources errors

I am trying to run android material design same taken from below https://github.com/material-components/material-components-android but getting these errors : failed :lib:packageDebugResources tokens.xml Can't determine type for tag '<macro name="m3_comp_bottom_app_bar_container_color">?attr/colorSurface</macro>' tokens.xml Can't determine type for tag '<macro name="m3_sys_color_dark_surface_tint">?attr/colorPrimary</macro>' fab_tokens.xml Can't determine type…

VIEW QUESTION

Android Studio – Button android studio, how to create a button that stops setonclicklistener function?

I have a button such as <com.google.android.material.button.MaterialButton android:id="@+id/button" style="@style/Widget.MaterialComponents.Button.OutlinedButton.Icon" android:layout_width="150dp" android:layout_height="50dp" android:text="@string/lightning" android:textColor="#FFFFFF" android:textSize="14sp" app:icon="@drawable/ic_baseline_flash_on_24" app:iconTint="@color/white" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_bias="0.061" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" app:layout_constraintVertical_bias="0.239" app:strokeColor="@color/white" app:strokeWidth="1dp" /> I have created a setOnClickListener method and inside their is a loop. val btnClickMe1 =…

VIEW QUESTION
Back To Top
Search