我怎麼能位置上方滾動型佈局浮動按鈕...我試圖滾動型定位和相對佈局內的按鈕(的FrameLayout)的容器,但這種方式也不能正常工作... xml文件:
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:weightSum="100">
<ScrollView
android:layout_width="match_parent"
android:layout_height="@dimen/no_size"
android:layout_weight="92">
<LinearLayout
android:id="@+id/questionContainer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<com.rey.material.widget.TextView
android:id="@+id/surveyTitleTtv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="12dp"
android:textSize="20sp"
android:textStyle="bold"
android:textColor="@android:color/black" />
<com.rey.material.widget.TextView
android:id="@+id/test"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="12dp"
android:layout_marginLeft="12dp"
android:layout_marginBottom="12dp"
android:textColor="@color/accentColor"
android:textSize="17dp"
android:textStyle="bold" />
</LinearLayout>
</ScrollView>
<FrameLayout
android:id="@+id/bottomSheetLlt"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_weight="8"
android:background="@android:color/white">
<com.rey.material.widget.FloatingActionButton
android:id="@+id/saveQuestionBtn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:layout_marginTop="-20dp"
android:text="ADD"
app:elevation="2dp" />
</FrameLayout>
請誰能告訴我是怎麼回事?
我剛纔想it..but它仍然躲在下面bottomSheetLlt的FrameLayout – tsiro
請張貼這是有關什麼用戶看到的是看到所有的佈局文件。我們可以修改。 – apelsoczi
這是我在上面發佈的代碼的一個佈局文件... – tsiro