我想添加一個FloatingActionButton上面一個TextView,我使用的FrameLayout作爲TextView的和FloatingActionButton的父佈局,這裏是我的示例代碼:如何添加一個TextView一個FloatingActionButton以上的Android
<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下方,這樣
我對此很窮,任何人都可以幫助我嗎?
RelativeLayout的?? –