├── lint.xml ├── bin ├── Hijri.apk ├── classes.dex ├── resources.ap_ ├── res │ ├── drawable-hdpi │ │ ├── back.png │ │ ├── bg3.png │ │ ├── bg4.png │ │ ├── appbg.png │ │ ├── background.png │ │ └── ic_launcher.png │ ├── drawable-ldpi │ │ └── ic_launcher.png │ ├── drawable-mdpi │ │ └── ic_launcher.png │ └── drawable-xhdpi │ │ └── ic_launcher.png ├── classes │ ├── kankan │ │ └── wheel │ │ │ ├── R.class │ │ │ └── R$drawable.class │ └── com │ │ └── mos7af │ │ └── hijri │ │ ├── R.class │ │ ├── Hijri.class │ │ ├── R$id.class │ │ ├── R$xml.class │ │ ├── Hijri$1.class │ │ ├── Hijri$2.class │ │ ├── NewMoon.class │ │ ├── R$attr.class │ │ ├── R$menu.class │ │ ├── R$style.class │ │ ├── APC_Math.class │ │ ├── APC_Time.class │ │ ├── MoonPhases.class │ │ ├── R$drawable.class │ │ ├── R$layout.class │ │ ├── R$string.class │ │ ├── BuildConfig.class │ │ ├── CrescentMoon.class │ │ ├── DateActivity.class │ │ ├── HijriWidget.class │ │ ├── MyDatePicker.class │ │ ├── CustomTextView.class │ │ ├── DateActivity$1.class │ │ ├── DateActivity$2.class │ │ ├── DateActivity$3.class │ │ ├── GregorianWidget.class │ │ ├── HijriCalendar.class │ │ ├── EclipticPosition.class │ │ ├── GregorianCalendar.class │ │ ├── DateActivity$DateArrayAdapter.class │ │ └── DateActivity$DateNumericAdapter.class ├── jarlist.cache ├── dexedLibs │ ├── wheel-f8c6d376147e785857110d135d74fca7.jar │ └── android-support-v4-69eba587f6d4f6be3914f4674715aaae.jar ├── R.txt └── AndroidManifest.xml ├── ic_launcher-web.png ├── res ├── drawable-hdpi │ ├── bg3.png │ ├── bg4.png │ ├── appbg.png │ ├── back.png │ ├── background.png │ ├── ic_launcher.png │ ├── bg.xml │ ├── gradient_bg_hover.xml │ ├── gradient_bg.xml │ ├── screen_background.xml │ └── footerbg.xml ├── drawable-ldpi │ └── ic_launcher.png ├── drawable-mdpi │ └── ic_launcher.png ├── drawable-xhdpi │ └── ic_launcher.png ├── values │ ├── strings.xml │ └── styles.xml ├── menu │ └── ly_hijri.xml ├── xml │ └── watch_widget_provider.xml ├── values-v11 │ └── styles.xml ├── values-v14 │ └── styles.xml ├── drawable │ └── layout_bg.xml └── layout │ ├── main.xml │ ├── date_layout.xml │ └── ly_hijri.xml ├── assets └── fonts │ └── hallfetica.ttf ├── libs └── android-support-v4.jar ├── README.md ├── gen ├── com │ └── mos7af │ │ └── hijri │ │ ├── BuildConfig.java │ │ └── R.java └── kankan │ └── wheel │ └── R.java ├── src └── com │ └── mos7af │ └── hijri │ ├── MoonPhases.java │ ├── CustomTextView.java │ ├── MyDatePicker.java │ ├── GregorianWidget.java │ ├── HijriWidget.java │ ├── CrescentMoon.java │ ├── NewMoon.java │ ├── EclipticPosition.java │ ├── APC_Time.java │ ├── GregorianCalendar.java │ ├── APC_Math.java │ ├── DateActivity.java │ ├── HijriCalendar.java │ └── Hijri.java ├── .settings └── org.eclipse.core.resources.prefs ├── .classpath ├── project.properties ├── proguard-project.txt ├── .project └── AndroidManifest.xml /lint.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /bin/Hijri.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/bin/Hijri.apk -------------------------------------------------------------------------------- /bin/classes.dex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/bin/classes.dex -------------------------------------------------------------------------------- /bin/resources.ap_: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/bin/resources.ap_ -------------------------------------------------------------------------------- /ic_launcher-web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/ic_launcher-web.png -------------------------------------------------------------------------------- /res/drawable-hdpi/bg3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/res/drawable-hdpi/bg3.png -------------------------------------------------------------------------------- /res/drawable-hdpi/bg4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/res/drawable-hdpi/bg4.png -------------------------------------------------------------------------------- /assets/fonts/hallfetica.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/assets/fonts/hallfetica.ttf -------------------------------------------------------------------------------- /libs/android-support-v4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/libs/android-support-v4.jar -------------------------------------------------------------------------------- /res/drawable-hdpi/appbg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/res/drawable-hdpi/appbg.png -------------------------------------------------------------------------------- /res/drawable-hdpi/back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/res/drawable-hdpi/back.png -------------------------------------------------------------------------------- /bin/res/drawable-hdpi/back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/bin/res/drawable-hdpi/back.png -------------------------------------------------------------------------------- /bin/res/drawable-hdpi/bg3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/bin/res/drawable-hdpi/bg3.png -------------------------------------------------------------------------------- /bin/res/drawable-hdpi/bg4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/bin/res/drawable-hdpi/bg4.png -------------------------------------------------------------------------------- /bin/classes/kankan/wheel/R.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/bin/classes/kankan/wheel/R.class -------------------------------------------------------------------------------- /bin/res/drawable-hdpi/appbg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/bin/res/drawable-hdpi/appbg.png -------------------------------------------------------------------------------- /res/drawable-hdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/res/drawable-hdpi/background.png -------------------------------------------------------------------------------- /res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /res/drawable-ldpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/res/drawable-ldpi/ic_launcher.png -------------------------------------------------------------------------------- /res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /bin/classes/com/mos7af/hijri/R.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/bin/classes/com/mos7af/hijri/R.class -------------------------------------------------------------------------------- /bin/res/drawable-hdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/bin/res/drawable-hdpi/background.png -------------------------------------------------------------------------------- /bin/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/bin/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /bin/res/drawable-ldpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/bin/res/drawable-ldpi/ic_launcher.png -------------------------------------------------------------------------------- /bin/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/bin/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /bin/classes/com/mos7af/hijri/Hijri.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/bin/classes/com/mos7af/hijri/Hijri.class -------------------------------------------------------------------------------- /bin/classes/com/mos7af/hijri/R$id.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/bin/classes/com/mos7af/hijri/R$id.class -------------------------------------------------------------------------------- /bin/classes/com/mos7af/hijri/R$xml.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/bin/classes/com/mos7af/hijri/R$xml.class -------------------------------------------------------------------------------- /bin/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/bin/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /bin/classes/com/mos7af/hijri/Hijri$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/bin/classes/com/mos7af/hijri/Hijri$1.class -------------------------------------------------------------------------------- /bin/classes/com/mos7af/hijri/Hijri$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/bin/classes/com/mos7af/hijri/Hijri$2.class -------------------------------------------------------------------------------- /bin/classes/com/mos7af/hijri/NewMoon.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/bin/classes/com/mos7af/hijri/NewMoon.class -------------------------------------------------------------------------------- /bin/classes/com/mos7af/hijri/R$attr.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/bin/classes/com/mos7af/hijri/R$attr.class -------------------------------------------------------------------------------- /bin/classes/com/mos7af/hijri/R$menu.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/bin/classes/com/mos7af/hijri/R$menu.class -------------------------------------------------------------------------------- /bin/classes/com/mos7af/hijri/R$style.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/bin/classes/com/mos7af/hijri/R$style.class -------------------------------------------------------------------------------- /bin/classes/kankan/wheel/R$drawable.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/bin/classes/kankan/wheel/R$drawable.class -------------------------------------------------------------------------------- /bin/classes/com/mos7af/hijri/APC_Math.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/bin/classes/com/mos7af/hijri/APC_Math.class -------------------------------------------------------------------------------- /bin/classes/com/mos7af/hijri/APC_Time.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/bin/classes/com/mos7af/hijri/APC_Time.class -------------------------------------------------------------------------------- /bin/classes/com/mos7af/hijri/MoonPhases.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/bin/classes/com/mos7af/hijri/MoonPhases.class -------------------------------------------------------------------------------- /bin/classes/com/mos7af/hijri/R$drawable.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/bin/classes/com/mos7af/hijri/R$drawable.class -------------------------------------------------------------------------------- /bin/classes/com/mos7af/hijri/R$layout.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/bin/classes/com/mos7af/hijri/R$layout.class -------------------------------------------------------------------------------- /bin/classes/com/mos7af/hijri/R$string.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/bin/classes/com/mos7af/hijri/R$string.class -------------------------------------------------------------------------------- /bin/jarlist.cache: -------------------------------------------------------------------------------- 1 | # cache for current jar dependecy. DO NOT EDIT. 2 | # format is 3 | # Encoding is UTF-8 4 | -------------------------------------------------------------------------------- /bin/classes/com/mos7af/hijri/BuildConfig.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/bin/classes/com/mos7af/hijri/BuildConfig.class -------------------------------------------------------------------------------- /bin/classes/com/mos7af/hijri/CrescentMoon.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/bin/classes/com/mos7af/hijri/CrescentMoon.class -------------------------------------------------------------------------------- /bin/classes/com/mos7af/hijri/DateActivity.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/bin/classes/com/mos7af/hijri/DateActivity.class -------------------------------------------------------------------------------- /bin/classes/com/mos7af/hijri/HijriWidget.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/bin/classes/com/mos7af/hijri/HijriWidget.class -------------------------------------------------------------------------------- /bin/classes/com/mos7af/hijri/MyDatePicker.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/bin/classes/com/mos7af/hijri/MyDatePicker.class -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Hijri-Calendar 2 | ============== 3 | 4 | Hijri Calendar - التقويم الهجري 5 | 6 | wheel library: 7 | https://code.google.com/p/android-wheel/ 8 | -------------------------------------------------------------------------------- /bin/classes/com/mos7af/hijri/CustomTextView.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/bin/classes/com/mos7af/hijri/CustomTextView.class -------------------------------------------------------------------------------- /bin/classes/com/mos7af/hijri/DateActivity$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/bin/classes/com/mos7af/hijri/DateActivity$1.class -------------------------------------------------------------------------------- /bin/classes/com/mos7af/hijri/DateActivity$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/bin/classes/com/mos7af/hijri/DateActivity$2.class -------------------------------------------------------------------------------- /bin/classes/com/mos7af/hijri/DateActivity$3.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/bin/classes/com/mos7af/hijri/DateActivity$3.class -------------------------------------------------------------------------------- /bin/classes/com/mos7af/hijri/GregorianWidget.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/bin/classes/com/mos7af/hijri/GregorianWidget.class -------------------------------------------------------------------------------- /bin/classes/com/mos7af/hijri/HijriCalendar.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/bin/classes/com/mos7af/hijri/HijriCalendar.class -------------------------------------------------------------------------------- /bin/classes/com/mos7af/hijri/EclipticPosition.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/bin/classes/com/mos7af/hijri/EclipticPosition.class -------------------------------------------------------------------------------- /bin/classes/com/mos7af/hijri/GregorianCalendar.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/bin/classes/com/mos7af/hijri/GregorianCalendar.class -------------------------------------------------------------------------------- /bin/dexedLibs/wheel-f8c6d376147e785857110d135d74fca7.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/bin/dexedLibs/wheel-f8c6d376147e785857110d135d74fca7.jar -------------------------------------------------------------------------------- /bin/classes/com/mos7af/hijri/DateActivity$DateArrayAdapter.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/bin/classes/com/mos7af/hijri/DateActivity$DateArrayAdapter.class -------------------------------------------------------------------------------- /bin/classes/com/mos7af/hijri/DateActivity$DateNumericAdapter.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/bin/classes/com/mos7af/hijri/DateActivity$DateNumericAdapter.class -------------------------------------------------------------------------------- /bin/dexedLibs/android-support-v4-69eba587f6d4f6be3914f4674715aaae.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abodehq/Hijri-Calendar/HEAD/bin/dexedLibs/android-support-v4-69eba587f6d4f6be3914f4674715aaae.jar -------------------------------------------------------------------------------- /gen/com/mos7af/hijri/BuildConfig.java: -------------------------------------------------------------------------------- 1 | /** Automatically generated file. DO NOT MODIFY */ 2 | package com.mos7af.hijri; 3 | 4 | public final class BuildConfig { 5 | public final static boolean DEBUG = true; 6 | } -------------------------------------------------------------------------------- /res/drawable-hdpi/bg.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | هجري 5 | Hello world! 6 | Settings 7 | 8 | -------------------------------------------------------------------------------- /src/com/mos7af/hijri/MoonPhases.java: -------------------------------------------------------------------------------- 1 | package com.mos7af.hijri; 2 | /* 3 | * To change this template, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | 7 | public abstract class MoonPhases { 8 | public abstract double calculatePhase(double T); 9 | } 10 | -------------------------------------------------------------------------------- /res/menu/ly_hijri.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | -------------------------------------------------------------------------------- /.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/com/mos7af/hijri/DateActivity.java=UTF-8 3 | encoding//src/com/mos7af/hijri/GregorianCalendar.java=UTF-8 4 | encoding//src/com/mos7af/hijri/Hijri.java=UTF-8 5 | encoding//src/com/mos7af/hijri/HijriCalendar.java=UTF-8 6 | -------------------------------------------------------------------------------- /res/xml/watch_widget_provider.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /res/values-v11/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 10 | 11 | -------------------------------------------------------------------------------- /res/drawable-hdpi/gradient_bg_hover.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 10 | -------------------------------------------------------------------------------- /res/drawable-hdpi/gradient_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 10 | -------------------------------------------------------------------------------- /gen/kankan/wheel/R.java: -------------------------------------------------------------------------------- 1 | /* AUTO-GENERATED FILE. DO NOT MODIFY. 2 | * 3 | * This class was automatically generated by the 4 | * aapt tool from the resource data it found. It 5 | * should not be modified by hand. 6 | */ 7 | package kankan.wheel; 8 | 9 | public final class R { 10 | public static final class drawable { 11 | public static final int wheel_val = 0x7f02000d; 12 | public static final int wheel_bg = 0x7f02000c; 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /res/drawable-hdpi/screen_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 8 | -------------------------------------------------------------------------------- /res/values-v14/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 11 | 12 | -------------------------------------------------------------------------------- /.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /project.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must be checked in Version Control Systems. 5 | # 6 | # To customize properties used by the Ant build system edit 7 | # "ant.properties", and override values to adapt the script to your 8 | # project structure. 9 | # 10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): 11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt 12 | 13 | # Project target. 14 | target=android-17 15 | android.library.reference.1=../wheel 16 | -------------------------------------------------------------------------------- /res/drawable-hdpi/footerbg.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 11 | 12 | 13 | 14 | 16 | 19 | -------------------------------------------------------------------------------- /res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 14 | 15 | 16 | 19 | 20 | -------------------------------------------------------------------------------- /proguard-project.txt: -------------------------------------------------------------------------------- 1 | # To enable ProGuard in your project, edit project.properties 2 | # to define the proguard.config property as described in that file. 3 | # 4 | # Add project specific ProGuard rules here. 5 | # By default, the flags in this file are appended to flags specified 6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt 7 | # You can edit the include path and order by changing the ProGuard 8 | # include property in project.properties. 9 | # 10 | # For more details, see 11 | # http://developer.android.com/guide/developing/tools/proguard.html 12 | 13 | # Add any project specific keep options here: 14 | 15 | # If your project uses WebView with JS, uncomment the following 16 | # and specify the fully qualified class name to the JavaScript interface 17 | # class: 18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 19 | # public *; 20 | #} 21 | -------------------------------------------------------------------------------- /src/com/mos7af/hijri/CustomTextView.java: -------------------------------------------------------------------------------- 1 | package com.mos7af.hijri; 2 | 3 | import android.content.Context; 4 | import android.graphics.Typeface; 5 | import android.util.AttributeSet; 6 | import android.widget.TextView; 7 | 8 | public class CustomTextView extends TextView{ 9 | public CustomTextView(Context context, AttributeSet attrs) { 10 | super(context, attrs); 11 | initTextFont(context); 12 | } 13 | 14 | public CustomTextView(Context context, AttributeSet attrs, int defStyle) { 15 | super(context, attrs, defStyle); 16 | initTextFont(context); 17 | } 18 | 19 | private void initTextFont(Context context) { 20 | String fontPath = "fonts/hallfetica.ttf"; 21 | Typeface tf = Typeface.createFromAsset(context.getAssets(), fontPath); 22 | setTypeface(tf); 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | Hijri 4 | 5 | 6 | 7 | 8 | 9 | com.android.ide.eclipse.adt.ResourceManagerBuilder 10 | 11 | 12 | 13 | 14 | com.android.ide.eclipse.adt.PreCompilerBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.jdt.core.javabuilder 20 | 21 | 22 | 23 | 24 | com.android.ide.eclipse.adt.ApkBuilder 25 | 26 | 27 | 28 | 29 | 30 | com.android.ide.eclipse.adt.AndroidNature 31 | org.eclipse.jdt.core.javanature 32 | 33 | 34 | -------------------------------------------------------------------------------- /res/drawable/layout_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 20 | 21 | 22 | 27 | 28 | -------------------------------------------------------------------------------- /src/com/mos7af/hijri/MyDatePicker.java: -------------------------------------------------------------------------------- 1 | package com.mos7af.hijri; 2 | 3 | import java.lang.reflect.Field; 4 | import java.lang.reflect.Method; 5 | 6 | import android.content.Context; 7 | import android.text.TextUtils; 8 | import android.util.AttributeSet; 9 | import android.widget.DatePicker; 10 | 11 | 12 | class MyDatePicker extends DatePicker { 13 | 14 | public MyDatePicker(Context context, AttributeSet attrs) { 15 | super(context, attrs); 16 | Field[] fields = DatePicker.class.getDeclaredFields(); 17 | try { 18 | for (Field field : fields) { 19 | field.setAccessible(true); 20 | if (TextUtils.equals(field.getName(), "mMonthPicker")) { 21 | Method m = field.getType().getDeclaredMethod("setRange", int.class, int.class, String[].class); 22 | m.setAccessible(true); 23 | String[] s = new String[] {"01","02","03","04","05","06","07","08","09","10","11","12"}; 24 | m.invoke(field.get(this), 1, 12, s); 25 | break; 26 | } 27 | } 28 | } 29 | catch (Exception e) { 30 | System.out.println(e.getMessage()); 31 | e.printStackTrace(); 32 | } 33 | } 34 | 35 | } -------------------------------------------------------------------------------- /res/layout/main.xml: -------------------------------------------------------------------------------- 1 | 2 | 12 | 13 | 24 | 25 | 36 | 37 | -------------------------------------------------------------------------------- /src/com/mos7af/hijri/GregorianWidget.java: -------------------------------------------------------------------------------- 1 | package com.mos7af.hijri; 2 | 3 | import android.appwidget.AppWidgetProvider; 4 | 5 | 6 | import java.text.DateFormat; 7 | import java.text.SimpleDateFormat; 8 | import java.util.Calendar; 9 | import java.util.Date; 10 | import java.util.Locale; 11 | import android.appwidget.AppWidgetManager; 12 | import android.content.ComponentName; 13 | import android.content.Context; 14 | import android.graphics.Typeface; 15 | import android.util.Log; 16 | import android.widget.RemoteViews; 17 | import android.widget.TextView; 18 | public class GregorianWidget extends AppWidgetProvider { 19 | @Override 20 | public void onUpdate( Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds ) 21 | { 22 | RemoteViews remoteViews; 23 | ComponentName watchWidget; 24 | DateFormat format = SimpleDateFormat.getTimeInstance( SimpleDateFormat.MEDIUM, Locale.getDefault() ); 25 | 26 | remoteViews = new RemoteViews( context.getPackageName(), R.layout.main ); 27 | watchWidget = new ComponentName( context, GregorianWidget.class ); 28 | Calendar calendar = Calendar.getInstance(); 29 | remoteViews.setTextViewText( R.id.widget_day, Integer.toString(calendar.get(Calendar.DAY_OF_MONTH))); 30 | GregorianCalendar gregorianCalendar = new GregorianCalendar(); 31 | 32 | remoteViews.setTextViewText( R.id.widget_month, gregorianCalendar.getMonthName(calendar.get(Calendar.MONTH))); 33 | appWidgetManager.updateAppWidget( watchWidget, remoteViews ); 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/com/mos7af/hijri/HijriWidget.java: -------------------------------------------------------------------------------- 1 | package com.mos7af.hijri; 2 | 3 | import android.appwidget.AppWidgetProvider; 4 | 5 | 6 | import java.text.DateFormat; 7 | import java.text.SimpleDateFormat; 8 | import java.util.Calendar; 9 | import java.util.Date; 10 | import java.util.Locale; 11 | import android.appwidget.AppWidgetManager; 12 | import android.content.ComponentName; 13 | import android.content.Context; 14 | import android.graphics.Typeface; 15 | import android.util.Log; 16 | import android.widget.RemoteViews; 17 | import android.widget.TextView; 18 | public class HijriWidget extends AppWidgetProvider { 19 | @Override 20 | public void onUpdate( Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds ) 21 | { 22 | RemoteViews remoteViews; 23 | ComponentName watchWidget; 24 | DateFormat format = SimpleDateFormat.getTimeInstance( SimpleDateFormat.MEDIUM, Locale.getDefault() ); 25 | 26 | remoteViews = new RemoteViews( context.getPackageName(), R.layout.main ); 27 | watchWidget = new ComponentName( context, HijriWidget.class ); 28 | Calendar calendar = Calendar.getInstance(); 29 | HijriCalendar hijriCalendar =new HijriCalendar(calendar.get(Calendar.YEAR),calendar.get(Calendar.MONTH)+1,calendar.get(Calendar.DAY_OF_MONTH)); 30 | String hijriDay=Integer.toString( hijriCalendar.getHijriDay()); 31 | String hijriMonth= hijriCalendar.getHijriMonthName(); 32 | remoteViews.setTextViewText( R.id.widget_day, hijriDay); 33 | remoteViews.setTextViewText( R.id.widget_month, hijriMonth); 34 | appWidgetManager.updateAppWidget( watchWidget, remoteViews ); 35 | } 36 | } 37 | 38 | -------------------------------------------------------------------------------- /bin/R.txt: -------------------------------------------------------------------------------- 1 | int drawable appbg 0x7f020000 2 | int drawable back 0x7f020001 3 | int drawable background 0x7f020002 4 | int drawable bg 0x7f020003 5 | int drawable bg3 0x7f020004 6 | int drawable bg4 0x7f020005 7 | int drawable footerbg 0x7f020006 8 | int drawable gradient_bg 0x7f020007 9 | int drawable gradient_bg_hover 0x7f020008 10 | int drawable ic_launcher 0x7f020009 11 | int drawable layout_bg 0x7f02000a 12 | int drawable screen_background 0x7f02000b 13 | int drawable wheel_bg 0x7f02000c 14 | int drawable wheel_val 0x7f02000d 15 | int id LinearLayout01 0x7f08000a 16 | int id RelativeLayout01 0x7f080007 17 | int id TextView01 0x7f080015 18 | int id TextView02 0x7f080016 19 | int id btnHijri 0x7f080011 20 | int id btnMiladi 0x7f080013 21 | int id btnSubmit 0x7f080008 22 | int id btn_cancel 0x7f080009 23 | int id day 0x7f080004 24 | int id day_name 0x7f080001 25 | int id digitalClock1 0x7f080002 26 | int id footer 0x7f080000 27 | int id linearLayout1 0x7f080003 28 | int id menu_settings 0x7f080017 29 | int id month 0x7f080005 30 | int id text_hijri 0x7f080014 31 | int id text_mili 0x7f080012 32 | int id widget_day 0x7f08000b 33 | int id widget_mil_day 0x7f08000e 34 | int id widget_mil_month 0x7f08000f 35 | int id widget_mil_month_name 0x7f080010 36 | int id widget_month 0x7f08000c 37 | int id widget_month_name 0x7f08000d 38 | int id year 0x7f080006 39 | int layout date_layout 0x7f030000 40 | int layout ly_hijri 0x7f030001 41 | int layout main 0x7f030002 42 | int menu ly_hijri 0x7f070000 43 | int string app_name 0x7f050000 44 | int string hello_world 0x7f050001 45 | int string menu_settings 0x7f050002 46 | int style AppBaseTheme 0x7f060000 47 | int style AppTheme 0x7f060001 48 | int xml watch_widget_provider 0x7f040000 49 | -------------------------------------------------------------------------------- /src/com/mos7af/hijri/CrescentMoon.java: -------------------------------------------------------------------------------- 1 | package com.mos7af.hijri; 2 | 3 | /* 4 | * To change this template, choose Tools | Templates 5 | * and open the template in the editor. 6 | */ 7 | /** 8 | * 9 | * @author http://www.cepmuvakkit.com 10 | */ 11 | public class CrescentMoon extends MoonPhases { 12 | 13 | EclipticPosition eclipPos; 14 | //------------------------------------------------------------------------------ 15 | // 16 | // PhasesFunc: Goal function for search of phase events [-pi, pi] 17 | // 18 | // Input: 19 | // 20 | // T Ephemeris Time (Julian centuries since J2000) 21 | // 22 | // : Difference between the longitude of the Moon from the Sun 23 | // and the nominal value for a given phase (New Moon 0, First 24 | // Quarter pi/2, etc.) (in [rad]) 25 | // 26 | // Global: 27 | // 28 | // Phase Flag for desired lunar phase 29 | // 30 | //------------------------------------------------------------------------------ 31 | public double calculatePhase(double T) { 32 | // 33 | // Constants 34 | // 35 | double tau_Sun = 8.32 / (1440.0 * 36525.0); // 8.32 min [cy] 36 | double beta, l_Moon, l_Sun; 37 | double[] moonLongLat; 38 | double angle = 8;// 8 degree; crescent visibility criteria 39 | // 40 | // Variables 41 | // 42 | l_Sun = EclipticPosition.getMiniSunLongitude(T - tau_Sun); 43 | moonLongLat = EclipticPosition.getMiniMoon(T); 44 | l_Moon = moonLongLat[0]; 45 | beta = moonLongLat[1]; 46 | 47 | 48 | double LongDiff = l_Moon - l_Sun; 49 | double elongation = Math.sqrt(LongDiff * LongDiff + beta * beta); 50 | 51 | return (Math.PI * angle / 180.0 - elongation); 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 10 | 15 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 31 | 32 | 33 | 34 | 35 | 36 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /bin/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 10 | 15 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 31 | 32 | 33 | 34 | 35 | 36 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /src/com/mos7af/hijri/NewMoon.java: -------------------------------------------------------------------------------- 1 | package com.mos7af.hijri; 2 | 3 | /* 4 | * To change this template, choose Tools | Templates 5 | * and open the template in the editor. 6 | */ 7 | /** 8 | * 9 | * @author http://www.cepmuvakkit.com 10 | */ 11 | public class NewMoon extends MoonPhases { 12 | 13 | EclipticPosition eclipPos=new EclipticPosition(); 14 | 15 | //------------------------------------------------------------------------------ 16 | // 17 | // PhasesFunc: Goal function for search of phase events [-pi, pi] 18 | // 19 | // Input: 20 | // 21 | // T Ephemeris Time (Julian centuries since J2000) 22 | // 23 | // : Difference between the longitude of the Moon from the Sun 24 | // and the nominal value for a given phase (New Moon 0, First 25 | // Quarter pi/2, etc.) (in [rad]) 26 | // 27 | // Global: 28 | // 29 | // Phase Flag for desired lunar phase 30 | // 31 | //------------------------------------------------------------------------------ 32 | public double calculatePhase(double T) 33 | { 34 | // 35 | // Constants 36 | // 37 | double tau_Sun = 8.32 / (1440.0*36525.0); // 8.32 min [cy] 38 | double beta,l_Moon,l_Sun; 39 | double [] moonLongLat; 40 | double pi2=2*Math.PI; 41 | // 42 | // Variables 43 | // 44 | l_Sun=EclipticPosition.getMiniSunLongitude (T-tau_Sun); 45 | moonLongLat=EclipticPosition.getMiniMoon (T);//4.348761468846075 46 | l_Moon=moonLongLat[0];//-0.039226153787816305 47 | beta=moonLongLat[1]; 48 | 49 | 50 | double LongDiff = l_Moon - l_Sun; 51 | 52 | 53 | //if (LongDiff<0) LongDiff=LongDiff+pi2; 54 | // return ((LongDiff+Math.PI)%pi2)-Math.PI; 55 | return Modulo ( LongDiff+Math.PI,pi2)-Math.PI; 56 | } 57 | //------------------------------------------------------------------------------ 58 | // 59 | // Modulo: calculates x mod y 60 | // 61 | //------------------------------------------------------------------------------ 62 | private double Modulo (double x, double y) 63 | { 64 | return y*Frac(x/y); 65 | } 66 | //------------------------------------------------------------------------------ 67 | // 68 | // Frac: Gives the fractional part of a number 69 | // 70 | //------------------------------------------------------------------------------ 71 | 72 | private double Frac (double x) 73 | { 74 | return x-Math.floor(x); 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /src/com/mos7af/hijri/EclipticPosition.java: -------------------------------------------------------------------------------- 1 | package com.mos7af.hijri; 2 | /** 3 | * 4 | * @author http://www.cepmuvakkit.com 5 | */ 6 | public class EclipticPosition { 7 | 8 | //------------------------------------------------------------------------------ 9 | // 10 | // MiniSun: Computes the Sun's RA and declination using a low precision 11 | // analytical series 12 | // 13 | // Input: 14 | // 15 | // T Time in Julian centuries since J2000 16 | // 17 | // Output: 18 | // 19 | // L ecliptic longitude of the Sun in [rad] 20 | //------------------------------------------------------------------------------ 21 | static double getMiniSunLongitude(double T) { 22 | double pi2 = Math.PI * 2; 23 | double M; 24 | 25 | // Mean anomaly and ecliptic longitude 26 | M = pi2 * APC_Math.Frac(0.993133 + 99.997361 * T); 27 | return pi2 * APC_Math.Frac(0.7859453 + M / pi2 + (6893.0 * Math.sin(M) + 72.0 * Math.sin(2.0 * M) + 6191.2 * T) / 1296.0e3); 28 | 29 | } 30 | 31 | //------------------------------------------------------------------------------ 32 | // 33 | // MiniMoon: Computes the Moon's REcliptic longitude and latitude using a low precision 34 | // analytical series 35 | // 36 | // Input: 37 | // 38 | // T Time in Julian centuries since J2000 39 | // 40 | // Output: 41 | // 42 | // l_Moon Ecliptic longitude of the Moon in [rad] 43 | // b_Moon Ecliptic latitude of the Moon in [rad] 44 | // 45 | //------------------------------------------------------------------------------ 46 | static double[] getMiniMoon(double T) { 47 | 48 | double[] moonLongLat = new double[2]; 49 | double pi2 = 2 * Math.PI; 50 | double Arcs = 3600.0 * 180.0 / Math.PI; 51 | // Variables 52 | double L_0, l, ls, F, D, dL, S, h, N; 53 | // Mean elements of lunar orbit 54 | 55 | L_0 = APC_Math.Frac(0.606433 + 1336.855225 * T); // mean longitude [rev] 56 | 57 | l = pi2 * APC_Math.Frac(0.374897 + 1325.552410 * T); // Moon's mean anomaly 58 | ls = pi2 * APC_Math.Frac(0.993133 + 99.997361 * T); // Sun's mean anomaly 59 | D = pi2 * APC_Math.Frac(0.827361 + 1236.853086 * T); // Diff. long. Moon-Sun 60 | F = pi2 * APC_Math.Frac(0.259086 + 1342.227825 * T); // Dist. from ascending node 61 | 62 | 63 | // Perturbations in longitude and latitude 64 | dL = +22640 * Math.sin(l) - 4586 * Math.sin(l - 2 * D) + 2370 * Math.sin(2 * D) + 769 * Math.sin(2 * l) - 668 * Math.sin(ls) - 412 * Math.sin(2 * F) - 212 * Math.sin(2 * l - 2 * D) - 206 * Math.sin(l + ls - 2 * D) + 192 * Math.sin(l + 2 * D) - 165 * Math.sin(ls - 2 * D) - 125 * Math.sin(D) - 110 * Math.sin(l + ls) + 148 * Math.sin(l - ls) - 55 * Math.sin(2 * F - 2 * D); 65 | S = F + (dL + 412 * Math.sin(2 * F) + 541 * Math.sin(ls)) / Arcs; 66 | h = F - 2 * D; 67 | N = -526 * Math.sin(h) + 44 * Math.sin(l + h) - 31 * Math.sin(-l + h) - 23 * Math.sin(ls + h) + 11 * Math.sin(-ls + h) - 25 * Math.sin(-2 * l + F) + 21 * Math.sin(-l + F); 68 | 69 | 70 | // Ecliptic longitude and latitude 71 | moonLongLat[0] = pi2 * APC_Math.Frac(L_0 + dL / 1296.0e3); 72 | moonLongLat[1] = (18520.0 * Math.sin(S) + N) / Arcs; 73 | 74 | return moonLongLat; 75 | 76 | } 77 | } 78 | -------------------------------------------------------------------------------- /res/layout/date_layout.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 15 | 16 | 28 | 29 | 40 | 41 | 42 | 53 | 54 | 58 | 59 | 63 | 64 | 68 | 69 | 70 | 79 | 80 |