Skip to content

Instantly share code, notes, and snippets.

@davidgassner
Created November 9, 2015 18:32
Show Gist options
  • Save davidgassner/8562681352546fcf36bf to your computer and use it in GitHub Desktop.
Save davidgassner/8562681352546fcf36bf to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:context="com.example.android.hsports.DetailActivity"
tools:showIn="@layout/activity_detail">
<TextView
android:id="@+id/nameText"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:text="Product name"
android:textSize="30sp" />
<TextView
android:id="@+id/priceText"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/nameText"
android:gravity="center"
android:text="$28.00"
android:textSize="20sp" />
<ScrollView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_above="@+id/imageView"
android:layout_below="@+id/priceText"
android:layout_marginTop="20dp">
<TextView
android:id="@+id/descriptionText"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:text="@string/lorem_ipsum"
android:textSize="16sp" />
</ScrollView>
<ImageView
android:id="@+id/imageView"
android:layout_width="250dp"
android:layout_height="250dp"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:src="@drawable/jacket101" />
</RelativeLayout>
@AreJay-Smith
Copy link

Love your tutorials David! Keep it up!

@VS1Toronto
Copy link

Mr Gassner I can't thank you enough without your Lynda videos I could never have passed my App assignment at university which is still determined to use Eclipse even though its almost defunct without Microsoft's support, so many people have failed that they relaxed the restrictions and allowed us to use Android Studio but learning it was up to us.....or should I say up to you lol thank you for all your effort

@hupe888
Copy link

hupe888 commented Aug 3, 2016

Mr. Gassner,

Great thanks for your splendid tutorials, your illustration for every step is quite helpful for the learner. Great Works!!

@HamzaAitOumghar
Copy link

Thanks !

@deGhost
Copy link

deGhost commented Mar 24, 2018

Can never thank you enough for how simple and efficient you explain android development, a true inspiration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment