Improved layout of Addfeedactivity

This commit is contained in:
daniel oeh 2012-06-28 14:45:10 +02:00
parent 3c4167ed49
commit da1bf5a045
2 changed files with 46 additions and 30 deletions

View File

@ -1,32 +1,47 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:layout_height="fill_parent"
android:orientation="vertical" > android:orientation="vertical" >
<TextView
android:id="@+id/txtvFeedurl" <TextView
android:text="@string/feedurl_label" android:id="@+id/txtvFeedurl"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
<EditText android:id="@+id/etxtFeedurl"
android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:autoText="false" android:layout_alignParentTop="true"
android:capitalize="none"/> android:layout_margin="8dp"
<LinearLayout android:text="@string/txtvfeedurl_label" />
android:layout_width="match_parent"
android:layout_height="wrap_content" <EditText
android:orientation="horizontal"> android:id="@+id/etxtFeedurl"
<Button android:id="@+id/butConfirm" android:layout_width="fill_parent"
android:text="@string/confirm_label" android:layout_height="wrap_content"
android:layout_width="0px" android:layout_below="@id/txtvFeedurl"
android:layout_height="wrap_content" android:layout_margin="8dp"
android:layout_weight="1"/> android:hint="@string/feedurl_label"
<Button android:id="@+id/butCancel" android:inputType="textUri" />
android:layout_width="0px"
android:layout_height="wrap_content" <LinearLayout
android:layout_weight="1" android:id="@+id/footer"
android:text="@string/cancel_label"/> style="@android:style/ButtonBar"
</LinearLayout> android:layout_width="fill_parent"
</LinearLayout> android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:orientation="horizontal" >
<Button
android:id="@+id/butConfirm"
android:layout_width="0px"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/confirm_label" />
<Button
android:id="@+id/butCancel"
android:layout_width="0px"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/cancel_label" />
</LinearLayout>
</RelativeLayout>

View File

@ -67,5 +67,6 @@
<string name="error_label">Error</string> <string name="error_label">Error</string>
<string name="error_msg_prefix">An error occured:</string> <string name="error_msg_prefix">An error occured:</string>
<string name="download_error_connection_error">Connection error</string> <string name="download_error_connection_error">Connection error</string>
<string name="txtvfeedurl_label">Type in the URL of the Feed here:</string>
</resources> </resources>