hm-lok

Unnamed repository; edit this file 'description' to name the repository.
git clone http://git.code.weiherhei.de/hm-lok.git
Log | Files | Refs

commit 127638fd539f6834ad3997ba94ffd041399ccbc3
parent ebb11b207694472d41dd3c28c3193aef5a34e199
Author: dankert <devnull@localhost>
Date:   Thu, 22 Sep 2011 22:10:03 +0200

Einbinden in eine Scrollview, damit die View scrollbar ist.

Diffstat:
res/layout/main.xml | 30++++++++++++++++++------------
res/layout/pvo_detail.xml | 48+++++++++++++++++++++++++++++++-----------------
2 files changed, 49 insertions(+), 29 deletions(-)

diff --git a/res/layout/main.xml b/res/layout/main.xml @@ -1,16 +1,21 @@ <?xml version="1.0" encoding="utf-8"?> -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:orientation="vertical" android:layout_width="fill_parent" - android:layout_height="fill_parent"> +<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" android:layout_height="wrap_content"> + <LinearLayout android:orientation="vertical" + android:layout_width="fill_parent" android:layout_height="fill_parent"> - <TextView android:layout_width="fill_parent" - android:layout_height="wrap_content" android:text="@string/hello" /> - <ImageView android:src="@drawable/hm_logo_tp" - android:background="#B9DCCA" android:padding="20sp" android:layout_height="30sp" android:scaleType="fitXY" android:layout_width="60sp"/> + <ImageView android:src="@drawable/hm_logo_tp" + android:padding="20sp" android:adjustViewBounds="true" + android:layout_height="wrap_content" android:scaleType="fitXY" + android:layout_width="fill_parent" /> - <Button android:id="@+id/button_pvo" android:text="@string/pvo" - android:layout_width="fill_parent" android:layout_height="wrap_content" style="@style/HMButton" android:layout_margin="20sp"/> - <Button android:id="@+id/button_www" android:text="@string/website" style="@style/HMButton" - android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_margin="20sp"/> + <Button android:id="@+id/button_pvo" android:text="@string/pvo" + android:layout_width="fill_parent" android:layout_height="wrap_content" + style="@style/HMButton" android:layout_margin="20sp" /> + <Button android:id="@+id/button_www" android:text="@string/website" + style="@style/HMButton" android:layout_width="fill_parent" + android:layout_height="wrap_content" android:layout_margin="20sp" /> -</LinearLayout> + </LinearLayout> + +</ScrollView>+ \ No newline at end of file diff --git a/res/layout/pvo_detail.xml b/res/layout/pvo_detail.xml @@ -1,28 +1,41 @@ <?xml version="1.0" encoding="utf-8"?> -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:orientation="vertical" android:layout_width="fill_parent" - android:layout_height="fill_parent"> +<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" + android:layout_height="wrap_content"> +<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" + android:layout_height="fill_parent" android:padding="10sp"> + + <ImageView android:src="@drawable/hm_icon" + android:layout_width="wrap_content" android:layout_height="wrap_content" /> - <TextView android:text="@+id/TextView01" android:layout_width="wrap_content" - android:layout_height="wrap_content" android:id="@+id/pvo_title" - android:textSize="30px"></TextView> <TextView android:text="@+id/TextView02" android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/pvo_name" - android:textSize="14px"></TextView> + android:textSize="30sp"></TextView> + <TextView android:text="@+id/TextView01" android:layout_width="wrap_content" + android:layout_height="wrap_content" android:id="@+id/pvo_title" + android:textSize="18sp"></TextView> <TextView android:text="@+id/TextView03" android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/pvo_str" - android:textSize="14px"></TextView> - <TextView android:text="@+id/TextView03" android:layout_width="wrap_content" - android:layout_height="wrap_content" android:id="@+id/pvo_plz" - android:textSize="14px"></TextView> + android:textSize="14sp"></TextView> <TextView android:text="@+id/TextView03" android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/pvo_ort" - android:textSize="14px"></TextView> + android:textSize="14sp"></TextView> <TextView android:text="@+id/TextView03" android:layout_width="wrap_content" - android:layout_height="wrap_content" android:id="@+id/pvo_entfernung" - android:textSize="14px"></TextView> - - <Button android:id="@+id/details" android:text="@string/phone" - android:layout_width="fill_parent" android:layout_height="wrap_content" /> + android:layout_height="wrap_content" android:id="@+id/pvo_fon" + android:textSize="14sp"></TextView> + <TextView android:text="@+id/TextView03" android:layout_width="wrap_content" + android:layout_height="wrap_content" android:id="@+id/pvo_fax" + android:textSize="14sp"></TextView> + <TextView android:text="@+id/TextView03" android:layout_width="wrap_content" + android:layout_height="wrap_content" android:id="@+id/pvo_mail" + android:textSize="14sp"></TextView> + + <Button android:id="@+id/button_phone" android:text="@string/phone" + android:layout_width="fill_parent" android:layout_height="wrap_content" + style="@style/HMButton" android:layout_margin="20sp"/> + <Button android:id="@+id/button_map" android:text="@string/map" + android:layout_width="fill_parent" android:layout_height="wrap_content" + style="@style/HMButton" android:layout_margin="20sp"/> </LinearLayout> + +</ScrollView>+ \ No newline at end of file