Skip to content

Instantly share code, notes, and snippets.

@DarrienG
Created December 18, 2016 12:12
Show Gist options
  • Save DarrienG/ba6060af56b0969c95204365b6b56131 to your computer and use it in GitHub Desktop.
Save DarrienG/ba6060af56b0969c95204365b6b56131 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="16dp"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<FrameLayout
android:layout_width="75dp"
android:layout_height="75dp"
android:layout_gravity="start">
<ImageButton
android:id='@+id/next_direction_image'
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/transparent"/>
</FrameLayout>
<TextView
android:id="@+id/directions_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="16dp"
android:textSize="20sp"
android:textColor="@android:color/background_dark"/>
<TextView
android:id="@+id/extra_info_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="10sp"
android:visibility="gone"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center">
<TextView
android:id="@+id/distance_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@android:color/darker_gray"
android:padding="4dp"/>
<TextView
android:id="@+id/units_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@android:color/darker_gray"
android:padding="4dp"/>
<View
android:layout_weight="1"
android:layout_width="0dp"
android:layout_height="1dp"
android:background="@android:color/darker_gray"
android:padding="4dp"/>
</LinearLayout>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment