Android 如何在scrollingtext视图下获取按钮?
您需要使用,这是在布局中组织视图的方法 对于您的情况,一种类型的视图组就足够了Android 如何在scrollingtext视图下获取按钮?,android,xml,Android,Xml,您需要使用,这是在布局中组织视图的方法 对于您的情况,一种类型的视图组就足够了 <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_margin="@dimen/text_margin" android:text="@string/large_text3" /> <Button android:
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="@dimen/text_margin"
android:text="@string/large_text3" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="How to form the genitive case"
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="@dimen/text_margin"
android:text="@string/large_text3" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="How to form the genitive case"/>
</LinearLayout>