-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
67 additions
and
31 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
app/src/main/java/com/sopt/umbba_android/presentation/setting/ManageAccountActivity.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,25 @@ | ||
package com.sopt.umbba_android.presentation.setting | ||
|
||
import android.content.Intent | ||
import android.os.Bundle | ||
import com.sopt.umbba_android.R | ||
import com.sopt.umbba_android.databinding.ActivityManageAccountBinding | ||
import com.sopt.umbba_android.util.binding.BindingActivity | ||
|
||
class ManageAccountActivity: BindingActivity<ActivityManageAccountBinding>(R.layout.activity_manage_account) { | ||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(savedInstanceState) | ||
setClickEvent() | ||
} | ||
|
||
private fun setClickEvent(){ | ||
with(binding){ | ||
clLogout.setOnClickListener { | ||
TODO("서버 로그아웃 API 연결") | ||
} | ||
clDeleteAccount.setOnClickListener { | ||
startActivity(Intent(this@ManageAccountActivity,DeleteAccountActivity::class.java)) | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,33 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<layout> | ||
<androidx.constraintlayout.widget.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=".presentation.MainActivity"> | ||
|
||
<androidx.fragment.app.FragmentContainerView | ||
android:id="@+id/fcv_main" | ||
<androidx.constraintlayout.widget.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="0dp" | ||
app:layout_constraintTop_toTopOf="parent" | ||
app:layout_constraintBottom_toTopOf="@id/bnv_main"/> | ||
android:layout_height="match_parent" | ||
tools:context=".presentation.MainActivity"> | ||
|
||
<com.google.android.material.bottomnavigation.BottomNavigationView | ||
android:id="@+id/bnv_main" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:itemIconSize="16dp" | ||
app:itemIconTint="@color/sel_bottom_nav_icon" | ||
app:menu="@menu/menu_bottom" | ||
app:itemBackground="@drawable/sel_bottom_nav_indicator" | ||
app:itemActiveIndicatorStyle="@null" | ||
android:background="@color/umbba_white" | ||
app:itemTextColor="@color/sel_bottom_nav_text"/> | ||
</androidx.constraintlayout.widget.ConstraintLayout> | ||
<androidx.fragment.app.FragmentContainerView | ||
android:id="@+id/fcv_main" | ||
android:layout_width="match_parent" | ||
android:layout_height="0dp" | ||
app:layout_constraintBottom_toTopOf="@id/bnv_main" | ||
app:layout_constraintTop_toTopOf="parent" /> | ||
|
||
<com.google.android.material.bottomnavigation.BottomNavigationView | ||
android:id="@+id/bnv_main" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:background="@color/umbba_white" | ||
app:itemActiveIndicatorStyle="@null" | ||
app:itemBackground="@drawable/sel_bottom_nav_indicator" | ||
app:itemIconSize="16dp" | ||
app:itemIconTint="@color/sel_bottom_nav_icon" | ||
app:itemTextColor="@color/sel_bottom_nav_text" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:menu="@menu/menu_bottom" /> | ||
</androidx.constraintlayout.widget.ConstraintLayout> | ||
</layout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters