Commit 19fb24bdb38c90c4ac57636836db382d0400cd96

Authored by xujie
0 parents
Exists in master

create the project of dict entry

Showing 35 changed files with 402 additions and 0 deletions   Show diff stats
ContemporaryChineseDict/.classpath
... ... @@ -0,0 +1,9 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<classpath>
  3 + <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
  4 + <classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
  5 + <classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
  6 + <classpathentry kind="src" path="src"/>
  7 + <classpathentry kind="src" path="gen"/>
  8 + <classpathentry kind="output" path="bin/classes"/>
  9 +</classpath>
... ...
ContemporaryChineseDict/.project
... ... @@ -0,0 +1,33 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<projectDescription>
  3 + <name>ContemporaryChineseDict</name>
  4 + <comment></comment>
  5 + <projects>
  6 + </projects>
  7 + <buildSpec>
  8 + <buildCommand>
  9 + <name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
  10 + <arguments>
  11 + </arguments>
  12 + </buildCommand>
  13 + <buildCommand>
  14 + <name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
  15 + <arguments>
  16 + </arguments>
  17 + </buildCommand>
  18 + <buildCommand>
  19 + <name>org.eclipse.jdt.core.javabuilder</name>
  20 + <arguments>
  21 + </arguments>
  22 + </buildCommand>
  23 + <buildCommand>
  24 + <name>com.android.ide.eclipse.adt.ApkBuilder</name>
  25 + <arguments>
  26 + </arguments>
  27 + </buildCommand>
  28 + </buildSpec>
  29 + <natures>
  30 + <nature>com.android.ide.eclipse.adt.AndroidNature</nature>
  31 + <nature>org.eclipse.jdt.core.javanature</nature>
  32 + </natures>
  33 +</projectDescription>
... ...
ContemporaryChineseDict/.settings/org.eclipse.jdt.core.prefs
... ... @@ -0,0 +1,4 @@
  1 +eclipse.preferences.version=1
  2 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
  3 +org.eclipse.jdt.core.compiler.compliance=1.6
  4 +org.eclipse.jdt.core.compiler.source=1.6
... ...
ContemporaryChineseDict/AndroidManifest.xml
... ... @@ -0,0 +1,88 @@
  1 +<?xml version="1.0" encoding="utf-8"?>
  2 +<manifest xmlns:android="http://schemas.android.com/apk/res/android"
  3 + package="com.antroid.dictentry"
  4 + android:versionCode="1"
  5 + android:versionName="1.0.0" >
  6 +
  7 + <uses-sdk
  8 + android:minSdkVersion="9"
  9 + android:targetSdkVersion="16" />
  10 +
  11 + <application
  12 + android:icon="@drawable/icon"
  13 + android:label="@string/app_name" >
  14 + <activity
  15 + android:name="com.antroid.contemporarychinesedict.MainFrameActivity"
  16 + android:icon="@drawable/dict03"
  17 + android:label="@string/app_name_03"
  18 + android:screenOrientation="sensor" >
  19 + <intent-filter>
  20 + <action android:name="android.intent.action.MAIN" />
  21 +
  22 + <category android:name="android.intent.category.LAUNCHER" />
  23 + </intent-filter>
  24 + </activity>
  25 +
  26 + <activity
  27 + android:name="com.antroid.chengyudict.MainFrameActivity"
  28 + android:icon="@drawable/dict04"
  29 + android:label="@string/app_name_04"
  30 + android:screenOrientation="sensor" >
  31 + <intent-filter>
  32 + <action android:name="android.intent.action.MAIN" />
  33 +
  34 + <category android:name="android.intent.category.LAUNCHER" />
  35 + </intent-filter>
  36 + </activity>
  37 +
  38 + <activity
  39 + android:name="com.antroid.chinesetoenglishdict.MainFrameActivity"
  40 + android:icon="@drawable/dict02"
  41 + android:label="@string/app_name_02"
  42 + android:screenOrientation="sensor" >
  43 + <intent-filter>
  44 + <action android:name="android.intent.action.MAIN" />
  45 +
  46 + <category android:name="android.intent.category.LAUNCHER" />
  47 + </intent-filter>
  48 + </activity>
  49 +
  50 + <activity
  51 + android:name="com.antroid.guhanyudict.MainFrameActivity"
  52 + android:icon="@drawable/dict01"
  53 + android:label="@string/app_name_01"
  54 + android:screenOrientation="sensor" >
  55 + <intent-filter>
  56 + <action android:name="android.intent.action.MAIN" />
  57 +
  58 + <category android:name="android.intent.category.LAUNCHER" />
  59 + </intent-filter>
  60 + </activity>
  61 +
  62 + <activity
  63 + android:name="com.antroid.newenglishtochinese.MainFrameActivity"
  64 + android:icon="@drawable/dict06"
  65 + android:label="@string/app_name_06"
  66 + android:screenOrientation="sensor" >
  67 + <intent-filter>
  68 + <action android:name="android.intent.action.MAIN" />
  69 +
  70 + <category android:name="android.intent.category.LAUNCHER" />
  71 + </intent-filter>
  72 + </activity>
  73 +
  74 + <activity
  75 + android:name="com.antroid.xinhuadict.MainFrameActivity"
  76 + android:icon="@drawable/dict05"
  77 + android:label="@string/app_name_05"
  78 + android:screenOrientation="sensor" >
  79 + <intent-filter>
  80 + <action android:name="android.intent.action.MAIN" />
  81 +
  82 + <category android:name="android.intent.category.LAUNCHER" />
  83 + </intent-filter>
  84 + </activity>
  85 +
  86 + </application>
  87 +
  88 +</manifest>
0 89 \ No newline at end of file
... ...
ContemporaryChineseDict/proguard.cfg
... ... @@ -0,0 +1,40 @@
  1 +-optimizationpasses 5
  2 +-dontusemixedcaseclassnames
  3 +-dontskipnonpubliclibraryclasses
  4 +-dontpreverify
  5 +-verbose
  6 +-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
  7 +
  8 +-keep public class * extends android.app.Activity
  9 +-keep public class * extends android.app.Application
  10 +-keep public class * extends android.app.Service
  11 +-keep public class * extends android.content.BroadcastReceiver
  12 +-keep public class * extends android.content.ContentProvider
  13 +-keep public class * extends android.app.backup.BackupAgentHelper
  14 +-keep public class * extends android.preference.Preference
  15 +-keep public class com.android.vending.licensing.ILicensingService
  16 +
  17 +-keepclasseswithmembernames class * {
  18 + native <methods>;
  19 +}
  20 +
  21 +-keepclasseswithmembers class * {
  22 + public <init>(android.content.Context, android.util.AttributeSet);
  23 +}
  24 +
  25 +-keepclasseswithmembers class * {
  26 + public <init>(android.content.Context, android.util.AttributeSet, int);
  27 +}
  28 +
  29 +-keepclassmembers class * extends android.app.Activity {
  30 + public void *(android.view.View);
  31 +}
  32 +
  33 +-keepclassmembers enum * {
  34 + public static **[] values();
  35 + public static ** valueOf(java.lang.String);
  36 +}
  37 +
  38 +-keep class * implements android.os.Parcelable {
  39 + public static final android.os.Parcelable$Creator *;
  40 +}
... ...
ContemporaryChineseDict/project.properties
... ... @@ -0,0 +1,14 @@
  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
... ...
ContemporaryChineseDict/res/drawable-hdpi/dict01.png

12.6 KB

ContemporaryChineseDict/res/drawable-hdpi/dict02.png

11.1 KB

ContemporaryChineseDict/res/drawable-hdpi/dict03.png

11.7 KB

ContemporaryChineseDict/res/drawable-hdpi/dict04.png

12.4 KB

ContemporaryChineseDict/res/drawable-hdpi/dict05.png

10.8 KB

ContemporaryChineseDict/res/drawable-hdpi/dict06.png

10.3 KB

ContemporaryChineseDict/res/drawable-hdpi/icon.png

5.71 KB

ContemporaryChineseDict/res/drawable-mdpi/dict01.png

12.6 KB

ContemporaryChineseDict/res/drawable-mdpi/dict02.png

11.1 KB

ContemporaryChineseDict/res/drawable-mdpi/dict03.png

11.7 KB

ContemporaryChineseDict/res/drawable-mdpi/dict04.png

12.4 KB

ContemporaryChineseDict/res/drawable-mdpi/dict05.png

10.8 KB

ContemporaryChineseDict/res/drawable-mdpi/dict06.png

10.3 KB

ContemporaryChineseDict/res/drawable-mdpi/icon.png

5.71 KB

ContemporaryChineseDict/res/drawable-xhdpi/dict01.png

12.6 KB

ContemporaryChineseDict/res/drawable-xhdpi/dict02.png

11.1 KB

ContemporaryChineseDict/res/drawable-xhdpi/dict03.png

11.7 KB

ContemporaryChineseDict/res/drawable-xhdpi/dict04.png

12.4 KB

ContemporaryChineseDict/res/drawable-xhdpi/dict05.png

10.8 KB

ContemporaryChineseDict/res/drawable-xhdpi/dict06.png

10.3 KB

ContemporaryChineseDict/res/drawable-xhdpi/icon.png

5.71 KB

ContemporaryChineseDict/res/layout/main.xml
... ... @@ -0,0 +1,12 @@
  1 +<?xml version="1.0" encoding="utf-8"?>
  2 +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3 + android:orientation="vertical"
  4 + android:layout_width="fill_parent"
  5 + android:layout_height="fill_parent"
  6 + >
  7 +<TextView
  8 + android:layout_width="fill_parent"
  9 + android:layout_height="wrap_content"
  10 + android:text="@string/hello"
  11 + />
  12 +</LinearLayout>
... ...
ContemporaryChineseDict/res/values/strings.xml
... ... @@ -0,0 +1,17 @@
  1 +<?xml version="1.0" encoding="utf-8"?>
  2 +<resources>
  3 +
  4 + <string name="hello">Hello World, MainFrameActivity!</string>
  5 + <string name="app_name">词典</string>
  6 + <string name="app_name_01">古汉语词典</string>
  7 + <string name="app_name_02">汉英大词典</string>
  8 + <string name="app_name_03">现代汉语词典</string>
  9 + <string name="app_name_04">中华成语词典</string>
  10 + <string name="app_name_05">新华字典</string>
  11 + <string name="app_name_06">新英汉词典</string>
  12 + <string name="title">提示</string>
  13 + <string name="msg">没有安装主程序</string>
  14 + <string name="ok">确定</string>
  15 +
  16 +</resources>
  17 +<!-- 2013/08/13 新增对横竖屏的支持 -->
... ...
ContemporaryChineseDict/src/com/antroid/chengyudict/MainFrameActivity.java
... ... @@ -0,0 +1,31 @@
  1 +package com.antroid.chengyudict;
  2 +
  3 +import com.antroid.dictentry.R;
  4 +
  5 +import android.app.Activity;
  6 +import android.content.ComponentName;
  7 +import android.content.Intent;
  8 +import android.os.Bundle;
  9 +
  10 +public class MainFrameActivity extends Activity {
  11 + /** Called when the activity is first created. */
  12 + @Override
  13 + public void onCreate(Bundle savedInstanceState) {
  14 + super.onCreate(savedInstanceState);
  15 + setContentView(R.layout.main);
  16 +
  17 + Intent intent = new Intent();
  18 + intent.putExtra("isFixDict", true);//固定词典(牛津,版权,多国语)
  19 + intent.putExtra("dictId", 5);//词典ID
  20 + intent.putExtra("wordHead", "");//查询的单词
  21 + intent.putExtra("dictPath", "");//词典路径
  22 + intent.putExtra("wordId", 0);//词典序ID
  23 + intent.putExtra("history", true);
  24 + intent.putExtra("dictFullName", getString(R.string.app_name_04));
  25 + intent.setComponent(new ComponentName("com.antroid.dict.activity",
  26 + "com.antroid.dict.activity.DictStart"));
  27 + startActivity(intent);
  28 + finish();
  29 +
  30 + }
  31 +}
