Created
March 1, 2017 15:35
-
-
Save alkaaf/77461dbfa614cda0570aa92dd764c436 to your computer and use it in GitHub Desktop.
rowview
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <LinearLayout 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" | |
| xmlns:card_view="http://schemas.android.com/tools" | |
| android:orientation="vertical" | |
| android:padding="@dimen/default_size" | |
| > | |
| <android.support.v7.widget.CardView | |
| android:layout_width="match_parent" | |
| android:layout_height="wrap_content" | |
| android:clickable="true" | |
| android:foreground="?android:selectableItemBackground" | |
| app:cardElevation="4dp" | |
| app:cardPreventCornerOverlap="false" | |
| app:cardUseCompatPadding="true" | |
| card_view:cardCornerRadius="4dp" | |
| > | |
| <LinearLayout | |
| android:layout_width="match_parent" | |
| android:layout_height="wrap_content" | |
| android:orientation="horizontal"> | |
| <View | |
| android:id="@+id/cardSlip" | |
| android:layout_width="6dp" | |
| android:layout_height="match_parent" | |
| android:background="@color/colorPrimary" /> | |
| <RelativeLayout | |
| android:layout_width="match_parent" | |
| android:layout_height="wrap_content"> | |
| <LinearLayout | |
| android:layout_width="match_parent" | |
| android:layout_height="wrap_content" | |
| android:orientation="vertical"> | |
| <TextView | |
| android:id="@+id/tvId" | |
| android:layout_width="match_parent" | |
| android:layout_height="wrap_content" | |
| android:padding="@dimen/default_size" | |
| android:text="ABCDEFGHIJKLMNOP" | |
| android:textSize="20dp" | |
| android:textStyle="bold" /> | |
| <include layout="@layout/divider" /> | |
| <RelativeLayout | |
| android:layout_width="wrap_content" | |
| android:layout_height="wrap_content" | |
| android:paddingLeft="@dimen/default_size" | |
| android:paddingTop="@dimen/default_size"> | |
| <TextView | |
| android:id="@+id/tvNama" | |
| android:layout_width="wrap_content" | |
| android:layout_height="wrap_content" | |
| android:layout_alignParentStart="true" | |
| android:layout_centerVertical="true" | |
| android:text="Dalbo oblad" | |
| android:textSize="18dp" /> | |
| </RelativeLayout> | |
| <RelativeLayout | |
| android:paddingLeft="@dimen/default_size" | |
| android:layout_width="match_parent" | |
| android:layout_height="wrap_content" | |
| android:orientation="horizontal"> | |
| </RelativeLayout> | |
| <RelativeLayout | |
| android:layout_width="match_parent" | |
| android:layout_height="wrap_content" | |
| android:padding="@dimen/default_size"> | |
| <ImageView | |
| android:layout_centerVertical="true" | |
| android:id="@+id/ictgl" | |
| android:layout_width="12dp" | |
| android:layout_height="12dp" | |
| android:layout_alignParentStart="true" | |
| app:srcCompat="@drawable/ic_jadwal_black" | |
| android:tint="@color/darkergrey" /> | |
| <TextView | |
| android:id="@+id/tvWaktu" | |
| android:textSize="12dp" | |
| android:layout_width="wrap_content" | |
| android:layout_height="wrap_content" | |
| android:layout_centerVertical="true" | |
| android:layout_toRightOf="@+id/ictgl" | |
| android:text="22-Jun-2016 22:10" | |
| android:textColor="@color/darkergrey" /> | |
| <TextView | |
| android:id="@+id/tvUang" | |
| android:layout_width="wrap_content" | |
| android:layout_height="wrap_content" | |
| android:layout_alignParentEnd="true" | |
| android:layout_alignParentTop="true" | |
| android:text="Rp1234566789,-" | |
| android:textSize="18dp" | |
| android:textStyle="italic|bold" /> | |
| </RelativeLayout> | |
| <LinearLayout | |
| android:id="@+id/cardFooter" | |
| android:layout_width="match_parent" | |
| android:layout_height="wrap_content" | |
| android:background="#EEE" | |
| android:orientation="horizontal" | |
| android:padding="@dimen/half_size"> | |
| <LinearLayout | |
| android:layout_width="0dp" | |
| android:layout_height="wrap_content" | |
| android:layout_gravity="left" | |
| android:layout_weight="0.5"> | |
| <ImageView | |
| android:id="@+id/imgOval1" | |
| android:layout_width="@dimen/default_size" | |
| android:layout_height="@dimen/default_size" | |
| android:layout_gravity="center_vertical" | |
| android:layout_margin="@dimen/default_size" | |
| android:src="@drawable/bunder" | |
| android:tint="@color/red" /> | |
| <TextView | |
| android:id="@+id/tvStatus1" | |
| android:layout_width="wrap_content" | |
| android:layout_height="wrap_content" | |
| android:layout_gravity="center" | |
| android:text="Lunas" /> | |
| </LinearLayout> | |
| <LinearLayout | |
| android:layout_width="0dp" | |
| android:layout_height="wrap_content" | |
| android:layout_gravity="right" | |
| android:layout_weight="0.5" | |
| android:gravity="right"> | |
| <ImageView | |
| android:id="@+id/imgOval2" | |
| android:layout_width="@dimen/default_size" | |
| android:layout_height="@dimen/default_size" | |
| android:layout_gravity="center_vertical" | |
| android:layout_margin="@dimen/default_size" | |
| android:src="@drawable/bunder" | |
| android:tint="@color/colorPrimary" /> | |
| <TextView | |
| android:id="@+id/tvStatus2" | |
| android:layout_width="wrap_content" | |
| android:layout_height="wrap_content" | |
| android:layout_gravity="center" | |
| android:layout_marginRight="@dimen/default_size" | |
| android:text="Pencucian" /> | |
| </LinearLayout> | |
| </LinearLayout> | |
| </LinearLayout> | |
| </RelativeLayout> | |
| </LinearLayout> | |
| </android.support.v7.widget.CardView> | |
| </LinearLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment