Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?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:backgroundTint="@android:color/holo_green_dark"
- tools:context="com.dealfaro.luca.androidhomephone.MainActivity"
- tools:layout_editor_absoluteY="81dp"
- tools:layout_editor_absoluteX="0dp">
- <TextView
- android:id="@+id/my_text"
- android:layout_width="0dp"
- android:layout_height="34dp"
- android:text="Hello World!"
- android:textAlignment="center"
- android:textSize="14sp"
- tools:layout_constraintTop_creator="1"
- tools:layout_constraintRight_creator="1"
- android:layout_marginStart="32dp"
- android:layout_marginEnd="32dp"
- app:layout_constraintRight_toRightOf="parent"
- android:layout_marginTop="172dp"
- tools:layout_constraintLeft_creator="1"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintTop_toTopOf="parent"
- android:layout_marginLeft="32dp"
- android:layout_marginRight="32dp" />
- <Button
- android:id="@+id/button"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:backgroundTint="@android:color/holo_blue_dark"
- android:onClick="get"
- android:text="GET"
- android:layout_marginStart="27dp"
- tools:layout_constraintTop_creator="1"
- tools:layout_constraintBottom_creator="1"
- app:layout_constraintBottom_toBottomOf="@+id/button2"
- tools:layout_constraintLeft_creator="1"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintTop_toTopOf="@+id/button2"
- android:layout_marginLeft="27dp" />
- <Button
- android:id="@+id/button2"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:backgroundTint="@android:color/holo_blue_dark"
- android:onClick="post"
- android:text="POST"
- android:layout_marginEnd="32dp"
- tools:layout_constraintTop_creator="1"
- tools:layout_constraintRight_creator="1"
- app:layout_constraintRight_toRightOf="parent"
- android:layout_marginTop="51dp"
- app:layout_constraintTop_toBottomOf="@+id/my_text"
- android:layout_marginRight="32dp" />
- </android.support.constraint.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement