【发布时间】:2015-11-27 08:34:55
【问题描述】:
我想在 FloatingActionButton 上方添加一个 TextView,我使用 FrameLayout 作为 TextView 和 FloatingActionButton 的父布局,这是我的示例代码:
<FrameLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<android.support.design.widget.FloatingActionButton
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:backgroundTint="#00fff0"
app:borderWidth="0dp"
android:elevation="0dp"
app:fabSize="normal" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#000000"
android:text="above"/>
</FrameLayout>
但是没用,TextView在FloatingActionButton下面,像这样
我很穷,谁能帮帮我?
【问题讨论】:
标签: android floating-action-button