Wie füge ich ein Scrollview in diese und behalten Sie immer noch die Kopfzeile, die ich auf meiner App habe? Außerdem scheint es bei allen Tutorials erforderlich zu sein, zu einem LinearLayout zu wechseln, und das LinearLayout macht es mir schwer, alle Schaltflächen und Textfelder zu formatieren, die ich in die Aktivität aufnehmen muss.Ich muss eine Android-Aktivität mit einem Scrollview entwerfen
<?xml version="1.0" encoding="utf-8"?>
<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="washingtondeli.groupboxlunchesestimateandordering.CapitolhillActivity">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="Capitol Hill Picnic Box Lunch"
android:id="@+id/capitolhilltitle"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true" />
</RelativeLayout>
Was das Problem zu sein scheint? Wickeln Sie einfach Ihre TextView in eine ScrollView. Gewöhnen Sie sich auch daran, mit LinearLayouts zu arbeiten, da sie oft viel konsistenter auf verschiedene Geräte wie RelativeLayouts schauen. – Vucko
Sieh dir diese Frage an: http://stackoverflow.com/questions/6674341/how-to-use-scrollview-in-android – KevinTheGreat