Wenn ich den Emulator starte und den Bildschirm betrete, der diesen Code verwendet, zeigt er die meisten Textinformationen an, schneidet aber den oberen Teil des Bildschirms ab (kann nicht nach oben scrollen), lässt aber a etwas Platz am unteren Rand.ScrollView schneidet die Oberseite ab und lässt unten Platz
Hier ist der Code;
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:visibility="visible"
android:fillViewport="true"
android:id="@+id/backgroundImage" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_gravity="center"
android:padding="10dip" >
<ImageView
android:id="@+id/earthSymbolImageView"
android:layout_width="25dp"
android:layout_height="25dp"
android:src="@drawable/earthsymbol" />
<TextView
android:id="@+id/earth_content1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/earth_title"
android:gravity="center"
android:textColor="#FFFFFF"
android:textSize="20sp" />
<TextView
android:id="@+id/earth_content2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/earth_text"
android:textColor="#FFFFFF" />
<Button
android:id="@+id/backButton"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/back" />
</LinearLayout>
</ScrollView>
Weiß jemand, warum würde das passieren?
Wenn möglich, hochladen. – MKJParekh
hast du versucht, dieses android zu entfernen: padding = "10dip" und stattdessen android: margin = "10dip", um das ding zu erledigen? – QAMAR
Versuchen Sie, 'android: fillViewport =" true "' Zeile in Ihrer Scrollview zu entfernen und dann zu überprüfen. – GrIsHu