Ich poste meinen Code unten, im folgenden Layout gibt es einen Platz von oben im Layout angezeigt. Ich möchte nur den oberen Platz entfernen und versuchen, Titel oben anzuzeigen. Aber ich bin verwirrt, wie man es setzt. Bitte schlagen Sie mir Lösung vor. Vielen Dank im Voraus.Android Layout nicht richtig angezeigt
XML Datei
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="top"
android:orientation="vertical"
android:weightSum="100">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<TextView
android:id="@+id/folder_name"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:paddingLeft="30dip"
android:textSize="15dp"
android:layout_weight="1"
android:textColor="#115c28"/>
<TextView
android:id="@+id/folder_count"
android:layout_width="0dp"
android:layout_height="60dp"
android:textSize="20dp"
android:textStyle="bold"
android:textColor="#115c28"
android:gravity="center"
android:paddingRight="30dip"
android:paddingLeft="35dip"
android:layout_weight="1" />
</LinearLayout>
<ListView
android:id="@+id/folder_display_list"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</LinearLayout>
Haben Sie eine screencap von dem, was Sie erreichen wollen? –
Hallo, ich bin nicht in der Lage, den Screenshot zu posten, Problem ist, dass Layout zeigt den Namen und zählt richtig nacheinander, aber von der Aktionsleiste gibt es den Raum von oben. Ich möchte diesen Raum entfernen –