質問がありました。回答が見つかりませんでした。 レイアウトをスクロールしてスクロールしない別のレイアウトを作成するにはどうすればよいですか? 一方、私はレイアウトを作る必要がある場合はスクロールするいくつかのボタンを含め、私は画面の下部に2つのボタンを配置したいと私はそれらがスクロールするときに消えたくない。アクティビティの一部をスクロールする方法
<?xml version="1.0" encoding="utf-8"?>
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:background="@drawable/background"
android:layout_width="match_parent"
android:layout_height="match_parent">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
tools:context="com.myname.myapp.MainActivity">
// a bunch of Buttons and TextViews
</RelativeLayout>
</scrollView>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
// two Moveless Buttons
</RelativeLayout>
しかし、動作しません。
「機能しません」とはどういう意味ですか?あなたはこのアプリを実行し、どのようにあなたが望むものと異なるのでしょうか? –
エラーがあります。 "Multiple Root Tags" – Skillson
グーグルのエラーメッセージはほとんど常に良い結果をもたらします。たとえば、[this](http://stackoverflow.com/questions/24275533/multiple-root-tags-in-android-studio)。 –