-
Notifications
You must be signed in to change notification settings - Fork 0
Recyclerview with header #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| * 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){ |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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으로 추가해서 사용해주세요.
octave08
left a comment
There was a problem hiding this 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 = |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
마찬가지로 불필요한 주석은 지워주시기 바랍니다.
어댑터의 추상화를 위한 구조변경 - 클릭리스너 부분 마무리작업만 하면 될듯