我在其下使用ScrollView和RelativeLayout。我在屏幕的底部有一個按鈕。 我希望按鈕在滾動時隨屏幕一起移動。按鈕應該出現在屏幕的右下角。屏幕上的修復按鈕
我已經嘗試使用FrameLayout如在與這個問題有關的答案之一所述,但我想我的按鈕在那裏在屏幕的右下角。 截至目前按鈕出現在整個屏幕的底部,這意味着您將不得不向下滾動一下才能看到它。
<ScrollView
android:layout_height="match_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:fillViewport="true"
>
<RelativeLayout
android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"
android:layout_width="match_parent"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin"
tools:context="com.example.android.app1.SecondScreen">
<TextView
android:text="Check all the Symptoms which apply - "
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="25sp"
android:id="@+id/textView" />
<CheckBox1>
<CheckBox2>
<CheckBox3>
<CheckBox4>
<CheckBox5>
<CheckBox6>
<CheckBox7>
<CheckBox8>
<CheckBox9>
<CheckBox10>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="25sp"
android:text="submit"
android:id="@+id/submitbutton"
android:layout_below="@id/Lastcheckbox"
android:layout_alignParentRight="true"
/>
</RelativeLayout>
</ScrollView>
如何實現這一目標?
我已經下載了最新的更新,但現在該怎麼做更新? –
如果你的android studio不是1.4+,那麼去幫助 - >檢查更新。如果你有1.4+版本...那麼你都將設置爲由android studio生成的晶圓廠,只是創建一個新的空白項目將爲你做的東西 – johnrao07
我有Android 1.2。點擊幫助 - >檢查更新是否要求下載更新。我已經下載了更新。我應該如何繼續下去? –