shagiz / almostmaterialdatepicker Goto Github PK
View Code? Open in Web Editor NEWDate picker made in material design style with some additional spinners
Date picker made in material design style with some additional spinners
Hi, admin who know how to disable click on saturday, sunday and public holiday from my country malaysia?
when i change month the previous selected day getting unselected too
val variable is not imprting
The reason is in the 'drawMonthDayLabels(Canvas canvas)' method of the 'MonthView.java' file:
int dayWidthHalf = (mWidth - mEdgePadding * 2) / (mNumDays * 2.0f);
The 'int' should be replaced by 'float', Because of the loss of precision leading to deviation.
I'm sorry, my English is very bad
Few Years are moving to left and Few years were moving to Center. Please can you provide any solution for this.
Hey @shagiz you had forgotten to add +1 for getting month
Replaec your method with this
public void notifyOnDateListener() {
if (mCallBack != null) {
mCallBack.onDateSet(DatePickerFragmentDialog.this, mCalendar.get(Calendar.YEAR),
mCalendar.get(Calendar.MONTH)+1, mCalendar.get(Calendar.DAY_OF_MONTH));
}
}
Number in locale("ar") does not appear correctly, the numbers appears as mix of (Arabic and English)
Tjis is I found when i try to apply u code inside fragment
`DatePickerFragmentDialog dialog = new DatePickerFragmentDialog();
dialog.setOnDateSetListener(new DatePickerFragmentDialog.OnDateSetListener() {
@Override
public void onDateSet(DatePickerFragmentDialog view, int year, int monthOfYear, int dayOfMonth) {
myCalendar.set(Calendar.YEAR, year);
myCalendar.set(Calendar.MONTH, monthOfYear);
myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);
updateLabel();
}
});
//dialog.setOkColor(Color.BLACK);
//dialog.setAccentColor(Color.DKGRAY);
dialog.show(getFragmentManager(), "123");`
Select the minimum day as something like 19-Feb-2019. In months drop down still January is showing for the year 2019, if i select January month app is getting crashed. Below is the error info.
java.lang.IllegalArgumentException: Invalid target position at androidx.recyclerview.widget.RecyclerView$SmoothScroller.start(RecyclerView.java:11534) at androidx.recyclerview.widget.RecyclerView$LayoutManager.startSmoothScroll(RecyclerView.java:8204) at androidx.recyclerview.widget.LinearLayoutManager.smoothScrollToPosition(LinearLayoutManager.java:451) at androidx.recyclerview.widget.RecyclerView.smoothScrollToPosition(RecyclerView.java:1781) at com.shagi.materialdatepicker.date.DayPickerView.scrollToMonth(DayPickerView.java:230) at com.shagi.materialdatepicker.date.DatePickerFragmentDialog$3.onMenuItemClick(DatePickerFragmentDialog.java:912) at android.widget.PopupMenu$1.onMenuItemSelected(PopupMenu.java:105) at com.android.internal.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:776) at com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:148) at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:923) at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:913) at com.android.internal.view.menu.MenuPopup.onItemClick(MenuPopup.java:128) at android.widget.AdapterView.performItemClick(AdapterView.java:318) at android.widget.AbsListView.performItemClick(AbsListView.java:1159) at android.widget.AbsListView$PerformClick.run(AbsListView.java:3136) at android.widget.AbsListView.onTouchUp(AbsListView.java:4064) at android.widget.AbsListView.onTouchEvent(AbsListView.java:3822)
When i did selectableDays. YearPopUpView is getting doubled.
When I try to select the year from the year spinner, it is showing dark drop bg with gray year text color in dark theme mode. I could not select what exactly the year is. But in the month drop down it's working well. In a normal theme, it works well.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.