summaryrefslogtreecommitdiffstats
path: root/res/layout/news_card_first.xml
diff options
context:
space:
mode:
Diffstat (limited to 'res/layout/news_card_first.xml')
-rw-r--r--res/layout/news_card_first.xml73
1 files changed, 73 insertions, 0 deletions
diff --git a/res/layout/news_card_first.xml b/res/layout/news_card_first.xml
new file mode 100644
index 000000000..d63039db1
--- /dev/null
+++ b/res/layout/news_card_first.xml
@@ -0,0 +1,73 @@
+<?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:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical"
+ android:id="@+id/news_card"
+ android:layout_marginLeft="14dp"
+ android:layout_marginRight="14dp"
+ android:layout_marginTop="20dp">
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/news_card_title"
+ android:textSize="16sp"
+ android:layout_marginStart="2dp"
+ android:fontFamily="sans-serif-light"
+ android:textColor="@color/home_next_text_divider"
+ android:layout_marginBottom="12dp"/>
+
+ <android.support.v7.widget.CardView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:id="@+id/item_card"
+ card_view:cardCornerRadius="3dp"
+ card_view:cardElevation="2dp"
+ card_view:cardUseCompatPadding="true"
+ card_view:cardBackgroundColor="#bb36474f">
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="134dp"
+ android:orientation="horizontal">
+
+ <ImageView
+ android:layout_width="88dp"
+ android:layout_height="match_parent"
+ android:scaleType="centerCrop"
+ android:id="@+id/news_image"/>
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical"
+ android:padding="12dp">
+
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:textSize="18sp"
+ android:textColor="@color/calendar_text_primary"
+ android:fontFamily="sans-serif-light"
+ android:maxLines="4"
+ android:layout_weight="1"
+ android:id="@+id/news_title"/>
+
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:textSize="12sp"
+ android:textColor="@color/calendar_text_secondary"
+ android:id="@+id/news_source_time"
+ android:fontFamily="sans-serif-light"
+ android:layout_weight="0"/>
+
+ </LinearLayout>
+
+ </LinearLayout>
+
+ </android.support.v7.widget.CardView>
+
+</LinearLayout>