Open rahulshah007 opened 4 years ago
no, it can be implemented in java codes too. I used this library for one of my project with java , android
no, it can be implemented in java codes too. I used this library for one of my project with java , android
Hi i am also using java but in the bindDataToCalenderView method when using the holder.itemView doesn't find any view to set the text. Can you please help me
Try like this
no, it can be implemented in java codes too. I used this library for one of my project with java , android
Hi i am also using java but in the bindDataToCalenderView method when using the holder.itemView doesn't find any view to set the text. Can you please help me
@Override public void bindDataToCalendarView(@NotNull SingleRowCalendarAdapter.CalendarViewHolder calendarViewHolder, @NotNull Date date, int i, boolean b) { ((MaterialTextView) calendarViewHolder.itemView.findViewById(R.id.tv_month_calendar_item)).setText(getMonth3Later(date)); ((MaterialTextView) calendarViewHolder.itemView.findViewById(R.id.tv_date_calendar_item)).setText(DateUtils.INSTANCE.getDayNumber(date)); ((MaterialTextView) calendarViewHolder.itemView.findViewById(R.id.tv_day_calendar_item)).setText(DateUtils.INSTANCE.getDay3LettersName(date)); }
try like this
@MriDx Not getting the object itemView from calendarViewHolder
How can you able to get that?
no, it can be implemented in java codes too. I used this library for one of my project with java , android
Will you plz explain it how you done it ?
no, it can be implemented in java codes too. I used this library for one of my project with java , android
Will you plz explain it how you done it ?
What problem are you facing ?
Same unable to get ItemView in java code implemented sdk of it
no, it can be implemented in java codes too. I used this library for one of my project with java , android
Will you plz explain it how you done it ?
What problem are you facing ?
Same unable to get ItemView in java code implemented sdk of it
@MamtaSiddhi You won't get the itemview directly, you will receive viewholder of type "CalendarViewHolder".
Tried but not get it
calendarViewHolder.getItemDetails
getting this
not View
Tried but not get it
calendarViewHolder.getItemDetails
getting this
not View
View itemView = calendarViewHolder.itemView;
itemView.findViewById(R.id.viewId).setText("hello world");
access it like this
Tried but not get it calendarViewHolder.getItemDetails getting this not View
View itemView = calendarViewHolder.itemView;
itemView.findViewById(R.id.viewId).setText("hello world");
access it like this
Sorry but it returns getItemDetails() no matter how you accept the data. The itemView object is never returned. How do you handle the getItemDetails to receive at least the Id of the Views in it?
Is there any way to use this library in the JAVA project or I need to use strictly Koitlin for this?