0 32 \ No newline at end of file
... ...
ContemporaryChineseDict/src/com/antroid/chinesetoenglishdict/MainFrameActivity.java
... ... @@ -0,0 +1,30 @@
  1 +package com.antroid.chinesetoenglishdict;
  2 +
  3 +import com.antroid.dictentry.R;
  4 +
  5 +import android.app.Activity;
  6 +import android.content.ComponentName;
  7 +import android.content.Intent;
  8 +import android.os.Bundle;
  9 +
  10 +public class MainFrameActivity extends Activity {
  11 + /** Called when the activity is first created. */
  12 + @Override
  13 + public void onCreate(Bundle savedInstanceState) {
  14 + super.onCreate(savedInstanceState);
  15 + setContentView(R.layout.main);
  16 +
  17 + Intent intent = new Intent();
  18 + intent.putExtra("isFixDict", true);//固定词典(牛津,版权,多国语)
  19 + intent.putExtra("dictId", 3);//词典ID
  20 + intent.putExtra("wordHead", "");//查询的单词
  21 + intent.putExtra("dictPath", "");//词典路径
  22 + intent.putExtra("wordId", 0);//词典序ID
  23 + intent.putExtra("history", true);
  24 + intent.putExtra("dictFullName", getString(R.string.app_name_02));
  25 + intent.setComponent(new ComponentName("com.antroid.dict.activity",
  26 + "com.antroid.dict.activity.DictStart"));
  27 + startActivity(intent);
  28 + finish();
  29 + }
  30 +}
0 31 \ No newline at end of file
... ...
ContemporaryChineseDict/src/com/antroid/contemporarychinesedict/MainFrameActivity.java
... ... @@ -0,0 +1,30 @@
  1 +package com.antroid.contemporarychinesedict;
  2 +
  3 +import com.antroid.dictentry.R;
  4 +
  5 +import android.app.Activity;
  6 +import android.content.ComponentName;
  7 +import android.content.Intent;
  8 +import android.os.Bundle;
  9 +
  10 +public class MainFrameActivity extends Activity {
  11 + /** Called when the activity is first created. */
  12 + @Override
  13 + public void onCreate(Bundle savedInstanceState) {
  14 + super.onCreate(savedInstanceState);
  15 + setContentView(R.layout.main);
  16 +
  17 + Intent intent = new Intent();
  18 + intent.putExtra("isFixDict", true);//固定词典(牛津,版权,多国语)
  19 + intent.putExtra("dictId", 2);//词典ID
  20 + intent.putExtra("wordHead", "");//查询的单词
  21 + intent.putExtra("dictPath", "");//词典路径
  22 + intent.putExtra("wordId", 0);//词典序ID
  23 + intent.putExtra("history", true);
  24 + intent.putExtra("dictFullName", getString(R.string.app_name_03));
  25 + intent.setComponent(new ComponentName("com.antroid.dict.activity",
  26 + "com.antroid.dict.activity.DictStart"));
  27 + startActivity(intent);
  28 + finish();
  29 + }
  30 +}
