Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/180.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 我想在按钮的一半后面添加滚动视图_Android - Fatal编程技术网

Android 我想在按钮的一半后面添加滚动视图

Android 我想在按钮的一半后面添加滚动视图,android,Android,请帮助我在按钮后面添加两个滚动视图(即从病房上的半按钮开始滚动请帮助我如何设计试试这段代码,滚动视图是从按钮的一半开始,很多文本视图用于检查滚动视图 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" an

请帮助我在按钮后面添加两个滚动视图(即从病房上的半按钮开始滚动请帮助我如何设计

试试这段代码,滚动视图是从按钮的一半开始,很多文本视图用于检查滚动视图

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:paddingBottom="@dimen/activity_vertical_margin"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    tools:context=".MainActivity" >

    <ScrollView
        android:id="@+id/scrollView1"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_alignParentLeft="true"
        android:layout_alignTop="@+id/button1"
        android:layout_marginLeft="22dp"
        android:layout_marginTop="20dp" >

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:orientation="vertical" >

            <TextView
                android:id="@+id/textView1"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="Large TextLarge TextLarge TextLarge 
                Large TextLarge TextLarge TextLarge TextLarge Text
                Large TextLarge TextLarge TextLarge TextLarge Text
                Large TextLarge TextLarge TextLarge TextLarge Text
                Large TextLarge TextLarge TextLarge TextLarge Text
                Large TextLarge TextLarge TextLarge TextLarge Text
                Large TextLarge TextLarge TextLarge TextLarge Text
                Large TextLarge TextLarge TextLarge TextLarge Text
                Large TextLarge TextLarge TextLarge TextLarge Text
                Large TextLarge TextLarge TextLarge TextLarge Text
                Large TextLarge TextLarge TextLarge TextLarge Text
                Large TextLarge TextLarge TextLarge TextLarge Text
                Large TextLarge TextLarge TextLarge TextLarge Text
                Large TextLarge TextLarge TextLarge TextLarge Text
                Large TextLarge TextLarge TextLarge TextLarge Text
                Large TextLarge TextLarge TextLarge TextLarge Text"
                android:textAppearance="?android:attr/textAppearanceLarge" />
        </LinearLayout>
    </ScrollView>

    <Button
        android:id="@+id/button1"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignLeft="@+id/scrollView1"
        android:layout_alignParentTop="true"
        android:layout_marginLeft="39dp"
        android:layout_marginRight="39dp"
        android:background="#ffff55"
        android:text="Button" />

</RelativeLayout>


你能画出来吗?这有点混乱。这里有一个问题是按钮是click-able,你可以在类中编写按钮。setClickable(false);