| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <android.support.v7.widget.CardView |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| xmlns:app="http://schemas.android.com/apk/res-auto" |
| android:orientation="vertical" |
| android:layout_width="match_parent" |
| android:layout_margin="5dp" |
| android:layout_height="250dp" |
| app:cardCornerRadius="5dp" |
| app:cardElevation="1dp"> |
| <RelativeLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content"> |
| <ImageView |
| android:id="@+id/ivWorkflowImage" |
| android:layout_width="match_parent" |
| android:layout_height="300dp" |
| android:scaleType="fitXY" |
| android:src="@drawable/sliding_header"/> |
| <TextView |
| android:background="@color/black_background" |
| android:id="@+id/tvUploader" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_alignBottom="@id/ivWorkflowImage" |
| android:text="Uploader" |
| android:paddingLeft="10dp" |
| android:paddingStart="10dp" |
| android:paddingRight="0dp" |
| android:paddingEnd="0dp" |
| android:paddingBottom="5dp" |
| android:textSize="14sp" |
| android:textColor="@android:color/white"/> |
| <TextView |
| android:background="@color/black_background" |
| android:id="@+id/tvDate" |
| android:layout_above="@id/tvUploader" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:text="date" |
| android:paddingLeft="10dp" |
| android:paddingStart="10dp" |
| android:paddingRight="0dp" |
| android:paddingEnd="0dp" |
| android:paddingBottom="5dp" |
| android:textSize="14sp" |
| android:textColor="@android:color/white"/> |
| <TextView |
| android:background="@color/black_background" |
| android:id="@+id/tvType" |
| android:layout_above="@id/tvDate" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:text="type" |
| android:paddingLeft="10dp" |
| android:paddingStart="10dp" |
| android:paddingRight="0dp" |
| android:paddingEnd="0dp" |
| android:paddingBottom="5dp" |
| android:textSize="16sp" |
| android:textColor="@android:color/white"/> |
| <TextView |
| android:background="@color/black_background" |
| android:id="@+id/tvTitle" |
| android:layout_above="@id/tvType" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:text="type" |
| android:paddingLeft="10dp" |
| android:paddingStart="10dp" |
| android:paddingRight="0dp" |
| android:paddingEnd="0dp" |
| android:paddingBottom="5dp" |
| android:singleLine="true" |
| android:ellipsize="end" |
| android:textSize="18sp" |
| android:textColor="@android:color/white"/> |
| </RelativeLayout> |
| </android.support.v7.widget.CardView> |