-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from ttoklip/faet/#2_마이페이지_구현
Faet/#2 마이페이지 구현
- Loading branch information
Showing
42 changed files
with
2,061 additions
and
111 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
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
40 changes: 40 additions & 0 deletions
40
app/src/main/java/com/umc/ttoklip/presentation/mypage/CustomerServiceCenterActivity.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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package com.umc.ttoklip.presentation.mypage | ||
|
||
import androidx.core.view.isGone | ||
import com.umc.ttoklip.R | ||
import com.umc.ttoklip.databinding.ActivityCustomerServiceCenterBinding | ||
import com.umc.ttoklip.presentation.base.BaseActivity | ||
import com.umc.ttoklip.presentation.mypage.dialog.OneOnOneInquiriesDialog | ||
import dagger.hilt.android.AndroidEntryPoint | ||
|
||
@AndroidEntryPoint | ||
class CustomerServiceCenterActivity : | ||
BaseActivity<ActivityCustomerServiceCenterBinding>(R.layout.activity_customer_service_center) { | ||
override fun initView() { | ||
binding.customerServiceCenterBackBtn.setOnClickListener { | ||
onBackPressedDispatcher.onBackPressed() | ||
} | ||
binding.faqSub1Btn.setOnClickListener { | ||
if (binding.faqSub1Content.isGone) { | ||
binding.faqSub1Btn.setImageResource(R.drawable.ic_arrow_up_24) | ||
} else { | ||
binding.faqSub1Btn.setImageResource(R.drawable.ic_arrow_down_24) | ||
} | ||
binding.faqSub1Content.isGone = binding.faqSub1Content.isGone.not() | ||
} | ||
binding.faqSub2Btn.setOnClickListener { | ||
if (binding.faqSub2Content.isGone) { | ||
binding.faqSub2Btn.setImageResource(R.drawable.ic_arrow_up_24) | ||
} else { | ||
binding.faqSub2Btn.setImageResource(R.drawable.ic_arrow_down_24) | ||
} | ||
binding.faqSub2Content.isGone = binding.faqSub2Content.isGone.not() | ||
} | ||
binding.oneOnOneInquriesBtn.setOnClickListener { | ||
val dialog = OneOnOneInquiriesDialog() | ||
dialog.show(supportFragmentManager, dialog.tag) | ||
} | ||
} | ||
|
||
override fun initObserver() = Unit | ||
} |
Oops, something went wrong.