nickk
08/13/2019, 11:44 AMlouiscad
08/13/2019, 11:49 AMnickk
08/13/2019, 12:08 PMlouiscad
08/13/2019, 12:54 PMnickk
08/13/2019, 12:55 PMlouiscad
08/13/2019, 12:57 PMnickk
08/13/2019, 12:59 PMlouiscad
08/13/2019, 1:01 PMnickk
08/13/2019, 1:02 PMlouiscad
08/13/2019, 1:02 PMnickk
08/13/2019, 1:20 PMgetLayout()
method in Groupie returns a LayoutRes, which is then inflated… I see no place to hook a view generated by Splitties DSL.
// GroupAdapter.Java: 170
@Override
@NonNull
public VH onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
LayoutInflater inflater = LayoutInflater.from(parent.getContext());
Item<VH> item = getItemForViewType(viewType);
View itemView = inflater.inflate(item.getLayout(), parent, false);
return item.createViewHolder(itemView);
}
louiscad
08/13/2019, 1:36 PMnickk
08/13/2019, 1:37 PMgetView()
alternative to getLayout()
louiscad
08/13/2019, 1:45 PMnickk
08/13/2019, 1:47 PMlouiscad
08/13/2019, 2:04 PMnickk
08/13/2019, 2:07 PMlouiscad
08/13/2019, 2:10 PMViewHolder
be generic and keep the type of the passed `View`: https://github.com/LouisCAD/Splitties/tree/master/modules/typesaferecyclerview