$POTUSBJOU-BZPVUְׂ֮ײֹ!ESPJEHJSMTNFFUVQ
View Slide
˖ CMPH:".ך꧟鎸䌘˖ ZBO[NCMPHTQPUDPN˖ UXJUUFS!ZBO[Nװׂ˖ V1IZDB*OD 吳䒭⠓爡ؐؿ؍ؕ˖ (56((JSMTHUVHHJSMTKQ˖ ESPJEHJSMTIUUQTESPJEHJSMTDPOOQBTTDPN͋Μ͍͟Ώ͖
$POTUSBJOU-BZPVU˖ "OESPJE4VQQPSU-JCSBSZך♧א˖ 7JFX(SPVQ˖ 3FMBUJWF-BZPVU넝堣腉ח׃䠬ׄ˖ ⵖ秈$POTUSBJOUדꂁ縧㜥䨽寸
CVJMEHSBEMF ך鏣㹀implementation 'com.android.support.constraint:constraint-layout:1.0.2'compile 'com.android.support.constraint:constraint-layout:1.0.2'HSBEMFY⟃꣬HSBEMFY⟃
-BZPVU 9.- ח剅ֻ㜥さxmlns:android="http://schemas.android.com/apk/res/android"xmlns:app="http://schemas.android.com/apk/res-auto"android:layout_width="match_parent"android:layout_height="match_parent">…
倜׃ֻ -BZPVU 9.- ⡲㜥さ<'JMF><-BZPVUSFTPVSDFMF>3PPUFMFNFOUחBOESPJETVQQPSUDPOTUSBJOU$POTUSBJOU-BZPVU
ⵖ秈䭷㹀ׅ˖ 㶨ؽُ٦חⵖ秈䭷㹀˖ ⵖ秈ח״ꂁ縧㜥䨽ָ寸תapp:layout_constraintXXXXXXX
NBUDI DPOTUSBJOU˖ $POTUSBJOU-BZPVUך㶨ؽُ٦דכNBUDI@QBSFOUכ⢪זְ˖ EQNBUDIDPOTUSBJOU˖ ⵖ秈弫ׅ朐䡾ד剑䎢ָ
涫㜥➂暟$POTUSBJOU-BZPVU$POTUSBJOU-BZPVUך㶨ؽُ٦ד⡘縧寸״ֲה׃גְך$POTUSBJOU-BZPVUך➭ך㶨ؽُ٦!JEBODIPS
♳畭 $POTUSBJOU-BZPVU ח䲧ִapp:layout_constraintTop_toTopOf="parent")FMMP
♴畭 $POTUSBJOU-BZPVU ח䲧ִapp:layout_constraintBottom_toBottomOf="parent")FMMP
䊩畭 $POTUSBJOU-BZPVU ח䲧ִapp:layout_constraintLeft_toLeftOf="parent"app:layout_constraintStart_toStartOf="parent")FMMP
〸畭 $POTUSBJOU-BZPVU ח䲧ִapp:layout_constraintRight_toRightOf="parent"app:layout_constraintEnd_toEndOf="parent")FMMP
♳♴ $POTUSBJOU-BZPVU ך⚥㣛ח䲧ִapp:layout_constraintTop_toTopOf="parent"app:layout_constraintBottom_toBottomOf="parent")FMMP
♳♴ך嫰䭷㹀ׅapp:layout_constraintVertical_bias="0.3"app:layout_constraintTop_toTopOf="parent"app:layout_constraintBottom_toBottomOf="parent")FMMP
䊩〸 $POTUSBJOU-BZPVU ך⚥㣛ח䲧ִapp:layout_constraintLeft_toLeftOf="parent"app:layout_constraintRight_toRightOf="parent")FMMP
䊩〸ך嫰䭷㹀ׅapp:layout_constraintHorizontal_bias="0.3"app:layout_constraintLeft_toLeftOf="parent"app:layout_constraintRight_toRightOf="parent" )FMMP
$POTUSBJOU-BZPVU ך⚥㣛ח䲧ִapp:layout_constraintTop_toTopOf="parent"app:layout_constraintBottom_toBottomOf="parent"app:layout_constraintLeft_toLeftOf="parent"app:layout_constraintRight_toRightOf="parent")FMMP
♳♴ $POTUSBJOU-BZPVU ְםְח䎢־android:layout_height="0dp"app:layout_constraintTop_toTopOf="parent"app:layout_constraintBottom_toBottomOf="parent"EQNBUDIDPOTUSBJOU)FMMP
䊩〸 $POTUSBJOU-BZPVU ְםְח䎢־android:layout_width="0dp"app:layout_constraintLeft_toLeftOf="parent"app:layout_constraintRight_toRightOf="parent")FMMPEQNBUDIDPOTUSBJOU
$POTUSBJOU-BZPVU ְםְח䎢־android:layout_width="0dp"android:layout_height="0dp"app:layout_constraintBottom_toBottomOf="parent"app:layout_constraintLeft_toLeftOf="parent"app:layout_constraintRight_toRightOf="parent"app:layout_constraintTop_toTopOf="parent")FMMP
NBUDI DPOTUSBJOU ךהֹך NBYJNVN TJ[Fandroid:layout_width="0dp"android:layout_height="0dp"…app:layout_constraintWidth_max="300dp" app:layout_constraintHeight_max="100dp"EQEQ)FMMP
NBUDI DPOTUSBJOU ךהֹ XSBQ@DPOUFOU ך״ֲחׅandroid:layout_width="0dp"android:layout_height="0dp"…app:layout_constraintWidth_default="wrap" app:layout_constraintHeight_default="wrap")FMMP
NBUDI DPOTUSBJOU XSBQ ךהֹך NJOJNVN TJ[Fandroid:layout_width="0dp"android:layout_height="0dp"…app:layout_constraintWidth_min="100dp" app:layout_constraintHeight_min="100dp"EQEQ)FMMP
♳畭➭ך 7JFX ך♳畭ח䲧ִapp:layout_constraintTop_toTopOf="@id/anchor"
♳畭➭ך 7JFX ך♴畭ח䲧ִapp:layout_constraintTop_toBottomOf="@id/anchor"
♴畭➭ך 7JFX ך♴畭ח䲧ִapp:layout_constraintBottom_toBottomOf="@id/anchor"
♴畭➭ך 7JFX ך♳畭ח䲧ִapp:layout_constraintBottom_toTopOf="@id/anchor"
CBTFMJOF ➭ך 7JFX ך CBTFMJOF ח䲧ִapp:layout_constraintBaseline_toBaselineOf="@id/anchor"""
䊩畭➭ך 7JFX ך䊩畭ח䲧ִapp:layout_constraintLeft_toLeftOf="@id/anchor"orapp:layout_constraintStart_toStartOf="@id/anchor"
䊩畭➭ך 7JFX ך〸畭ח䲧ִapp:layout_constraintLeft_toRightOf="@id/anchor"orapp:layout_constraintStart_toEndOf="@id/anchor"
〸畭➭ך 7JFX ך〸畭ח䲧ִapp:layout_constraintRight_toRightOf="@id/anchor"orapp:layout_constraintEnd_toEndOf="@id/anchor"
〸畭➭ך 7JFX ך䊩畭ח䲧ִapp:layout_constraintRight_toLeftOf="@id/anchor"orapp:layout_constraintEnd_toStartOf="@id/anchor"
♳♴➭ך 7JFX ך⚥㣛ח䲧ִapp:layout_constraintTop_toTopOf="@id/anchor"app:layout_constraintBottom_toBottomOf="@id/anchor"
䊩〸➭ך 7JFX ך⚥㣛ח䲧ִapp:layout_constraintLeft_toLeftOf="@id/anchor"app:layout_constraintRight_toRightOf="@id/anchor"orapp:layout_constraintStart_toStartOf="@id/anchor"app:layout_constraintEnd_toEndOf="@id/anchor"
7JFX ך㣐ֹׁ嫰ד䭷㹀ׅandroid:layout_width="0dp"android:layout_height="0dp"app:layout_constraintLeft_toLeftOf="parent"app:layout_constraintRight_toRightOf="parent"app:layout_constraintDimensionRatio="h,2:1"orapp:layout_constraintDimensionRatio="w,1:2"
(VJEFMJOF
HVJEFMJOFandroid:id="@+id/guideline" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical" app:layout_constraintGuide_percent="0.5"/>app:layout_constraintGuide_begin="20dp"app:layout_constraintGuide_end="20dp"
HVJEFMJOF חさׇגꂁ縧ׅandroid:layout_width="0dp"app:layout_constraintLeft_toRightOf="@id/guideline1"app:layout_constraintRight_toLeftOf="@id/guideline2"!JEHVJEFMJOF !JEHVJEFMJOF
HPOF NBSHJO
HPOF.BSHJO)FMMP )FMMP)FMMPandroid:layout_marginLeft="16dp" app:layout_constraintLeft_toRightOf="@id/anchor" app:layout_goneMarginLeft="0dp"BODIPSךWJTJCJMJUZHPOFⵖ秈⯓ך7JFXךWJTJCJMJUZָHPOFהֹח⢪NBHJO⦼BODIPSךWJTJCJMJUZWJTJCMFEQ
$IBJO
DIBJO)FMMP )FMMP )FMMP✼ְחⵖ秈׃֮גְapp:layout_constraintLeft_toLeftOf="parent"app:layout_constraintRight_toLeftOf="@+id/view2"WJFXapp:layout_constraintLeft_toRightOf="@+id/view1"app:layout_constraintRight_toLeftOf="@+id/view3"WJFXapp:layout_constraintLeft_toRightOf="@+id/view2"app:layout_constraintRight_toRightOf="parent"WJFX!JEWJFX !JEWJFX !JEWJFX
DIBJO4UZMF)FMMP )FMMP )FMMPapp:layout_constraintHorizontal_chainStyle="spread")FMMP )FMMP )FMMPapp:layout_constraintHorizontal_chainStyle="packed")FMMP )FMMP )FMMPapp:layout_constraintHorizontal_chainStyle="spread_inside"WJFXח䭷㹀ׅ
DIBJO TQSFBE NBUDI DPOTUSBJOU)FMMP )FMMP )FMMPandroid:layout_width="0dp"app:layout_constraintLeft_toLeftOf="parent"app:layout_constraintRight_toLeftOf="@+id/view2"app:layout_constraintHorizontal_chainStyle="spread"WJFXandroid:layout_width="0dp"app:layout_constraintLeft_toRightOf="@+id/view1"app:layout_constraintRight_toLeftOf="@+id/view3"WJFXandroid:layout_width="0dp"app:layout_constraintLeft_toRightOf="@+id/view2"app:layout_constraintRight_toRightOf="parent"WJFX
DIBJO TQSFBE NBUDI DPOTUSBJOU XFJHIU)FMMP )FMMP )FMMPandroid:layout_width="0dp"app:layout_constraintLeft_toLeftOf="parent"app:layout_constraintRight_toLeftOf="@+id/view2"app:layout_constraintHorizontal_chainStyle="spread"app:layout_constraintHorizontal_weight="2"WJFXandroid:layout_width="0dp"app:layout_constraintLeft_toRightOf="@+id/view1"app:layout_constraintRight_toLeftOf="@+id/view3"app:layout_constraintHorizontal_weight="1"WJFXandroid:layout_width="0dp"app:layout_constraintLeft_toRightOf="@+id/view2"app:layout_constraintRight_toRightOf="parent"app:layout_constraintHorizontal_weight="1"WJFX
DIBJO QBDLFE CJBTapp:layout_constraintLeft_toLeftOf="parent"app:layout_constraintRight_toLeftOf="@+id/view2"app:layout_constraintHorizontal_chainStyle="packed"app:layout_constraintHorizontal_bias="0.3"WJFXapp:layout_constraintLeft_toRightOf="@+id/view1"app:layout_constraintRight_toLeftOf="@+id/view3"WJFXapp:layout_constraintLeft_toRightOf="@+id/view2"app:layout_constraintRight_toRightOf="parent"WJFX)FMMP )FMMP )FMMP