recycler view item layout redesign
Project: http://git-wip-us.apache.org/repos/asf/incubator-taverna-mobile/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-taverna-mobile/commit/c817f7bd Tree: http://git-wip-us.apache.org/repos/asf/incubator-taverna-mobile/tree/c817f7bd Diff: http://git-wip-us.apache.org/repos/asf/incubator-taverna-mobile/diff/c817f7bd Branch: refs/heads/master Commit: c817f7bd0500c8a822d2d1aca32da380dc00dcfe Parents: 9712f39 Author: Sagar <[email protected]> Authored: Fri May 6 23:53:41 2016 +0530 Committer: Sagar <[email protected]> Committed: Fri May 6 23:53:41 2016 +0530 ---------------------------------------------------------------------- app/src/main/res/layout/item_recyclerview.xml | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-taverna-mobile/blob/c817f7bd/app/src/main/res/layout/item_recyclerview.xml ---------------------------------------------------------------------- diff --git a/app/src/main/res/layout/item_recyclerview.xml b/app/src/main/res/layout/item_recyclerview.xml index 5a05bcc..caea66b 100644 --- a/app/src/main/res/layout/item_recyclerview.xml +++ b/app/src/main/res/layout/item_recyclerview.xml @@ -1,15 +1,28 @@ <?xml version="1.0" encoding="utf-8"?> <android.support.v7.widget.CardView - xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/cv" + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" - android:layout_height="wrap_content"> + android:layout_height="wrap_content" + android:layout_marginBottom="5dp" + android:layout_marginEnd="10dp" + android:layout_marginLeft="10dp" + android:layout_marginRight="10dp" + android:layout_marginStart="10dp" + android:layout_marginTop="5dp" + app:cardCornerRadius="5dp" + app:cardElevation="2pt" + > <TextView android:id="@+id/textview_announcement" android:layout_width="match_parent" android:layout_height="wrap_content" - android:textSize="20sp" - android:text="111111"/> + android:gravity="center" + android:padding="5dp" + android:text="111111" + android:textSize="25sp" + /> </android.support.v7.widget.CardView> \ No newline at end of file
