diff options
Diffstat (limited to 'res/layout/news_card.xml')
-rw-r--r-- | res/layout/news_card.xml | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/res/layout/news_card.xml b/res/layout/news_card.xml new file mode 100644 index 000000000..2ef51a3f7 --- /dev/null +++ b/res/layout/news_card.xml @@ -0,0 +1,62 @@ +<?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:id="@+id/news_card" + android:layout_marginLeft="14dp" + android:layout_marginRight="14dp" + android:layout_marginTop="4dp"> + + <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> |