Skip to content

Conversation

@CHOIMINSEOK
Copy link
Member

어댑터의 추상화를 위한 구조변경 - 클릭리스너 부분 마무리작업만 하면 될듯

@CHOIMINSEOK CHOIMINSEOK requested a review from octave08 August 30, 2017 18:25
* Created by lf_wannabe on 27/08/2017.
*/
abstract class BaseViewHolder<T : Any>(itemView: View) : RecyclerView.ViewHolder(itemView) {
abstract class BaseViewHolder<H, T>(itemView: View) : RecyclerView.ViewHolder(itemView){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

H, T를 RealmObject로 사용하고 있기 때문에 명시해 주는 것이 좋을 것 같아요.


private val HEADER_TYPE: Int = 0
private val ITEM_TYPE: Int = 1
abstract class ListAdapterWithHeader(val activity: FragmentActivity,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

T : RealmObejct, VH : RecyclerView.ViewHolder를 generic으로 추가해서 사용해주세요.

Copy link
Contributor

@octave08 octave08 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

전체적으로 불필요한 주석은 삭제해주시면 마무리 될것 같습니다.

}
}

// override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): RecyclerView.ViewHolder =
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

불필요한 주석은 지워주기 바랍니다.

*/
class BaseApplication: Application() {

// companion object {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

불필요한 주석은 지워주시기 바랍니다.

super.onCreate()
Realm.init(this)

// realmConfig = RealmConfiguration.Builder(this).build()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

마찬가지로 불필요한 주석은 지워주시기 바랍니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants