Skip to content

Commit

Permalink
init project
Browse files Browse the repository at this point in the history
  • Loading branch information
Nam Đẹp Trai committed Jun 13, 2015
1 parent 3f7f2f0 commit c1190fe
Show file tree
Hide file tree
Showing 163 changed files with 21,511 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Built application files
*.apk
*.ap_

.DS_Store
# Files for the Dalvik VM
*.dex

Expand All @@ -11,6 +11,8 @@
# Generated files
bin/
gen/
jni/
obj/

# Gradle files
.gradle/
Expand Down
33 changes: 33 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>QDict</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.ApkBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
45 changes: 45 additions & 0 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.annie.dictionary"
android:versionCode="20150613"
android:versionName="@string/app_version" >

<uses-sdk
android:minSdkVersion="9"
android:targetSdkVersion="16" />

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />

<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppOrangeTheme" >
<activity android:name=".MainActivity" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".SettingsActivity"
android:exported="false"
android:label="@string/settings_lable"
android:theme="@style/AppOrangeThemeWithActionBar" />
<service android:name=".service.QDictService" >
</service>

<receiver
android:name=".service.QDictReceiver"
android:enabled="true"
android:exported="true" >
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
</application>

</manifest>
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# QDict
This is an open source Android dictionary application which support 'stardict' format dictionaries.
Playstore: https://play.google.com/store/apps/details?id=com.annie.dictionary
Binary file added assets/fonts/AWLPhonetics3U.TTF
Binary file not shown.
Binary file added assets/fonts/Antipasto.otf
Binary file not shown.
Binary file added assets/fonts/ComicSansMS.ttf
Binary file not shown.
Binary file added assets/fonts/KPhonetic.ttf
Binary file not shown.
Binary file added assets/fonts/Roboto.ttf
Binary file not shown.
Binary file added assets/fonts/TimesNewRoman.ttf
Binary file not shown.
Binary file added assets/fonts/Unicode.ttf
Binary file not shown.
10 changes: 10 additions & 0 deletions assets/whatsnew.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
SVN Dictionaries.

* Version 1.0.4 [24/11/2014]
- Improvements.

* Version 1.0.3 [22/11/2014]
- Improvements and bug fixes.
- Added speech to text.

* Version 1.0.2 [20/11/2014]
Binary file added ic_launcher-web.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added libs/android-support-v4.jar
Binary file not shown.
Binary file added libs/armeabi/libqdicteng.so
Binary file not shown.
Binary file added libs/nineoldandroids-2.4.0.jar
Binary file not shown.
15 changes: 15 additions & 0 deletions lint.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<lint>
<issue id="ClickableViewAccessibility" severity="ignore" />
<issue id="HandlerLeak" severity="ignore" />
<issue id="InflateParams" severity="ignore" />
<issue id="InlinedApi" severity="ignore" />
<issue id="NewApi" severity="ignore" />
<issue id="Recycle">
<ignore path="src/com/annie/dictionary/MainActivity.java" />
</issue>
<issue id="SetJavaScriptEnabled" severity="ignore" />
<issue id="UseSparseArrays">
<ignore path="src/com/annie/dictionary/frags/RecentFragment.java" />
</issue>
</lint>
47 changes: 47 additions & 0 deletions proguard.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
-optimizationpasses 5
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontpreverify
-verbose
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*

-keep public class * extends android.app.Activity
-keep public class * extends android.app.Application
-keep public class * extends android.app.Service
-keep public class * extends android.content.BroadcastReceiver
-keep public class * extends android.content.ContentProvider
-keep public class * extends android.app.backup.BackupAgentHelper
-keep public class * extends android.preference.Preference
-keep public class com.android.vending.licensing.ILicensingService
-keep public class * extends android.support.v4.app.Fragment
-keep public class * extends android.support.v7.app.ActionBarActivity

-keep class com.nineoldandroids.animation.** { *; }
-keep interface com.nineoldandroids.animation.** { *; }
-keep class com.nineoldandroids.view.** { *; }
-keep interface com.nineoldandroids.view.** { *; }

-keepclasseswithmembernames class * {
native <methods>;
}
-keepclassmembers class com.annie.dictionary.QDictEng {
private static void lookupProgressCB(int);
}
-keepclasseswithmembernames class * {
public <init>(android.content.Context, android.util.AttributeSet);
}

-keepclasseswithmembernames class * {
public <init>(android.content.Context, android.util.AttributeSet, int);
}

-keepclassmembers enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}

-keep class * implements android.os.Parcelable {
public static final android.os.Parcelable$Creator *;
}
-dontwarn android.support.**
-dontwarn com.nineoldandroids.**
17 changes: 17 additions & 0 deletions project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system edit
# "ant.properties", and override values to adapt the script to your
# project structure.
#
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt

# Project target.
target=android-21
android.library.reference.1=../Appcompat
android.library.reference.2=../MadmanLib
proguard.config=proguard.cfg
9 changes: 9 additions & 0 deletions res/anim/push_left_in.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/accelerate_decelerate_interpolator">

<translate android:fromXDelta="100%p" android:toXDelta="0" android:duration="500"/>
<!--
<alpha android:fromAlpha="0.0" android:toAlpha="1.0" android:duration="300" />
-->
</set>
23 changes: 23 additions & 0 deletions res/anim/push_left_out.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2007 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<set xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/accelerate_decelerate_interpolator">
<translate android:fromXDelta="0" android:toXDelta="-100%p" android:duration="500"/>
<!--
<alpha android:fromAlpha="1.0" android:toAlpha="0.0" android:duration="300" />
-->
</set>
8 changes: 8 additions & 0 deletions res/anim/push_right_in.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/accelerate_decelerate_interpolator">
<translate android:fromXDelta="-100%p" android:toXDelta="0" android:duration="500"/>
<!--
<alpha android:fromAlpha="1.0" android:toAlpha="1.0" android:duration="300" />
-->
</set>
8 changes: 8 additions & 0 deletions res/anim/push_right_out.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/accelerate_decelerate_interpolator">
<translate android:fromXDelta="0" android:toXDelta="100%p" android:duration="500" />
<!--
<alpha android:fromAlpha="1.0" android:toAlpha="0.0" android:duration="300" />
-->
</set>
Binary file added res/drawable-hdpi/drag.9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xhdpi/favorite.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xhdpi/favorite_orange.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xhdpi/ic_about_white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xhdpi/ic_back.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xhdpi/ic_back_orange.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xhdpi/ic_back_white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xhdpi/ic_close.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xhdpi/ic_dlg_close.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xhdpi/ic_dlg_close_orange.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xhdpi/ic_facebook.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xhdpi/ic_favorite.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xhdpi/ic_guide.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xhdpi/ic_menu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xhdpi/ic_menu_orange.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xhdpi/ic_menu_white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xhdpi/ic_recent.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xhdpi/ic_recycle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xhdpi/ic_recycle_orange.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xhdpi/ic_recycle_white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xhdpi/ic_resize_window.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xhdpi/ic_resize_window_orange.png
Binary file added res/drawable-xhdpi/ic_search.png
Binary file added res/drawable-xhdpi/ic_select_dict.png
Binary file added res/drawable-xhdpi/ic_setting.png
Binary file added res/drawable-xhdpi/ic_share.png
Binary file added res/drawable-xhdpi/ic_speak.png
Binary file added res/drawable-xhdpi/ic_speak_orange.png
Binary file added res/drawable-xhdpi/ic_textfield_search.9.png
Binary file added res/drawable-xhdpi/ic_voice.png
Binary file added res/drawable-xhdpi/ic_voice_orange.png
Binary file added res/drawable-xhdpi/ic_wordslist.png
Binary file added res/drawable-xhdpi/ic_wordslist_orange.png
Binary file added res/drawable-xhdpi/unfavorite.png
Binary file added res/drawable-xxhdpi/ic_launcher.png
Binary file added res/drawable-xxxhdpi/ic_launcher.png
8 changes: 8 additions & 0 deletions res/drawable/above_shadow.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<gradient
android:startColor="#20000000"
android:endColor="@android:color/transparent"
android:angle="90" >
</gradient>
</shape>
25 changes: 25 additions & 0 deletions res/drawable/action_bacground.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2012 Muhammad Tayyab Akram <dear_tayyab@yahoo.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<selector xmlns:android="http://schemas.android.com/apk/res/android">

<item android:state_selected="true" android:drawable="@drawable/ic_action_pressed"/>
<item android:state_focused="true" android:drawable="@drawable/ic_action_pressed"/>
<item android:state_pressed="true" android:drawable="@drawable/ic_action_pressed"/>
<item android:drawable="@android:color/transparent"/>

</selector>
9 changes: 9 additions & 0 deletions res/drawable/background_toast.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle" >

<solid android:color="@color/mmt_light_blue_900" />

<corners android:radius="5dp" />

</shape>
Binary file added res/drawable/bamboo.jpg
8 changes: 8 additions & 0 deletions res/drawable/below_shadow.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<gradient
android:startColor="#20000000"
android:endColor="@android:color/transparent"
android:angle="270" >
</gradient>
</shape>
Binary file added res/drawable/border.9.png
8 changes: 8 additions & 0 deletions res/drawable/color_cursor.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" >

<size android:width="1dp" />

<solid android:color="@color/mmt_grey_500" />

</shape>
Binary file added res/drawable/focus.9.png
Binary file added res/drawable/focus_orange.9.png
Binary file added res/drawable/ic_action_pressed.9.png
Binary file added res/drawable/ic_item_background.9.png
9 changes: 9 additions & 0 deletions res/drawable/shadow.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" >

<gradient
android:endColor="#33000000"
android:centerColor="#11000000"
android:startColor="#00000000" />

</shape>
28 changes: 28 additions & 0 deletions res/layout-finger/drop_down_list_item.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@android:drawable/list_selector_background"
android:gravity="center_vertical"
android:orientation="horizontal" >

<ImageView
android:id="@+id/icon"
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_margin="4dp"
android:contentDescription="Icon"
tools:ignore="HardcodedText" />

<TextView
android:id="@+id/description"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="4dp"
android:text="Description"
android:textColor="@color/mmt_black"
android:textAppearance="?android:attr/textAppearanceMedium"
tools:ignore="HardcodedText" />

</LinearLayout>
Loading

0 comments on commit c1190fe

Please sign in to comment.