Comments (3)
Just call select()
right below init()
, passing as parameter the same value you had setted in the pastDaysCount
field.
from singlerowcalendar.
it's showing by deafult "1st of the month" not the current day and date
from singlerowcalendar.
Assuming that you have the index/position of today
singleRowCalendar?.select(14)
singleRowCalendar?.scrollToPosition(12)
Here, 14 is the index of today - 14 pre | today | 14 post - in my application
why 2 less in scrollToPosition
, well, there are 5 on my design that can show, and scrollToPosition
brings it to the beginning. You can adjust according to your needs and don't ask to scroll out of ranges.
from singlerowcalendar.
Related Issues (20)
- The selected date wont change color after click button next/previous month HOT 11
- How to disable previous date and current date is selected by default HOT 1
- How can I show only month name?
- Can we add locale for multiple language?
- Great Library.... Just need little Help
- Possibiliy to use the library with a view pager ?
- Usage in Java android Project
- Load dates dynamically
- Put selected item in center
- ViewBinding
- Migrating from jcenter() HOT 1
- How can I district week day count to 7?
- is it available for java instead kotlin?
- JCenter is dead HOT 4
- isSelected returns false everytime when i move to next or previous month. HOT 2
- Could not find com.michalsvec:single-row-calednar:1.0.0. HOT 2
- is it possible to use this library with Jetpack Compose? HOT 1
- How to choose the style of the calendar ?
- Item change notification received for unknown item: -9 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from singlerowcalendar.