Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
92 lines (84 sloc) 3.56 KB
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout 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:paddingLeft="16dp"
android:paddingRight="16dp"
android:paddingTop="16dp"
android:background="#efefef"
tools:context=".MainActivity">
<LinearLayout
android:id="@+id/connectivityStatus"
android:layout_width="fill_parent"
android:layout_height="56dp"
android:orientation="vertical"
android:background="#ffffff"
tools:layout_editor_absoluteX="8dp"
tools:layout_editor_absoluteY="8dp"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintBottom_toTopOf="@id/requestContainer">
<TextView
android:id="@+id/connectionStatus"
android:layout_width="match_parent"
android:textSize="24sp"
android:paddingTop="4dp"
android:paddingLeft="4dp"
android:paddingRight="4dp"
android:paddingBottom="4dp"
android:layout_marginTop="10dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_height="wrap_content"
android:text="Connection Status:" />
</LinearLayout>
<LinearLayout
android:id="@+id/requestContainer"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:minHeight="172dp"
android:orientation="vertical"
android:layout_marginTop="30dp"
android:paddingBottom="16dp"
android:background="#ffffff"
tools:layout_editor_absoluteX="8dp"
app:layout_constraintTop_toBottomOf="@id/connectivityStatus"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent">
<TextView
android:id="@+id/requestContainerInstruction"
android:layout_width="match_parent"
android:textSize="24sp"
android:paddingTop="4dp"
android:paddingLeft="4dp"
android:paddingRight="4dp"
android:paddingBottom="4dp"
android:layout_marginTop="10dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_height="wrap_content"
android:text="Make a request for data to reveal the connectivity status." />
<Button
android:id="@+id/requestData"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingTop="16dp"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:paddingBottom="16dp"
android:layout_marginTop="21dp"
android:layout_marginRight="10dp"
android:layout_marginLeft="10dp"
android:textSize="24sp"
android:text="REQUEST DATA"
android:background="#9299E7"
android:textColor="#f5f5f5"
android:onClick="requestDataCallback"
app:layout_constraintTop_toBottomOf="@id/requestContainerInstruction"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent" />
</LinearLayout>
</android.support.constraint.ConstraintLayout>
You can’t perform that action at this time.