я получаю этот журнал ошибок, так как я изменил кое-что в моей floating action button
(и добавил еще один):андроид аварии приложение так потрясающего изменения
Вот мой код:
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/AppTheme.AppBarOverlay">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
app:popupTheme="@style/AppTheme.PopupOverlay" />
</android.support.design.widget.AppBarLayout>
<include layout="@layout/content_assets_overview" />
<android.support.design.widget.FloatingActionButton
android:id="@+id/fabAdd"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:layout_margin="@dimen/fab_margin"
android:src="@drawable/ic_add_white_24dp"
app:tint="@color/white"
app:backgroundTint="@color/colorFABadd"/>
<android.support.design.widget.FloatingActionButton
android:id="@+id/fabRemove"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:layout_marginBottom="70dp"
android:layout_marginEnd="16dp"
android:src="@drawable/ic_remove_white_24dp"
app:tint="@color/white"
app:backgroundTint="@color/colorFABremove"/>
<android.support.design.widget.FloatingActionButton
android:id="@+id/fabHint"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:layout_marginBottom="124dp"
android:layout_marginEnd="16dp"
android:src="@drawable/ic_lightbulb_outline_white_24dp"
app:tint="@color/white"
app:backgroundTint="@color/colorFABhint"/>
Может кто-нибудь, пожалуйста, скажите мне, что я сделал не так? Я предполагаю, что это имеет какое-то отношение к изменению цвета. Благодарю.
Можете ли вы показать свой полный XML-файл? - ошибка указывает на 'tint', который использует пространство имен' app: '. – ishmaelMakitla
Можете ли вы добавить строку 'xmlns: app =" http://schemas.android.com/apk/res-auto "' - и посмотреть, устраняет ли это ошибку - я вижу, что она отсутствует в вашем XML. Это нужно добавить в свой самый XML-тег, чтобы вы могли использовать 'app:' в обернутых компонентах, таких как 'FloatingActionButton'. – ishmaelMakitla
jep его есть, но я не знаю, почему он не был скопирован ... –