Skip to content

Instantly share code, notes, and snippets.

@gavilanch
Created August 6, 2017 15:33
Show Gist options
  • Save gavilanch/e6fe3a2a72c75a13d19b3b228dbdf8b6 to your computer and use it in GitHub Desktop.
Save gavilanch/e6fe3a2a72c75a13d19b3b228dbdf8b6 to your computer and use it in GitHub Desktop.
// En NewsListRow.axml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:text="Small Text"
android:textAppearance="?android:attr/textAppearanceSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toLeftOf="@id/newsImage"
android:layout_alignParentLeft="true"
android:textStyle="bold"
android:layout_marginLeft="5dp"
android:layout_marginTop="5dp"
android:id="@+id/newsTitle" />
<ImageView
android:src="@android:drawable/ic_menu_gallery"
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:id="@+id/newsImage" />
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment