aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorHalzyn2015-06-02 15:39:46 +0200
committerHalzyn2015-06-02 15:39:46 +0200
commitd1a43fb394f57defa6b2595e31b7fee1c9d49407 (patch)
treeb9b979d749c7f35ffbd4fc24d23420c8381b3ee5 /app/src/main/res
parentNeural network training picks random training cases instead of doing an itera... (diff)
OnClick implemented for feed items
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/activity_article.xml50
-rw-r--r--app/src/main/res/menu/menu_article.xml7
-rw-r--r--app/src/main/res/values/strings.xml1
3 files changed, 58 insertions, 0 deletions
diff --git a/app/src/main/res/layout/activity_article.xml b/app/src/main/res/layout/activity_article.xml
new file mode 100644
index 0000000..b08fe38
--- /dev/null
+++ b/app/src/main/res/layout/activity_article.xml
@@ -0,0 +1,50 @@
+<RelativeLayout 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:paddingBottom="@dimen/activity_vertical_margin"
+ android:paddingLeft="@dimen/activity_horizontal_margin"
+ android:paddingRight="@dimen/activity_horizontal_margin"
+ android:paddingTop="@dimen/activity_vertical_margin"
+ tools:context="org.rssin.android.ArticleActivity">
+
+ <ScrollView
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical">
+
+ <TextView
+ android:id="@+id/article_title"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:textSize="@dimen/font_size_huge"
+ android:textAlignment="center"/>
+
+ <TextView
+ android:id="@+id/article_author"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:textSize="@dimen/font_size_small"
+ android:textStyle="italic"/>
+
+ <TextView
+ android:id="@+id/article_description"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:textSize="@dimen/font_size_normal" />
+
+ <TextView
+ android:id="@+id/article_date"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:textSize="@dimen/font_size_small"
+ android:textStyle="italic"/>
+ </LinearLayout>
+ </ScrollView>
+
+
+</RelativeLayout>
diff --git a/app/src/main/res/menu/menu_article.xml b/app/src/main/res/menu/menu_article.xml
new file mode 100644
index 0000000..3692b70
--- /dev/null
+++ b/app/src/main/res/menu/menu_article.xml
@@ -0,0 +1,7 @@
+<menu xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
+ tools:context="org.rssin.android.ArticleActivity">
+ <item android:id="@+id/action_settings" android:title="@string/action_settings"
+ android:orderInCategory="100" app:showAsAction="never" />
+</menu>
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 665b36c..4e40abf 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -42,4 +42,5 @@
<string name="title_activity_feeds">Feeds</string>
<string name="hello_world">Hello world!</string>
+ <string name="title_activity_article">ArticleActivity</string>
</resources>