Last active
February 2, 2017 16:51
-
-
Save avipars/2e596aeb043c890c9957e1a207755bf2 to your computer and use it in GitHub Desktop.
Material Help
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"?> | |
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:id="@+id/activity_main" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
tools:context="com.aviparshan.idfinfo.MainActivity"> | |
<android.support.v7.widget.RecyclerView | |
android:id="@+id/recycler_view" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent"/> | |
</RelativeLayout> |
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"?><!-- START*** Root Container *** --> | |
<android.support.v7.widget.CardView 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" | |
card_view:cardCornerRadius="6dp" | |
card_view:cardElevation="1dp" | |
card_view:cardUseCompatPadding="true" | |
android:foreground="?android:attr/selectableItemBackground" | |
android:clickable="true" | |
card_view:cardPreventCornerOverlap="false" | |
> | |
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_margin="5dp" | |
android:orientation="vertical" | |
android:padding="5dp"> | |
<ImageView | |
android:id="@+id/txt_employee_image" | |
android:layout_width="80dp" | |
android:layout_height="80dp" | |
android:paddingLeft="10dp" | |
android:paddingRight="10dp" | |
android:contentDescription="@string/image" | |
android:layout_centerVertical="true" /> | |
<!-- TextView Employee Name --> | |
<TextView | |
android:id="@+id/txt_employee_name" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:paddingLeft="10dp" | |
android:paddingStart="10sp" | |
android:paddingBottom="10dp" | |
android:textSize="18sp" | |
android:textStyle="bold" | |
android:elevation="1dp" | |
android:layout_toEndOf="@+id/txt_employee_image" | |
android:layout_alignParentLeft="true" | |
android:layout_alignParentStart="true" | |
android:layout_toRightOf="@+id/txt_employee_image" | |
android:gravity="center_vertical|center_horizontal" | |
android:hapticFeedbackEnabled="false" /> | |
<!-- TextView Employee Email --> | |
<View | |
android:layout_width="match_parent" | |
android:layout_above="@+id/txt_employee_email" | |
android:background="@color/cardview_shadow_start_color" | |
android:layout_height="1dp" | |
android:layout_toEndOf="@+id/txt_employee_image" | |
android:layout_alignParentLeft="true" | |
android:layout_alignParentStart="true" | |
android:layout_toRightOf="@+id/txt_employee_image" /> | |
<TextView | |
android:id="@+id/txt_employee_email" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_below="@+id/txt_employee_name" | |
android:layout_toRightOf="@+id/txt_employee_image" | |
android:layout_toEndOf="@+id/txt_employee_image" | |
android:paddingLeft="10sp" | |
android:paddingStart="10sp" | |
android:textSize="16sp" /> | |
<!-- TextView Employee Phone --> | |
<TextView | |
android:id="@+id/txt_employee_phone" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_below="@+id/txt_employee_email" | |
android:layout_toRightOf="@+id/txt_employee_image" | |
android:layout_toEndOf="@+id/txt_employee_image" | |
android:paddingLeft="10sp" | |
android:paddingStart="10sp" | |
android:textSize="16sp" /> | |
</RelativeLayout> | |
</android.support.v7.widget.CardView><!-- END*** Root Container *** --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment