Advertisement
KITRIK

activity_main.xml

May 9th, 2019
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.87 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.constraint.ConstraintLayout
  3.        xmlns:android="http://schemas.android.com/apk/res/android"
  4.        xmlns:tools="http://schemas.android.com/tools"
  5.        xmlns:app="http://schemas.android.com/apk/res-auto"
  6.        android:layout_width="match_parent"
  7.        android:layout_height="match_parent"
  8.        tools:context=".MainActivity">
  9.  
  10.     <TextView
  11.            android:layout_width="wrap_content"
  12.            android:layout_height="wrap_content"
  13.            android:text="Hello World!"
  14.            app:layout_constraintLeft_toLeftOf="parent"
  15.            app:layout_constraintRight_toRightOf="parent"
  16.            android:id="@+id/text" android:layout_marginTop="8dp"
  17.            app:layout_constraintTop_toBottomOf="@+id/login_button" android:layout_marginBottom="8dp"
  18.            app:layout_constraintBottom_toTopOf="@+id/imageView"/>
  19.  
  20.     <com.twitter.sdk.android.core.identity.TwitterLoginButton
  21.            android:id="@+id/login_button"
  22.            android:layout_width="wrap_content"
  23.            android:layout_height="wrap_content"
  24.            app:layout_constraintEnd_toEndOf="parent" android:layout_marginEnd="8dp"
  25.            app:layout_constraintStart_toStartOf="parent" android:layout_marginStart="8dp"
  26.            android:layout_marginTop="200dp" app:layout_constraintTop_toTopOf="parent"/>
  27.     <ImageView
  28.            android:layout_width="wrap_content"
  29.            android:layout_height="wrap_content" tools:srcCompat="@tools:sample/avatars"
  30.            android:id="@+id/imageView"
  31.            app:layout_constraintStart_toStartOf="parent" android:layout_marginStart="8dp"
  32.            android:layout_marginBottom="200dp" app:layout_constraintBottom_toBottomOf="parent"
  33.            app:layout_constraintEnd_toEndOf="parent" android:layout_marginEnd="8dp"/>
  34.  
  35. </android.support.constraint.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement