-
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.
[Design/#35] custom appbar 클릭 리스너 적용
- Loading branch information
Showing
3 changed files
with
23 additions
and
3 deletions.
There are no files selected for viewing
15 changes: 14 additions & 1 deletion
15
app/src/main/java/com/sopt/umbba_android/presentation/qna/AnswerActivity.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,8 +1,21 @@ | ||
package com.sopt.umbba_android.presentation.qna | ||
|
||
import android.os.Bundle | ||
import android.view.View | ||
import com.sopt.umbba_android.R | ||
import com.sopt.umbba_android.databinding.ActivityAnswerBinding | ||
import com.sopt.umbba_android.util.binding.BindingActivity | ||
|
||
class AnswerActivity: BindingActivity<ActivityAnswerBinding>(R.layout.activity_answer) { | ||
class AnswerActivity: BindingActivity<ActivityAnswerBinding>(R.layout.activity_answer), View.OnClickListener { | ||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(savedInstanceState) | ||
binding.clickListener=this | ||
} | ||
override fun onClick(view: View?) { | ||
when(view?.id){ | ||
R.id.iv_qna_back->TODO("진짜 뒤로갈거냐는 Dialog 띄우기 ") | ||
R.id.iv_check-> TODO("답변 이거 맞냐고 확인하는 Dialog 띄우기") | ||
} | ||
} | ||
|
||
} |
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