eltohamy / material-hijri-calendarview Goto Github PK
View Code? Open in Web Editor NEWA Material design back port of Android's Hijri CalendarView
Home Page: https://github.com/eltohamy/material-hijri-calendarview
License: Apache License 2.0
A Material design back port of Android's Hijri CalendarView
Home Page: https://github.com/eltohamy/material-hijri-calendarview
License: Apache License 2.0
Error inflating class com.github.eltohamy.materialhijricalendarview.MaterialHijriCalendarView
android.view.LayoutInflater.createView (LayoutInflater.java:640)
android.view.LayoutInflater.createViewFromTag (LayoutInflater.java:750)
android.view.LayoutInflater.rInflate (LayoutInflater.java:813)
android.view.LayoutInflater.rInflate (LayoutInflater.java:821)
android.view.LayoutInflater.rInflate (LayoutInflater.java:821)
android.view.LayoutInflater.rInflate (LayoutInflater.java:821)
android.view.LayoutInflater.inflate (LayoutInflater.java:511)
android.view.LayoutInflater.inflate (LayoutInflater.java:415)
Can we show date in your library with respect to time zone.? because it show only Saudi Arabic date and in Pakistan the date is changed.i want to show date with respect to timeZone.
There is no any method to get specific day's textview in order to use and setting textColor
Can you please explain how to change the size of selected date circle and
how to decrease the spaces between days rows and column.
please help me to solve it
Execution failed for task ':app:mergeDebugResources'.
A failure occurred while executing com.android.build.gradle.internal.res.ResourceCompilerRunnable
Resource compilation failed (Failed to compile values resource file C:\Users\codlop-kholy\StudioProjects\families\app\build\intermediates\incremental\debug\mergeDebugResources\merged.dir\values\values.xml. Cause: java.nio.file.InvalidPathException: Illegal char <:> at index 47: com.example.families.app-mergeDebugResources-96:/values/values.xml). Check logs for more details.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
How To Highlight the Current Hijri Date on Calendar?
Hi,
Is the any way we can display Gregorian Calendar date along with the Hijri date?
regards,
Mohammed
Please help me? How can i resolve this issue?
Can't find resource for bundle 'com.github.msarhan.ummalqura.calendar.text.UmmalquraFormatData_tr_TR', key ''
In some countries the date is calculated depending on the moon position.
In this cases, user may have to fix it by specifying a days to be added to the date to fix the calendar:
+2
+1
0
-1
-2
App crashed in case of multi-language supported app. In my use case using Bengali-BD "bn" language this error has been found.
Error- Caused by: java.lang.IllegalArgumentException: Supported locales are 'English' and 'Arabic'
Error inflating class com.github.eltohamy.materialhijricalendarview.MaterialHijriCalendarView
hi trying to add Hijri calendar to my Android App i got this ressource on github HIJRI CALENDARE and as it said i added the two dependencies and the xlm in my Activity exactly the same all work fine ! but when my App starts i get an error that i don't know what it is !
heres my Log :
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.mon.muslim/com.example.mon.muslim.Map}: android.view.InflateException: Binary XML file line #9: Error inflating class com.github.eltohamy.materialhijricalendarview.MaterialHijriCalendarView at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2699) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2773) at android.app.ActivityThread.access$900(ActivityThread.java:177) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1434) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5930) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1405) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1200) Caused by: android.view.InflateException: Binary XML file line #9: Error inflating class com.github.eltohamy.materialhijricalendarview.MaterialHijriCalendarView at android.view.LayoutInflater.createView(LayoutInflater.java:633) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:743) at android.view.LayoutInflater.rInflate(LayoutInflater.java:806) at android.view.LayoutInflater.inflate(LayoutInflater.java:504) at android.view.LayoutInflater.inflate(LayoutInflater.java:414) at android.view.LayoutInflater.inflate(LayoutInflater.java:365) at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:287) at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:139) at com.example.mon.muslim.Map.onCreate(Map.java:18) at android.app.Activity.performCreate(Activity.java:6178) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2652) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2773) at android.app.ActivityThread.access$900(ActivityThread.java:177) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1434) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5930) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1405) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1200) Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Constructor.newInstance(Native Method) at java.lang.reflect.Constructor.newInstance(Constructor.java:288) at android.view.LayoutInflater.createView(LayoutInflater.java:607) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:743) at android.view.LayoutInflater.rInflate(LayoutInflater.java:806) at android.view.LayoutInflater.inflate(LayoutInflater.java:504) at android.view.LayoutInflater.inflate(LayoutInflater.java:414) at android.view.LayoutInflater.inflate(LayoutInflater.java:365) at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:287) at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:139) at com.example.mon.muslim.Map.onCreate(Map.java:18) at android.app.Activity.performCreate(Activity.java:6178) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2652) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2773) at android.app.ActivityThread.access$900(ActivityThread.java:177) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1434) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5930) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1405) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1200) Caused by: java.util.MissingResourceException: Can't find resource for bundle 'com.github.msarhan.ummalqura.calendar.text.UmmalquraFormatData_fr_FR', key '' at java.util.ResourceBundle.missingResourceException(ResourceBundle.java:238) at java.util.ResourceBundle.getBundle(ResourceBundle.java:230) at java.util.ResourceBundle.getBundle(ResourceBundle.java:159) at com.github.msarhan.ummalqura.calendar.UmmalquraDateFormatSymbols.initializeData(UmmalquraDateFormatSymbols.java:91) at com.github.msarhan.ummalqura.calendar.UmmalquraDateFormatSymbols.(UmmalquraDateFormatSymbols.java:66) at com.github.msarhan.ummalqura.calendar.UmmalquraCalendar.getDisplayName(UmmalquraCalendar.java:325) at com.github.eltohamy.materialhijricalendarview.format.DateFormatTitleFormatter.format(DateFormatTitleFormatter.java:42) at com.github.eltohamy.materialhijricalendarview.TitleChanger.doChange(TitleChanger.java:68) at com.github.eltohamy.materialhijricalendarview.TitleChanger.change(TitleChanger.java:51) at com.github.eltohamy.materialhijricalendarview.MaterialHijriCalendarView.updateUi(MaterialHijriCalendarView.java:373) at com.github.eltohamy.materialhijricalendarview.MaterialHijriCalendarView.access$600(MaterialHijriCalendarView.java:67) at com.github.eltohamy.materialhijricalendarview.MaterialHijriCalendarView$2.onPageSelected(MaterialHijriCalendarView.java:184) at android.support.v4.view.ViewPager.dispatchOnPageSelected(ViewPager.java:1935) at android.support.v4.view.ViewPager.setCurrentItemInternal(ViewPager.java:659) at android.support.v4.view.ViewPager.setCurrentItemInternal(ViewPager.java:625) at android.support.v4.view.ViewPager.setCurrentItem(ViewPager.java:617) at com.git
Help Please .. Thanks !!!
android.view.InflateException: Binary XML file line #27: Error inflating class com.github.eltohamy.materialhijricalendarview.MaterialHijriCalendarView
<com.github.eltohamy.materialhijricalendarview.MaterialHijriCalendarView
android:id="@+id/calendar_hijri"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto"
app:mcv_showOtherDates="all"
app:mcv_selectionColor="#00F"
/>
i thought that this method will return the current hijri date today, but when i read the docs i found that it will not.
please is there any method to get the current date of today?
Hijri calendar should support rtl to be useful.
There's an issue at setDateSelected method, when adding specific date at past or future month, the date is selected, but the month with the selected date should be shown not the current month.
Can we show months name in Arabic or Urdu language in your library
It takes 3-5 seconds to open the dialog, it's not smooth. Is there any work around or fix ?
Gradle URL 'com.github.eltohamy:material-hijri-calendarview:1.1.0' doesn't work on Android studio
`apply plugin: 'com.android.application'
android {
compileSdkVersion 27
buildToolsVersion '27.0.3'
defaultConfig {
applicationId "com.github.eltohamy.materialhijricalendarview.sample"
minSdkVersion 14
targetSdkVersion 27
versionCode project.ext.versionCodeInt
versionName version
}
}
repositories {
maven {
url 'https://dl.bintray.com/el-tohamy/maven/'
}
}
dependencies {
// You should use the commented out line below in you're application.
// We depend on the source directly here so that development is easier.
implementation "com.android.support:support-v4:27.1.1"
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:recyclerview-v7:27.1.1'
implementation project(':library')
implementation 'com.github.eltohamy:material-hijri-calendarview:1.1.1'
implementation group: 'com.github.msarhan', name: 'ummalqura-calendar', version: '1.1.7'
// implementation 'com.github.msarhan:ummalqura-calendar:1.1.7'
implementation 'com.jakewharton:butterknife:8.8.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
}`
2019-04-01 15:11:07.536 5033-5033/com.github.eltohamy.materialhijricalendarview.sample E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.github.eltohamy.materialhijricalendarview.sample, PID: 5033
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.github.eltohamy.materialhijricalendarview.sample/com.github.eltohamy.materialhijricalendarview.sample.BasicActivity}: android.view.InflateException: Binary XML file line #14: Binary XML file line #14: Error inflating class com.github.eltohamy.materialhijricalendarview.MaterialHijriCalendarView
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2841)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2919)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1637)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:176)
at android.app.ActivityThread.main(ActivityThread.java:6656)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)
Caused by: android.view.InflateException: Binary XML file line #14: Binary XML file line #14: Error inflating class com.github.eltohamy.materialhijricalendarview.MaterialHijriCalendarView
Caused by: android.view.InflateException: Binary XML file line #14: Error inflating class com.github.eltohamy.materialhijricalendarview.MaterialHijriCalendarView
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.newInstance0(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:334)
at android.view.LayoutInflater.createView(LayoutInflater.java:651)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:794)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:734)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:867)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:828)
at android.view.LayoutInflater.inflate(LayoutInflater.java:519)
at android.view.LayoutInflater.inflate(LayoutInflater.java:427)
at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:287)
at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:139)
at com.github.eltohamy.materialhijricalendarview.sample.BasicActivity.onCreate(BasicActivity.java:38)
at android.app.Activity.performCreate(Activity.java:7074)
at android.app.Activity.performCreate(Activity.java:7065)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1214)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2794)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2919)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1637)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:176)
at android.app.ActivityThread.main(ActivityThread.java:6656)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)
Caused by: java.util.MissingResourceException: Can't find bundle for base name com.github.msarhan.ummalqura.calendar.text.UmmalquraFormatData, locale in_ID
at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1558)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1381)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:847)
at com.github.msarhan.ummalqura.calendar.UmmalquraDateFormatSymbols.initializeData(UmmalquraDateFormatSymbols.java:91)
at com.github.msarhan.ummalqura.calendar.UmmalquraDateFormatSymbols.(UmmalquraDateFormatSymbols.java:66)
2019-04-01 15:11:07.532 430-430/? E/SurfaceFlinger: getUniqueId not supported on VirtualDisplaySurface
2019-04-01 15:11:07.538 5033-5033/com.github.eltohamy.materialhijricalendarview.sample E/AndroidRuntime: at com.github.msarhan.ummalqura.calendar.UmmalquraCalendar.getDisplayName(UmmalquraCalendar.java:325)
at com.github.eltohamy.materialhijricalendarview.format.DateFormatTitleFormatter.format(DateFormatTitleFormatter.java:42)
at com.github.eltohamy.materialhijricalendarview.TitleChanger.doChange(TitleChanger.java:68)
at com.github.eltohamy.materialhijricalendarview.TitleChanger.change(TitleChanger.java:51)
at com.github.eltohamy.materialhijricalendarview.MaterialHijriCalendarView.updateUi(MaterialHijriCalendarView.java:373)
at com.github.eltohamy.materialhijricalendarview.MaterialHijriCalendarView.access$600(MaterialHijriCalendarView.java:67)
at com.github.eltohamy.materialhijricalendarview.MaterialHijriCalendarView$2.onPageSelected(MaterialHijriCalendarView.java:184)
at android.support.v4.view.ViewPager.dispatchOnPageSelected(ViewPager.java:1935)
at android.support.v4.view.ViewPager.setCurrentItemInternal(ViewPager.java:659)
at android.support.v4.view.ViewPager.setCurrentItemInternal(ViewPager.java:625)
at android.support.v4.view.ViewPager.setCurrentItem(ViewPager.java:617)
at com.github.eltohamy.materialhijricalendarview.MaterialHijriCalendarView.setCurrentDate(MaterialHijriCalendarView.java:700)
at com.github.eltohamy.materialhijricalendarview.MaterialHijriCalendarView.setCurrentDate(MaterialHijriCalendarView.java:688)
at com.github.eltohamy.materialhijricalendarview.MaterialHijriCalendarView.(MaterialHijriCalendarView.java:333)
... 26 more
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.