T
thomas.b.reuter
Neues Mitglied
- 0
Das Layout für eine Activity meiner ersten App (blutiger Anfänger!!!) geht folgendermaßen los:
Ich will bestimmte Blöcke von Layoutelementen durch weiße Linien (o.Ä.) voneinander optisch abheben, d.h. zwischen dem EditText und dem TextView soll z.B. eine weiße Linie sein.
Gibt es eine einfache Möglichkeit so etwas zu realisieren? XML Attribute hierzu habe ich nicht gefunden.
Oder muß ich da evtl. Bilder von Linien mittels "ImageView" hinzufügen?
Oder kann ich das über eine Kombination verschiedener Layouts erreichen?
Code:
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android=
"http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="fill"
android:padding="10px" >
<EditText android:id="@+id/edittasktext"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
<TextView android:id="@+id/prioritylabel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/prioritylabel"
android:textSize="25sp"
android:textStyle="bold"
android:padding="10px"
android:layout_below="@id/edittasktext"
/>
... noch einiges mehr ...
Gibt es eine einfache Möglichkeit so etwas zu realisieren? XML Attribute hierzu habe ich nicht gefunden.
Oder muß ich da evtl. Bilder von Linien mittels "ImageView" hinzufügen?
Oder kann ich das über eine Kombination verschiedener Layouts erreichen?