-
Notifications
You must be signed in to change notification settings - Fork 893
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
About US - Full Screen Mode - Arabic Sura Names
- Loading branch information
Hussein Maher
committed
Aug 10, 2010
1 parent
180946c
commit 7bea783
Showing
17 changed files
with
409 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="com.quran.labs.androidquran" | ||
android:versionCode="1" | ||
android:versionName="1.0"> | ||
<application android:icon="@drawable/icon" android:label="@string/app_name" | ||
android:debuggable="true"> | ||
<activity android:name=".QuranActivity" | ||
android:label="@string/app_name" | ||
android:configChanges="keyboardHidden|orientation"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
package="com.quran.labs.androidquran" android:versionCode="1" | ||
android:versionName="1.0"> | ||
<application android:icon="@drawable/icon" android:label="@string/app_name" | ||
android:debuggable="true"> | ||
<activity android:name=".QuranActivity" android:label="@string/app_name" | ||
android:configChanges="keyboardHidden|orientation"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
|
||
<activity android:name=".QuranDataActivity"></activity> | ||
<activity android:name=".QuranViewActivity"></activity> | ||
<service android:enabled="true" android:name=".service.QuranDataService" /> | ||
</application> | ||
<uses-sdk android:minSdkVersion="3" android:targetSdkVersion="7" /> | ||
<activity android:name=".AboutUsActivity"></activity> | ||
<activity android:name=".QuranViewActivity"></activity> | ||
<service android:enabled="true" android:name=".service.QuranDataService" /> | ||
<activity android:name=".SettingsActivity"></activity> | ||
</application> | ||
<uses-sdk android:minSdkVersion="3" android:targetSdkVersion="7" /> | ||
|
||
<uses-permission android:name="android.permission.INTERNET"/> | ||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> | ||
<uses-permission android:name="android.permission.INTERNET" /> | ||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> | ||
|
||
|
||
</manifest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:orientation="vertical" android:layout_width="fill_parent" | ||
android:layout_height="fill_parent" android:background="@drawable/list"> | ||
|
||
<LinearLayout android:id="@+id/linear" | ||
android:layout_width="fill_parent" android:layout_height="wrap_content" | ||
android:orientation="vertical"> | ||
<TextView android:layout_width="fill_parent" | ||
android:layout_height="fill_parent" android:visibility="visible" | ||
android:textAppearance="?android:attr/textAppearanceSmall" | ||
android:textColor="#FFFFFF" android:textStyle="bold" android:id="@+id/txtAbout" | ||
android:singleLine="false" android:scrollbarAlwaysDrawVerticalTrack="true" | ||
android:scrollbars="vertical" android:maxLines="16" android:text="@string/aboutUs" | ||
android:padding="10dip" android:lineSpacingExtra="4dip" /> | ||
<TextView android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" android:visibility="visible" | ||
android:textAppearance="?android:attr/textAppearanceSmall" | ||
android:textStyle="bold" android:id="@+id/txtSupport" | ||
android:singleLine="false" android:textColor="#CCCCCC" android:text="" /> | ||
|
||
</LinearLayout> | ||
<TextView android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" android:linksClickable="true" | ||
android:id="@+id/txtDevelopedBy" android:text="@string/developedBy" | ||
android:textSize="12dip" android:layout_alignParentBottom="true" | ||
android:textColor="#FFFFFF" android:paddingLeft="10dip" /> | ||
|
||
<TextView android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" android:linksClickable="true" | ||
android:id="@+id/txtCopyRights" android:text="@string/copyRights" | ||
android:textSize="12dip" android:layout_above="@id/txtDevelopedBy" | ||
android:textColor="#FFFFFF" android:paddingLeft="10dip" /> | ||
<Button android:layout_width="300dip" android:layout_height="wrap_content" | ||
android:id="@+id/btnAboutBack" android:text="Back" | ||
android:layout_centerHorizontal="true" android:layout_above="@id/txtCopyRights" | ||
android:visibility="visible" /> | ||
<Button android:layout_width="300dip" android:layout_height="wrap_content" | ||
android:id="@+id/btnEmailUs" android:text="Email Quran Android" | ||
android:layout_centerHorizontal="true" android:layout_above="@id/btnAboutBack" | ||
android:visibility="visible" /> | ||
|
||
</RelativeLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:orientation="vertical" | ||
android:layout_width="fill_parent" | ||
android:layout_height="fill_parent" | ||
android:background="@drawable/list" | ||
> | ||
<CheckBox android:id="@+id/chkArbaicNames" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="@string/use_arabic_names" /> | ||
|
||
<CheckBox android:id="@+id/chkHideTitle" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="@string/hide_title" /> | ||
</LinearLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<menu xmlns:android="http://schemas.android.com/apk/res/android"> | ||
|
||
<item android:id="@+id/menu_item_jump" | ||
android:icon="@drawable/jump" android:title="@string/menu_jump"/> | ||
|
||
<item android:id="@+id/menu_item_about_us" | ||
android:icon="@drawable/about" android:title="@string/menu_about"/> | ||
|
||
<item android:id="@+id/menu_item_settings" | ||
android:icon="@drawable/settings" android:title="@string/menu_settings"/> | ||
|
||
</menu> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,34 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="errorString">Could not download Quran Pages!</string> | ||
<string name="app_name">Quran</string> | ||
<string name="downloadPrompt_title">Download Required Files?</string> | ||
<string name="downloadPrompt">For optimal performance, some files must be downloaded to the sd card. | ||
If you choose not to do this now, each page will take significantly longer to load. Would you | ||
like to download the required files now?</string> | ||
<string name="downloadPrompt_ok">Yes</string> | ||
<string name="downloadPrompt_no">No</string> | ||
<string name="downloading_title">Downloading...</string> | ||
<string name="downloading_message">Please wait for the files to download.</string> | ||
<string name="extracting_title">Processing...</string> | ||
<string name="extracting_message">Please wait the files are processed.</string> | ||
<string name="menu_jump">Jump</string> | ||
<string name="jump_dialog_title">Jump To Page</string> | ||
<string name="page_hint">Page Number</string> | ||
<string name="go">Go</string> | ||
<string name="cancel">Cancel</string> | ||
<string name="errorString">Could not download Quran Pages!</string> | ||
<string name="app_name">Quran Android</string> | ||
<string name="downloadPrompt_title">Download Required Files?</string> | ||
<string name="downloadPrompt">For optimal performance, some files must be | ||
downloaded to the sd card. | ||
If you choose not to do this now, each page will take significantly | ||
longer to load. Would you | ||
like to download the required files now?</string> | ||
<string name="downloadPrompt_ok">Yes</string> | ||
<string name="downloadPrompt_no">No</string> | ||
<string name="downloading_title">Downloading...</string> | ||
<string name="downloading_message">Please wait for the files to download.</string> | ||
<string name="extracting_title">Processing...</string> | ||
<string name="extracting_message">Please wait the files are processed.</string> | ||
<string name="menu_jump">Jump</string> | ||
<string name="menu_about">About Us</string> | ||
<string name="menu_settings">Settings</string> | ||
<string name="jump_dialog_title">Jump To Page</string> | ||
<string name="page_hint">Page Number</string> | ||
<string name="go">Go</string> | ||
<string name="cancel">Cancel</string> | ||
<string name="developedBy">Quran Android - Muslim Developers</string> | ||
<string name="copyRights">Copy Rights - All Muslims</string> | ||
<string name="email_subject">Feedback</string> | ||
<string name="email_to">[email protected]</string> | ||
<string name="aboutUs">Quran Android is a free, open source Quran | ||
application for Android.\nUpcoming features include:\n- Bookmarks.\n- | ||
Translations.\n- Search.\n- And more..\n\nLa tansawna men saleh el | ||
doaa.</string> | ||
<string name="use_arabic_names">Use arabic names</string> | ||
<string name="hide_title">Full Screen Mode.\nHave a larger view area for pages.</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
package com.quran.labs.androidquran; | ||
|
||
import android.app.Activity; | ||
import android.content.Intent; | ||
import android.os.Bundle; | ||
import android.text.method.ScrollingMovementMethod; | ||
import android.view.View; | ||
import android.view.View.OnClickListener; | ||
import android.widget.Button; | ||
import android.widget.TextView; | ||
|
||
public class AboutUsActivity extends Activity implements OnClickListener { | ||
protected Button btnBack; | ||
protected Button btnEmailUs; | ||
protected TextView txtDevelopedBy; | ||
protected TextView txtCopyRights; | ||
protected TextView txtAbout; | ||
|
||
public void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.about_us); | ||
btnBack = (Button)findViewById(R.id.btnAboutBack); | ||
btnBack.setOnClickListener(this); | ||
|
||
btnEmailUs = (Button)findViewById(R.id.btnEmailUs); | ||
btnEmailUs.setOnClickListener(this); | ||
|
||
txtDevelopedBy = (TextView)findViewById(R.id.txtDevelopedBy); | ||
txtDevelopedBy.setOnClickListener(this); | ||
|
||
txtCopyRights = (TextView)findViewById(R.id.txtCopyRights); | ||
txtCopyRights.setOnClickListener(this); | ||
|
||
txtAbout = (TextView)findViewById(R.id.txtAbout); | ||
txtAbout.setMovementMethod(new ScrollingMovementMethod()); | ||
|
||
if (getWindowManager().getDefaultDisplay().getHeight() < | ||
getWindowManager().getDefaultDisplay().getWidth()) | ||
txtAbout.setMaxLines(6); | ||
else | ||
txtAbout.setMaxLines(16); | ||
} | ||
|
||
@Override | ||
public void onClick(View v) { | ||
switch (v.getId()) { | ||
case R.id.btnAboutBack: | ||
finish(); | ||
break; | ||
case R.id.btnEmailUs: | ||
final Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND); | ||
emailIntent.setType("plain/text"); | ||
emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, getString(R.string.email_subject)); | ||
emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, new String[]{getString(R.string.email_to)}); | ||
startActivity(Intent.createChooser(emailIntent, "Send mail...")); | ||
break; | ||
default: | ||
break; | ||
} | ||
} | ||
} |
Oops, something went wrong.