kimdohun0104 / dsmmarket Goto Github PK
View Code? Open in Web Editor NEWDsm Market Android
Dsm Market Android
PostDetail에서 onResume 함수가 호출되면 자신이 쓴 글이지만 채팅으로 거래하기가 뜹니다
post detail에서 추천 아이템을 누른다.
위를 반복할 경우 계속 activity 중첩됨
How think about Kotlin.run ?
If you use kotlin.run, you get clean code. (maybe)
override fun observeViewModel() {
val lifeCycleOwner = this@LoginActivity
viewModel.run {
showLoadingDialogEvent.observe(lifeCycleOwner, Observer { LoadingDialog.show(supportFragmentManager) })
hideLoadingDialogEvent.observe(lifeCycleOwner, Observer { LoadingDialog.hide() })
intentMainActivityEvent.observe(lifeCycleOwner, Observer {
Intent(lifeCycleOwner, MainActivity::class.java).apply {
flags = Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK
startActivity(this)
}
})
hideKeyboardEvent.observe(lifeCycleOwner, Observer {
(getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager).hideSoftInputFromWindow(et_login_password.windowToken, 0)
})
toastEvent.observe(lifeCycleOwner, Observer { toast(it) })
loginLogEvent.observe(lifeCycleOwner, Observer { Analytics.logEvent(lifeCycleOwner, Analytics.LOGIN, it) })
}
}
[email protected]
1234
1234
토스트
서버에 문제가 발생했습니다
다크테마로 변경하면 BottomNavigationView가 동작을 하지 않습니다
BNV에서 대여글 다시 선택했을 때 앱이 종료합니다 ....
댓글 단 후 댓글작성을 빠져나오면
댓글 개수가 갱신이 되지 않습니다
Purchase, Rent, Chat 등의 아이템이 존재하지 않을경우
x가 없습니다. 라는 문구를 보여주어야
유저가 아이템이 없어서 안뜬다고 알 것 같습니다.
(특히 채팅 같은 경우, 누구나 처음에 채팅이 없으므로 어색함을 보여줌)
자신이 남긴 댓글을 신고할 수 있습니다
한국어로 설정된 상태에서
인앱 실행 중 테마 변경을 하면
언어가 영어로 바뀝니다.
Glide 쓰시면서... 흥
날짜가 바뀌고 채팅을 할 시,
2019-XX-XX가 최근 단 댓글 이전에 달리는게 아닌
아이템의 맨 처음에 달립니다
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.