【发布时间】:2019-06-24 21:38:54
【问题描述】:
所以你可以在图片上看到我的按钮边框上有一个阴影。有没有办法去除阴影,使按钮的颜色与我的操作栏的颜色相对应。知道它看起来很丑,因为你可以看到阴影。这是我的代码:
<?xml version="1.0" encoding="utf-8"?>
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
>
<TableRow
android:gravity="end">
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/logInButton"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:borderWidth="0dp"
app:backgroundTint="@color/faviconColor"
app:srcCompat="@drawable/ic_person_black_24dp" />
</TableRow>
</TableLayout>
【问题讨论】:
-
background="@null"
-
@ivan nop 不起作用...
标签: android android-layout android-button floating-action-button