-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
> Related to : #26
- Loading branch information
Showing
3 changed files
with
298 additions
and
9 deletions.
There are no files selected for viewing
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,8 +1,10 @@ | ||
package com.shootit.greme.ui.fragment | ||
|
||
import android.app.Activity | ||
import android.app.AlertDialog | ||
import android.content.Context | ||
import android.content.DialogInterface | ||
import android.content.Intent | ||
import android.graphics.Color | ||
import android.os.Bundle | ||
import android.util.Log | ||
|
@@ -11,13 +13,15 @@ import android.view.LayoutInflater | |
import android.view.View | ||
import android.view.ViewGroup | ||
import android.widget.Toast | ||
import androidx.core.app.ActivityOptionsCompat | ||
import androidx.core.content.ContextCompat | ||
import com.shootit.greme.R | ||
import com.shootit.greme.databinding.FragmentSettingBinding | ||
import com.shootit.greme.model.ChallengeData | ||
import com.shootit.greme.model.ResponseDateDiaryData | ||
import com.shootit.greme.network.ConnectionObject | ||
import com.shootit.greme.ui.adapter.ParticipatedChallengeAdapter | ||
import com.shootit.greme.ui.view.SettingUserInfoActivity | ||
import retrofit2.Call | ||
import retrofit2.Callback | ||
import retrofit2.Response | ||
|
@@ -47,11 +51,21 @@ class SettingFragment : Fragment(R.layout.fragment_setting) { | |
val root: View = binding.root | ||
initRecycler() | ||
binding.btnProfileModify.setOnClickListener { | ||
val profileeditFragment = ProfileEditFragment() | ||
requireActivity().supportFragmentManager | ||
.beginTransaction() | ||
.replace(R.id.nav_fl, profileeditFragment) | ||
.commitNow() | ||
|
||
// profile setting 화면 이동 | ||
// TODO transition animation 고민중... | ||
Intent(binding.root.context, SettingUserInfoActivity::class.java).also { | ||
//val pair: androidx.core.util.Pair<View, String> = androidx.core.util.Pair(binding.btnProfileModify, "pageName") | ||
//val optionPair = ActivityOptionsCompat.makeSceneTransitionAnimation([email protected] as Activity, pair) | ||
//startActivity(it, optionPair.toBundle()) | ||
startActivity(it) | ||
} | ||
|
||
// val profileeditFragment = ProfileEditFragment() | ||
// requireActivity().supportFragmentManager | ||
// .beginTransaction() | ||
// .replace(R.id.nav_fl, profileeditFragment) | ||
// .commitNow() | ||
} | ||
binding.btnLogout.setOnClickListener { | ||
val builder = AlertDialog.Builder(requireContext()) | ||
|
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