Skip to content
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

Use in JAVA #7

Open
rahulshah007 opened this issue Jul 11, 2020 · 12 comments
Open

Use in JAVA #7

rahulshah007 opened this issue Jul 11, 2020 · 12 comments

Comments

@rahulshah007
Copy link

Is there any way to use this library in the JAVA project or I need to use strictly Koitlin for this?

@MriDx
Copy link

MriDx commented Sep 8, 2020

no, it can be implemented in java codes too. I used this library for one of my project with java , android

@Androstark
Copy link

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

@MriDx
Copy link

MriDx commented Sep 27, 2020

Screenshot_20200927-165122
Try like this

@MriDx
Copy link

MriDx commented Sep 28, 2020

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

@aruns2896
Copy link

@MriDx Not getting the object itemView from calendarViewHolder

How can you able to get that?

@MamtaSiddhi
Copy link

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 ?

@MriDx
Copy link

MriDx commented Aug 4, 2022

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 ?

@MamtaSiddhi
Copy link

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

@MriDx
Copy link

MriDx commented Aug 5, 2022

@MamtaSiddhi
You won't get the itemview directly, you will receive viewholder of type "CalendarViewHolder".

@MamtaSiddhi
Copy link

Tried but not get it

calendarViewHolder.getItemDetails

getting this

not View

@MriDx
Copy link

MriDx commented Aug 8, 2022

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

@sahil1772
Copy link

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?

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

No branches or pull requests

6 participants