Upgrade to Pro — share decks privately, control downloads, hide ads and more …

ConstraintLayout再入門

 ConstraintLayout再入門

potatotips#38での発表資料です。

Takahiro Shimokawa

March 22, 2017
Tweet

More Decks by Takahiro Shimokawa

Other Decks in Programming

Transcript

  1. <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" ... android:layout_width="match_parent" android:layout_height="match_parent" tools:context="com.example.android.constraintlayoutexamples.MainActivity"> <android.support.constraint.ConstraintLayout android:id="@+id/activity_main" android:layout_width="match_parent" android:layout_height="wrap_content">

    <Button android:id="@+id/button" ... android:text="@string/centering_views" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toTopOf="parent" tools:layout_constraintLeft_creator="1" tools:layout_constraintRight_creator="1" /> ... by @androhi 12