Skip to content

Instantly share code, notes, and snippets.

@ssaurel
Created September 27, 2017 07:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ssaurel/d80313a9204df9cd746fce65a805c4fb to your computer and use it in GitHub Desktop.
Save ssaurel/d80313a9204df9cd746fce65a805c4fb to your computer and use it in GitHub Desktop.
Bitcoin Price Index Tutorial on the SSaurel's Blog
<?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"
tools:context="com.ssaurel.bitcoinwatcher.MainActivity">
<ImageView
android:id="@+id/logo"
android:layout_width="200dp"
android:layout_height="200dp"
android:layout_marginTop="50dp"
android:src="@drawable/bitcoin"
android:layout_centerHorizontal="true"/>
<TextView
android:id="@+id/txt"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/logo"
android:layout_marginTop="50dp"
android:layout_centerHorizontal="true"
android:textSize="22sp"
android:text="Click to load"
android:gravity="center_horizontal"/>
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment