B
Boris0815
Fortgeschrittenes Mitglied
- 4
Hallo,
ich verusche gerade meine erste Android-App zu schreiben und komme nicht so recht mit den Layouts klar. Im Anhang ist ein Bild mit meinem Layout.
Was ich eigentlich haben möchte:
Gruß
Boris
ich verusche gerade meine erste Android-App zu schreiben und komme nicht so recht mit den Layouts klar. Im Anhang ist ein Bild mit meinem Layout.
Was ich eigentlich haben möchte:
- Ein Tab-Control mit zwei Reitern
- In einem Tab befindet sich zuerst eine Liste (Listview)
- Unter der Liste befindet sich eine Gruppe von Textfeldern und Buttons
- Zum einen ist der Header meiner Liste vom Tab-Control überdeckt.
- Zum Anderen wachsen meine Buttons und Textfelder rechts zu weit raus.
- Zu Letzt hab ich das Problem, dass wenn die Tastatur genutzt wird, diese über meinen Buttons liegt. Können die Buttons nach oben "rutschen" wenn die Tastatur genutzt wird?
Code:
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/tabhost"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<RelativeLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="3dp">
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
/>
<TabWidget
android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignTop = "@android:id/tabcontent"
/>
</RelativeLayout>
</TabHost>
Ich bin für jegliche Hilfe dankbar.<LinearLayout 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:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
androidrientation="vertical" >
<LinearLayout
androidrientation="horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:id="@+id/textviewAccount"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
androidadding="@dimen/padding_medium"
android:text="@string/Account"
tools:context=".AccountActivity" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
androidadding="@dimen/padding_medium"
android:text="@string/Saldo"
tools:context=".AccountActivity" />
</LinearLayout>
<ListView
android:id="@+id/habentable"
android:layout_width="match_parent"
android:layout_height="150dp"
/>
<TableLayout
android:layout_height="match_parent"
android:layout_width="match_parent"
>
<TableRow>
<TextView
android:text="@string/description"
/>
<EditText
android:id="@+id/editTextDescription"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10"
android:textSize="@dimen/padding_larger"
android:inputType="text"
/>
</TableRow>
<TableRow>
<TextView
android:text="@string/value"
/>
<EditText
android:id="@+id/editTextWert"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10"
android:textSize="@dimen/padding_larger"
android:inputType="number|numberDecimal"
/>
</TableRow>
<TableRow>
<Button android:id="@+id/buttonAdd"
android:layout_width="120dp"
android:layout_height="wrap_content"
androidnClick="onClickAddAccount"
android:text="@string/addButton"
android:textSize="@dimen/padding_larger"/>
<Button android:id="@+id/buttonSub"
android:layout_width="match_parent"
android:layout_height="wrap_content"
androidnClick="onClickSubAccount"
android:text="@string/subButton"
android:textSize="@dimen/padding_larger"/>
</TableRow>
</TableLayout>
</LinearLayout>
Gruß
Boris