Skip to content

Commit

Permalink
[ADD/#1] ConstraintLayout Flow 활용
Browse files Browse the repository at this point in the history
  • Loading branch information
b1urrrr committed Oct 7, 2022
1 parent 99e1aa8 commit ebeb1bc
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
1 change: 0 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ android {
}

dependencies {

implementation 'androidx.core:core-ktx:1.9.0'
implementation 'androidx.appcompat:appcompat:1.5.1'
implementation 'com.google.android.material:material:1.6.1'
Expand Down
23 changes: 16 additions & 7 deletions app/src/main/res/layout/activity_login.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,21 +65,30 @@

<Button
android:id="@+id/btn_login"
android:layout_width="match_parent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/login"
android:paddingVertical="10dp"
android:layout_marginTop="30dp"
app:layout_constraintTop_toBottomOf="@id/et_pwd" />
android:layout_marginTop="30dp" />

<!-- 회원가입 버튼 추가 -->
<Button
android:id="@+id/btn_signup"
android:layout_width="match_parent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/signup"
android:paddingVertical="10dp"
android:layout_marginTop="15dp"
app:layout_constraintTop_toBottomOf="@id/btn_login" />
android:layout_marginTop="15dp" />

<androidx.constraintlayout.helper.widget.Flow
android:id="@+id/flow_btn"
android:orientation="horizontal"
app:flow_horizontalGap="12dp"
app:constraint_referenced_ids="btn_login,btn_signup"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@id/et_pwd"
android:layout_marginTop="30dp"/>

</androidx.constraintlayout.widget.ConstraintLayout>

0 comments on commit ebeb1bc

Please sign in to comment.