aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorHalzyn2015-05-28 15:32:51 +0200
committerHalzyn2015-05-28 15:32:51 +0200
commit464c0b27203b90b96c7f41d4d87cf13fa6387a03 (patch)
tree5471d4e53951c7a20668c4ef6f80b4d6ecaf3ac9 /app/src/main/res/layout
parentLoader for unified inbox (diff)
CardView
what it says
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/activity_filter.xml20
-rw-r--r--app/src/main/res/layout/item_feeditem.xml38
2 files changed, 41 insertions, 17 deletions
diff --git a/app/src/main/res/layout/activity_filter.xml b/app/src/main/res/layout/activity_filter.xml
index b144d08..19b7fad 100644
--- a/app/src/main/res/layout/activity_filter.xml
+++ b/app/src/main/res/layout/activity_filter.xml
@@ -1,13 +1,15 @@
-<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"
- tools:context="org.rssin.android.FilterActivity">
- <ListView
- android:id="@+id/filter_items_list"
+<LinearLayout 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"
+tools:context="org.rssin.android.FilterActivity">
+ <!-- A RecyclerView with some commonly used attributes -->
+
+ <android.support.v7.widget.RecyclerView
+ android:id="@+id/my_recycler_view"
+ android:scrollbars="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
-</RelativeLayout>
+ </LinearLayout> \ No newline at end of file
diff --git a/app/src/main/res/layout/item_feeditem.xml b/app/src/main/res/layout/item_feeditem.xml
index 9f4c553..0b3c944 100644
--- a/app/src/main/res/layout/item_feeditem.xml
+++ b/app/src/main/res/layout/item_feeditem.xml
@@ -1,19 +1,41 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:card_view="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
- android:padding="10dp">
+ android:padding="15dp">
- <TextView android:id="@+id/feeditem_title"
- android:layout_width="fill_parent"
+ <android.support.v7.widget.CardView
+ android:id="@+id/filter_items_list"
+ android:layout_gravity="center"
+ android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:textSize="@dimen/font_size_normal"/>
+ card_view:cardElevation="4dp"
+ card_view:cardCornerRadius="4dp">
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical"
+ android:padding="8dp">
+
+ <TextView android:id="@+id/feeditem_title"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:text="Lorem Ipsum Dolor Sit Amet"
+ android:textSize="@dimen/font_size_huge"/>
+ <TextView android:id="@+id/feeditem_summary"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:text="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed eu pulvinar sapien, vel hendrerit lectus. Donec et sem lorem. Phasellus pharetra ornare ligula, sit amet volutpat nunc. Aenean posuere neque et leo gravida faucibus. Nunc ut neque sagittis, hendrerit tortor sit amet, interdum nisl. Quisque nibh elit, varius sed eros at, euismod commodo orci. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Duis interdum, sem porttitor feugiat fringilla, nunc ex blandit lorem, in ultrices dolor sapien et lorem. Vestibulum sit amet feugiat enim, eu luctus turpis. "
+ android:textSize="@dimen/font_size_small"/>
+
+ </LinearLayout>
+
+
+ </android.support.v7.widget.CardView>
- <TextView android:id="@+id/feeditem_summary"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:textSize="@dimen/font_size_small"/>
</LinearLayout> \ No newline at end of file