summaryrefslogtreecommitdiff
path: root/res/layout
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-03-24 19:43:03 +0400
committerAndrew Dolgov <[email protected]>2013-03-24 19:43:03 +0400
commitad12b2b945d23af48d3930c1602971dc8e4924d8 (patch)
tree3c35724d3f9ce0faf9989a12e6ae021f9bef899c /res/layout
parentc6493ebb707216fcc5241528298b94302c49d373 (diff)
integrate share app stuff into tt-rss app
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/share.xml53
-rw-r--r--res/layout/subscribe.xml51
2 files changed, 104 insertions, 0 deletions
diff --git a/res/layout/share.xml b/res/layout/share.xml
new file mode 100644
index 00000000..f1803130
--- /dev/null
+++ b/res/layout/share.xml
@@ -0,0 +1,53 @@
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/main"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:padding="5dp" >
+
+ <EditText
+ android:id="@+id/title"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentLeft="true"
+ android:layout_alignParentRight="true"
+ android:layout_alignParentTop="true"
+ android:ems="10"
+ android:hint="@string/share_title_hint"
+ android:singleLine="true" />
+
+ <EditText
+ android:id="@+id/url"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignLeft="@+id/title"
+ android:layout_alignParentRight="true"
+ android:layout_below="@+id/title"
+ android:ems="10"
+ android:hint="@string/share_url_hint"
+ android:singleLine="true" />
+
+ <EditText
+ android:id="@+id/content"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentLeft="true"
+ android:layout_alignRight="@+id/url"
+ android:layout_below="@+id/url"
+ android:ems="10"
+ android:hint="@string/share_content_hint"
+ android:inputType="textMultiLine"
+ android:maxLines="3" >
+
+ <requestFocus />
+ </EditText>
+
+ <Button
+ android:id="@+id/share_button"
+ android:layout_width="100dp"
+ android:layout_height="wrap_content"
+ android:layout_alignParentLeft="true"
+ android:layout_alignRight="@+id/content"
+ android:layout_below="@+id/content"
+ android:text="@string/share_share_button" />
+
+</RelativeLayout> \ No newline at end of file
diff --git a/res/layout/subscribe.xml b/res/layout/subscribe.xml
new file mode 100644
index 00000000..3b61424a
--- /dev/null
+++ b/res/layout/subscribe.xml
@@ -0,0 +1,51 @@
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/main"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:padding="5dp" >
+
+ <EditText
+ android:id="@+id/feed_url"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentLeft="true"
+ android:layout_alignParentRight="true"
+ android:ems="10"
+ android:hint="@string/feed_url"
+ android:inputType="textUri"
+ android:maxLines="3" >
+
+ <requestFocus />
+ </EditText>
+
+ <Spinner
+ android:id="@+id/category_spinner"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignLeft="@+id/feed_url"
+ android:layout_alignParentRight="true"
+ android:layout_below="@+id/feed_url" />
+
+ <LinearLayout
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignLeft="@+id/category_spinner"
+ android:layout_alignRight="@+id/category_spinner"
+ android:layout_below="@+id/category_spinner" >
+
+ <Button
+ android:id="@+id/cats_button"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_weight="0.5"
+ android:text="Update categories" />
+
+ <Button
+ android:id="@+id/subscribe_button"
+ android:layout_width="wrap_content"
+ android:layout_weight="0.5"
+ android:layout_height="wrap_content"
+ android:text="@string/subscribe_to_feed" />
+ </LinearLayout>
+
+</RelativeLayout> \ No newline at end of file