From 7bea783f1dcac5ec88a3e9452f7d8c1451fad1c2 Mon Sep 17 00:00:00 2001 From: Hussein Maher Date: Tue, 10 Aug 2010 18:52:59 +0300 Subject: [PATCH] About US - Full Screen Mode - Arabic Sura Names --- AndroidManifest.xml | 38 +++++----- gen/com/quran/labs/androidquran/R.java | 71 ++++++++++++------ res/drawable/about.png | Bin 0 -> 1330 bytes res/drawable/jump.png | Bin 0 -> 1491 bytes res/drawable/settings.png | Bin 0 -> 3495 bytes res/layout/about_us.xml | 43 +++++++++++ res/layout/settings.xml | 17 +++++ res/menu/option_menu.xml | 13 ++++ res/values/strings.xml | 48 +++++++----- .../labs/androidquran/AboutUsActivity.java | 61 +++++++++++++++ .../labs/androidquran/QuranActivity.java | 29 +++++-- .../labs/androidquran/QuranViewActivity.java | 10 ++- .../labs/androidquran/SettingsActivity.java | 46 ++++++++++++ .../common/ApplicationConstants.java | 8 +- .../labs/androidquran/common/QuranInfo.java | 43 ++++++++++- .../labs/androidquran/util/QuranSettings.java | 53 +++++++++++++ .../labs/androidquran/util/QuranUtils.java | 2 +- 17 files changed, 409 insertions(+), 73 deletions(-) create mode 100644 res/drawable/about.png create mode 100644 res/drawable/jump.png create mode 100644 res/drawable/settings.png create mode 100644 res/layout/about_us.xml create mode 100644 res/layout/settings.xml create mode 100644 res/menu/option_menu.xml create mode 100644 src/com/quran/labs/androidquran/AboutUsActivity.java create mode 100644 src/com/quran/labs/androidquran/SettingsActivity.java create mode 100644 src/com/quran/labs/androidquran/util/QuranSettings.java diff --git a/AndroidManifest.xml b/AndroidManifest.xml index c0567b3dbe..6b60d95412 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -1,27 +1,27 @@ - - - - - - - + package="com.quran.labs.androidquran" android:versionCode="1" + android:versionName="1.0"> + + + + + + + - - - - + + + + + + - - + + \ No newline at end of file diff --git a/gen/com/quran/labs/androidquran/R.java b/gen/com/quran/labs/androidquran/R.java index 313b28a398..a8dc080baa 100644 --- a/gen/com/quran/labs/androidquran/R.java +++ b/gen/com/quran/labs/androidquran/R.java @@ -11,43 +11,72 @@ public final class R { public static final class attr { } public static final class drawable { - public static final int icon=0x7f020000; - public static final int list=0x7f020001; - public static final int splash=0x7f020002; + public static final int about=0x7f020000; + public static final int icon=0x7f020001; + public static final int jump=0x7f020002; + public static final int list=0x7f020003; + public static final int settings=0x7f020004; + public static final int splash=0x7f020005; } public static final class id { - public static final int bgPageview=0x7f050004; - public static final int cancelButton=0x7f050001; - public static final int jumpButton=0x7f050002; - public static final int pageScrollView=0x7f050006; - public static final int page_field=0x7f050000; - public static final int pageview=0x7f050005; - public static final int splashview=0x7f050007; - public static final int surarow=0x7f050003; + public static final int bgPageview=0x7f06000b; + public static final int btnAboutBack=0x7f060005; + public static final int btnEmailUs=0x7f060006; + public static final int cancelButton=0x7f060008; + public static final int chkArbaicNames=0x7f06000e; + public static final int chkHideTitle=0x7f06000f; + public static final int jumpButton=0x7f060009; + public static final int linear=0x7f060000; + public static final int menu_item_about_us=0x7f060012; + public static final int menu_item_jump=0x7f060011; + public static final int menu_item_settings=0x7f060013; + public static final int pageScrollView=0x7f06000d; + public static final int page_field=0x7f060007; + public static final int pageview=0x7f06000c; + public static final int splashview=0x7f060010; + public static final int surarow=0x7f06000a; + public static final int txtAbout=0x7f060001; + public static final int txtCopyRights=0x7f060004; + public static final int txtDevelopedBy=0x7f060003; + public static final int txtSupport=0x7f060002; } public static final class layout { - public static final int jump_to=0x7f030000; - public static final int quran_error=0x7f030001; - public static final int quran_list=0x7f030002; - public static final int quran_row=0x7f030003; - public static final int quran_view=0x7f030004; - public static final int splash_screen=0x7f030005; + public static final int about_us=0x7f030000; + public static final int jump_to=0x7f030001; + public static final int quran_error=0x7f030002; + public static final int quran_list=0x7f030003; + public static final int quran_row=0x7f030004; + public static final int quran_view=0x7f030005; + public static final int settings=0x7f030006; + public static final int splash_screen=0x7f030007; + } + public static final class menu { + public static final int option_menu=0x7f050000; } public static final class string { + public static final int aboutUs=0x7f040015; public static final int app_name=0x7f040001; - public static final int cancel=0x7f04000e; + public static final int cancel=0x7f040010; + public static final int copyRights=0x7f040012; + public static final int developedBy=0x7f040011; public static final int downloadPrompt=0x7f040003; public static final int downloadPrompt_no=0x7f040005; public static final int downloadPrompt_ok=0x7f040004; public static final int downloadPrompt_title=0x7f040002; public static final int downloading_message=0x7f040007; public static final int downloading_title=0x7f040006; + public static final int email_subject=0x7f040013; + public static final int email_to=0x7f040014; public static final int errorString=0x7f040000; public static final int extracting_message=0x7f040009; public static final int extracting_title=0x7f040008; - public static final int go=0x7f04000d; - public static final int jump_dialog_title=0x7f04000b; + public static final int go=0x7f04000f; + public static final int hide_title=0x7f040017; + public static final int jump_dialog_title=0x7f04000d; + public static final int menu_about=0x7f04000b; public static final int menu_jump=0x7f04000a; - public static final int page_hint=0x7f04000c; + public static final int menu_settings=0x7f04000c; + public static final int page_hint=0x7f04000e; + public static final int use_arabic_names=0x7f040016; } } diff --git a/res/drawable/about.png b/res/drawable/about.png new file mode 100644 index 0000000000000000000000000000000000000000..fabc1fcb13579e87fe45a786ca9256167f3d03cd GIT binary patch literal 1330 zcmV-21cS_BQS0c3$i1S+t=vb%Hp-8-`jn?AMSCOdcL&Nug* z^L^*L%RnQeWnfQgn(e~=qNMB;D+A{+hAJ)$j2Vy7nR8=}%eP`E@tSRjCqmH}biN_lL`xv# zL=AZJk{|aDIT>?*HQ?+2yfFL5*b0``qKw3@N^JAd*;Ner7h-!o^-f`%D;+f+*E)c* zPRgC6!V(VQt@BS>*^%qxyuQ?d$z>fHi)p5KX3Az5dA5o}#VN>3j=|&b!c`_OSM2nh6P7{85?6CUK{6SI~>p>x*4>tLWmFmkER3os5CtepuW8u@79+PK*UHZ z#YNvziI8Sf(Rym*lRxw@}}x+$wX9&nYlL{BNK(ippIgP1;uGr`L2I{4L$xKUP`hOTOOx4 z`mF$Hy)gz>d-gGJ+MRjeegDf%~WB{qn-HoOhPG;mX|dFU3(X0q}G8 zG+0gh0B@?vMbJzUi^UoRQ^?$1QcOE>=y! zm98nUinc!9xHlJiXkDVp6jOn*)-e@ATa_KT>2~>kd~OBDx>m3^$0qwjFwyCv!0aQP zA;CrfcPGF+rylUe*WHMa0#Q(n^vmOsZEk3%mnU=sR8z z2To)s3O?(Ct9CmP)1}iS8LLpvr2|z}f&U=^Bs5&%$u*_GT39xj zWT6>075-)kDtvbaas8XUWYYu*@avNx4zzS4ry`FWqsJ+h8z=%m#mt{0^jQ7^R|3xUL{-$5HiN0u^k~zGs(<*=+Ji3=WMVG&KA^?tgr4W9a__h^ao)t5jE) zYUwEm4-7*e8!SiX(Voo%kRab)#Ez1KSPjyD>*Gq?JAQw20mLXfc@Zg@2N9UBLU;4M o%?A*}^Tk!#?KJ*4acAT5KU93vs|zLXzW@LL07*qoM6N<$f{P(@t^fc4 literal 0 HcmV?d00001 diff --git a/res/drawable/jump.png b/res/drawable/jump.png new file mode 100644 index 0000000000000000000000000000000000000000..34dc4c04e27406f8ea21aaf87ac2d6cf1e69741d GIT binary patch literal 1491 zcmV;^1uXiBP)5D#RI_*5#&dj~{oZ|+F5j+WXvlW`KwGKN~mG!17&4=6HUasOQ%)iUkbdIiC3du9XDX zQAWv6jWrm3-~vjwL((UTpXvqO&iTdjg{02tOL5YvCkxBwFI-q+aI-#)_`Bg%>>x~q$m?L1(qSp!@*iX`vu;@0rbs`RmtiFb?@U&^dAqs!X9O3_Q`J{E^K#Ydzt0 zjE!z<-cNr1M*>Q>Lt6e!g}tb-zc4lm4Dz=luKi(C_<=39MDr)*!S4bvqCjVd^B zr@zZ*iO&tgUA|#hlGAyP(U}XFlUDGY%KW}z`@lytAqN0nr1gVCLnO(V7KVEQPMG6U zz!;YnBNYH3Y9~H6_p9e`mn$=&Jo`s*VDZPl<>>?BJ) z2H{(yDPhx!#Vd_^eHh4Dp>hueujips~s+ujF@2I$c%i(+iD~0l4kF3PROb;Q#=Em+(~9YOsKSv)11x zi5ht8!hUiD&|JmCYe61Q(B*aPQLjz6S)YyBGRtsfV6gAS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about_us.xml new file mode 100644 index 0000000000..dd06c7d878 --- /dev/null +++ b/res/layout/about_us.xml @@ -0,0 +1,43 @@ + + + + + + + + + + + +