dialogplus icon indicating copy to clipboard operation
dialogplus copied to clipboard

DialogPlus 2.0 draft

Open orhanobut opened this issue 6 years ago • 4 comments

Finally I have some time to improve this library. Since there was a huge break for this library, I'll collect major/minor issues under this one as tasks, the way I handled Hawk and Logger previously. I'll go through all open issues, but feel free to mention them.

  • [ ] Update all dependencies
  • [ ] Add support annotations, especially Nullable and NonNullable
  • [ ] Allow non-scrollable fixed header and footer
  • [ ] Provide an API to disable setting click listeners recursively.
  • [ ] Move content holder related methods to each holder
val dialog = DialogPlusBuilder()
    contentHolder = ListHolder.Builder(adapter)
         .setHeader(header, fixed)   // fixed -> boolean value to keep header at top
         .setFooter(footer, fixed)   // fixed -> boolean value to keep footer at bottom
         .setItemClickListener( dialog,item,view,position -> {
               // item
         })
}.build()
  • [ ] Provide RecyclerViewHolder
val dialog = DialogPlusBuilder()
    contentHolder = RecyclerViewHolder.Builder(adapter)
         .setLayoutManager(gridLayoutManager)  // optional, as default it'll be LinearLayoutManager
         .setHeader(header, fixed)   // fixed -> boolean value to keep header at top
         .setFooter(footer, fixed)   // fixed -> boolean value to keep footer at bottom
         .setItemClickListener( dialog,item,view,position -> {
               // item
         })
}.build()

orhanobut avatar Apr 02 '18 11:04 orhanobut

I am very supportive.

Joslyn-Chen avatar Apr 04 '18 07:04 Joslyn-Chen

How to use version 2.0?

HYTCTony avatar Oct 12 '18 01:10 HYTCTony

How to use version 2.0?

EthanCo avatar Jan 25 '19 07:01 EthanCo

Hello

Dboy233 avatar Jun 18 '21 02:06 Dboy233