0 31 \ No newline at end of file
... ...
ContemporaryChineseDict/src/com/antroid/guhanyudict/MainFrameActivity.java
... ... @@ -0,0 +1,32 @@
  1 +package com.antroid.guhanyudict;
  2 +
  3 +
  4 +import com.antroid.dictentry.R;
  5 +
  6 +import android.app.Activity;
  7 +import android.content.ComponentName;
  8 +import android.content.Intent;
  9 +import android.os.Bundle;
  10 +
  11 +public class MainFrameActivity extends Activity {
  12 + /** Called when the activity is first created. */
  13 + @Override
  14 + public void onCreate(Bundle savedInstanceState) {
  15 + super.onCreate(savedInstanceState);
  16 + setContentView(R.layout.main);
  17 +
  18 + Intent intent = new Intent();
  19 + intent.putExtra("isFixDict", true);//固定词典(牛津,版权,多国语)
  20 + intent.putExtra("dictId", 6);//词典ID
  21 + intent.putExtra("wordHead", "");//查询的单词
  22 + intent.putExtra("dictPath", "");//词典路径
  23 + intent.putExtra("wordId", 0);//词典序ID
  24 + intent.putExtra("history", true);
  25 + intent.putExtra("dictFullName", getString(R.string.app_name_01));
  26 + intent.setComponent(new ComponentName("com.antroid.dict.activity",
  27 + "com.antroid.dict.activity.DictStart"));
  28 + startActivity(intent);
  29 + finish();
  30 + finish();
  31 + }
  32 +}
0 33 \ No newline at end of file
... ...
ContemporaryChineseDict/src/com/antroid/newenglishtochinese/MainFrameActivity.java
... ... @@ -0,0 +1,32 @@
  1 +package com.antroid.newenglishtochinese;
  2 +
  3 +
  4 +import com.antroid.dictentry.R;
  5 +
  6 +import android.app.Activity;
  7 +import android.content.ComponentName;
  8 +import android.content.Intent;
  9 +import android.os.Bundle;
  10 +
  11 +public class MainFrameActivity extends Activity {
  12 + /** Called when the activity is first created. */
  13 + @Override
  14 + public void onCreate(Bundle savedInstanceState) {
  15 + super.onCreate(savedInstanceState);
  16 + setContentView(R.layout.main);
  17 +
  18 + Intent intent = new Intent();
  19 + intent.putExtra("isFixDict", true);// 固定词典(牛津,版权,多国语)
  20 + intent.putExtra("dictId", 1);// 词典ID
  21 + intent.putExtra("wordHead", "");// 查询的单词
  22 + intent.putExtra("dictPath", "");// 词典路径
  23 + intent.putExtra("wordId", 0);// 词典序ID
  24 + intent.putExtra("history", true);
  25 +
  26 + intent.putExtra("dictFullName", getString(R.string.app_name_06));
  27 + intent.setComponent(new ComponentName("com.antroid.dict.activity",
  28 + "com.antroid.dict.activity.DictStart"));
  29 + startActivity(intent);
  30 + finish();
  31 + }
  32 +}
0 33 \ No newline at end of file
... ...
ContemporaryChineseDict/src/com/antroid/xinhuadict/MainFrameActivity.java
... ... @@ -0,0 +1,30 @@
  1 +package com.antroid.xinhuadict;
  2 +
  3 +
  4 +import com.antroid.dictentry.R;
  5 +
  6 +import android.app.Activity;
  7 +import android.content.ComponentName;
  8 +import android.content.Intent;
  9 +import android.os.Bundle;
  10 +
  11 +public class MainFrameActivity extends Activity {
  12 + @Override
  13 + public void onCreate(Bundle savedInstanceState) {
  14 + super.onCreate(savedInstanceState);
  15 + setContentView(R.layout.main);
  16 +
  17 + Intent intent = new Intent();
  18 + intent.putExtra("isFixDict", true);// 固定词典(牛津,版权,多国语)
  19 + intent.putExtra("dictId", 4);// 词典ID
  20 + intent.putExtra("wordHead", "");// 查询的单词
  21 + intent.putExtra("dictPath", "");// 词典路径
  22 + intent.putExtra("wordId", 0);// 词典序ID
  23 + intent.putExtra("history", true);
  24 + intent.putExtra("dictFullName", getString(R.string.app_name_05));
  25 + intent.setComponent(new ComponentName("com.antroid.dict.activity",
  26 + "com.antroid.dict.activity.DictStart"));
  27 + startActivity(intent);
  28 + finish();
  29 + }
  30 +}
0 31 \ No newline at end of file
... ...