Skip to content

Instantly share code, notes, and snippets.

@liliycode
Created March 20, 2017 20:59
Show Gist options
  • Save liliycode/43e45cd39c765716aebbdea4a4c08b89 to your computer and use it in GitHub Desktop.
Save liliycode/43e45cd39c765716aebbdea4a4c08b89 to your computer and use it in GitHub Desktop.
XML for android
<?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.liliana.hwk7.MainActivity">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="American Writers"
android:textAppearance="@style/TextAppearance.AppCompat.Display1"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintHorizontal_bias="0.416"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.034" />
<Spinner
android:id="@+id/spinner"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:entries="@array/author_names"
android:gravity="center"
tools:layout_editor_absoluteX="12dp"
tools:layout_editor_absoluteY="175dp">
</Spinner>
</android.support.constraint.ConstraintLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment