diff options
author | Halzyn | 2015-06-02 15:39:46 +0200 |
---|---|---|
committer | Halzyn | 2015-06-02 15:39:46 +0200 |
commit | d1a43fb394f57defa6b2595e31b7fee1c9d49407 (patch) | |
tree | b9b979d749c7f35ffbd4fc24d23420c8381b3ee5 /app/src/main/res | |
parent | Neural 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.xml | 50 | ||||
-rw-r--r-- | app/src/main/res/menu/menu_article.xml | 7 | ||||
-rw-r--r-- | app/src/main/res/values/strings.xml | 1 |
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> |