Created
September 23, 2016 17:38
-
-
Save webserveis/2e2afb4463da678863c3875ea1b99022 to your computer and use it in GitHub Desktop.
Layout para crear lista simple compatible recyclerview en Android
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:layout_width="match_parent" | |
android:layout_height="56dp" | |
android:background="?android:attr/selectableItemBackground" | |
android:paddingEnd="16dp" | |
android:paddingLeft="16dp" | |
android:paddingRight="16dp" | |
android:paddingStart="16dp" | |
tools:context="com.webserveis.app.detaile.MainActivity"> | |
<ImageView | |
android:id="@+id/iv_image" | |
android:layout_width="48dp" | |
android:layout_height="48dp" | |
android:layout_centerVertical="true" | |
android:src="@mipmap/ic_launcher" | |
android:tint="#666666" /> | |
<TextView | |
android:id="@+id/tv_text" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_alignParentLeft="true" | |
android:layout_alignParentStart="true" | |
android:layout_centerVertical="true" | |
android:layout_marginLeft="56dp" | |
android:layout_marginStart="56dp" | |
android:text="Single-line item" | |
android:textColor="?android:textColorPrimary" | |
android:textSize="16sp" /> | |
</RelativeLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment