Created
November 9, 2015 18:32
-
-
Save davidgassner/8562681352546fcf36bf to your computer and use it in GitHub Desktop.
This file contains 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: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> |
Mr. Gassner,
Great thanks for your splendid tutorials, your illustration for every step is quite helpful for the learner. Great Works!!
Thanks !
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
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