alpha 0.0.2
[DHBWCampusApp.git] / app / src / main / res / layout / fragment_news_item.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3     xmlns:tools="http://schemas.android.com/tools"
4     xmlns:card_view="http://schemas.android.com/apk/res-auto"
5     android:orientation="vertical" android:layout_width="match_parent"
6     android:layout_height="match_parent">
7
8     <android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
9         android:id="@+id/card_timetable"
10         android:layout_width="match_parent"
11         android:layout_height="wrap_content"
12         android:layout_margin="8dp"
13         card_view:cardCornerRadius="5dp">
14
15         <LinearLayout
16             android:layout_width="match_parent"
17             android:layout_height="match_parent"
18             android:paddingLeft="8dp"
19             android:paddingTop="4dp"
20             android:paddingRight="8dp"
21             android:paddingBottom="4dp"
22             android:orientation="horizontal"
23             android:id="@+id/newsItemLayout">
24
25             <RelativeLayout
26                 android:layout_width="wrap_content"
27                 android:layout_height="wrap_content"
28                 android:layout_weight="1">
29
30                 <TextView
31                     android:layout_width="wrap_content"
32                     android:layout_height="wrap_content"
33                     android:text="{title}"
34                     android:id="@+id/newsTitleView" />
35
36                 <TextView
37                     android:layout_width="wrap_content"
38                     android:layout_height="wrap_content"
39                     android:text="{description}"
40                     android:id="@+id/newsDescriptionView"
41                     android:layout_below="@+id/newsTitleView"
42                     android:layout_alignParentLeft="true"
43                     android:layout_alignParentStart="true" />
44             </RelativeLayout>
45
46             <RelativeLayout
47                 android:layout_width="80dp"
48                 android:layout_height="50dp"
49                 android:layout_alignParentRight="true">
50
51                 <ImageView
52                     android:layout_width="wrap_content"
53                     android:layout_height="wrap_content"
54                     android:id="@+id/dhbwLogo"
55                     android:src="@drawable/dhbw_logo"
56                     android:layout_alignParentTop="true"
57                     android:layout_alignParentLeft="true"
58                     android:layout_alignParentStart="true"
59                     android:scaleType="fitStart" />
60                 <ImageView
61                     android:layout_width="wrap_content"
62                     android:layout_height="wrap_content"
63                     android:id="@+id/stuvLogo"
64                     android:src="@drawable/header_stuv"
65                     android:layout_alignParentTop="true"
66                     android:layout_alignParentLeft="true"
67                     android:layout_alignParentStart="true"
68                     android:scaleType="fitStart"
69                     android:visibility="visible" />
70
71             </RelativeLayout>
72
73         </LinearLayout>
74
75     </android.support.v7.widget.CardView>
76
77 </LinearLayout>