Skip to content

Commit

Permalink
refactor: guideline 추가해 뷰 배치
Browse files Browse the repository at this point in the history
  • Loading branch information
hyunji1203 committed Oct 5, 2023
1 parent ebd5fac commit b4668d8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class MyPageActivity : AppCompatActivity(), AnalyticsDelegate by DefaultAnalytic
binding.ivMypageBack.setOnClickListener {
finish()
}
binding.btnMypageAdventureResults.setOnClickListener {
binding.btnMypageAdventureHistory.setOnClickListener {
logClickEvent(getViewEntryName(it), MYPAGE_GO_RESULTS)
val intent = AdventureHistoryActivity.getIntent(this)
startActivity(intent)
Expand Down
19 changes: 15 additions & 4 deletions android/app/src/main/res/layout/activity_my_page.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,24 +44,23 @@
android:textColor="@color/white"
android:textSize="52sp"
app:layout_constraintBottom_toTopOf="@id/rv_mypage_statistics"
app:layout_constraintEnd_toStartOf="@id/btn_mypage_adventure_results"
app:layout_constraintEnd_toEndOf="@id/g_mypage"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/iv_mypage_back"
tools:text="krrrrrrrrrrrrrrrrrong" />

<androidx.appcompat.widget.AppCompatButton
android:id="@+id/btn_mypage_adventure_results"
android:id="@+id/btn_mypage_adventure_history"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="180dp"
android:layout_marginEnd="20dp"
android:background="@drawable/bg_yellow_button"
android:paddingVertical="16dp"
android:text="@string/mypage_adventure_record"
android:textSize="16sp"
app:layout_constraintBottom_toBottomOf="@id/tv_mypage_nickname"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/iv_mypage_back"
app:layout_constraintStart_toStartOf="@id/g_mypage"
app:layout_constraintTop_toTopOf="@id/tv_mypage_nickname" />

<androidx.recyclerview.widget.RecyclerView
Expand Down Expand Up @@ -89,6 +88,18 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/rv_mypage_statistics" />

<androidx.constraintlayout.widget.Guideline
android:id="@+id/g_mypage"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="245dp"
android:layout_marginEnd="166dp"
android:orientation="vertical"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintGuide_begin="245dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />

</androidx.constraintlayout.widget.ConstraintLayout>
</ScrollView>
</layout>

0 comments on commit b4668d8

Please sign in to comment.