Comments (3)
check the below and try to use the icon ic_my_default with the right width and height you need.
MaterialCalendarView widget;
widget.setTileSize(-1);
widget.setTileWidthDp(LinearLayout.LayoutParams.MATCH_PARENT);
widget.setTileHeightDp(38);
widget.addDecorator(new MySelectorDecorator(getActivity()));
public class MySelectorDecorator implements DayViewDecorator {
private final Drawable drawable;
public MySelectorDecorator(Activity context) {
drawable = context.getResources().getDrawable(R.drawable.my_selector_default);
}
@OverRide
public boolean shouldDecorate(CalendarDay day) {
return true;
}
@OverRide
public void decorate(DayViewFacade view) {
view.setSelectionDrawable(drawable);
}
}
<item android:drawable="@drawable/ic_my_selector" android:state_checked="true" />
<item android:drawable="@drawable/ic_my_selector" android:state_pressed="true" />
<item android:drawable="@drawable/ic_my_default" />
from material-hijri-calendarview.
thanks for your support
from material-hijri-calendarview.
Welcome
from material-hijri-calendarview.
Related Issues (20)
- Show Month names in Arabic HOT 6
- Show Date with respect to Time Zone HOT 2
- Supporting rtl HOT 1
- setDateSelected method doesn't navigate to the month of selected date HOT 2
- getCurrentDate() HOT 1
- Error Inflating
- I cant inflate your view.Please fix this issue.My xml code is below HOT 1
- Can't find resource for bundle 'com.github.msarhan.ummalqura.calendar.text.UmmalquraFormatData_tr_TR', key '' HOT 1
- Error inflating class com.github.eltohamy.materialhijricalendarview.MaterialHijriCalendarView HOT 1
- Get Specific Day's TextView HOT 1
- Adding a way to fix date by adding or decreasing days from the date HOT 12
- Slow HOT 1
- Hijri Calendar - com.github.msarhan.ummalqura.calendar.text.UmmalquraFormatData_fr_FR', key '' HOT 2
- Displaying Gregorian calendar date along with Hijri Date HOT 4
- Binary XML file line #14: Binary XML file line #14: Error inflating class HOT 1
- Highlighting Today's Date HOT 1
- Caused by: java.lang.IllegalArgumentException: Supported locales are 'English' and 'Arabic' HOT 3
- error in hijri callender HOT 1
- SDK version 1.1.2 is no longer hosted
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 material-hijri-calendarview.