Skip to content

Instantly share code, notes, and snippets.

@Ayyagaries
Created April 16, 2018 17:51
Show Gist options
  • Save Ayyagaries/e9cfd2d053e4eaac0c66cf849e4f2481 to your computer and use it in GitHub Desktop.
Save Ayyagaries/e9cfd2d053e4eaac0c66cf849e4f2481 to your computer and use it in GitHub Desktop.
res/activity_main.xml
<?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"
tools:context="com.example.apicall.testapp.MainActivity">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Testing HTTP with OK"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.17" />
<Button
android:id="@+id/button"
android:layout_width="234dp"
android:layout_height="54dp"
android:text="Http Request"
tools:layout_editor_absoluteX="78dp"
tools:layout_editor_absoluteY="181dp" />
<EditText
android:id="@+id/editText"
android:layout_width="232dp"
android:layout_height="145dp"
android:ems="10"
android:inputType="textPersonName"
android:text="Http Response"
tools:layout_editor_absoluteX="97dp"
tools:layout_editor_absoluteY="340dp" />
</android.support.constraint.ConstraintLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment