Anderson
Anderson

Reputation: 1

how to make custom calendar by using horizontal list view in android

I'm beginner android developer.

I want to make horizontal calendar of current year.

I'm using this link for horizontal list view but I got some problem.

Current date of this month shown at 1st index and remaining previous date subtract from calendar.

When scroll horizontally if previous month end then start new month with name in this list.

Upvotes: 0

Views: 3329

Answers (1)

Simon K. Gerges
Simon K. Gerges

Reputation: 3147

You Can Use RecyclerView. Also use LinearLayoutManager with Horizontal Flag

LinearLayoutManager layoutManager
    = new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false);

RecyclerView myList = (RecyclerView) findViewById(R.id.my_recycler_view);
myList.setLayoutManager(layoutManager);

Or if you want a ready library you can use One of this

Android Week View

KBCalendar-Android

Upvotes: 1

Related Questions