huangbo 10 anos atrás
pai
commit
0442317812
72 arquivos alterados com 841 adições e 0 exclusões
  1. 4 0
      wade-mobile-common/.gitignore
  2. 33 0
      wade-mobile-common/.project
  3. 9 0
      wade-mobile-common/AndroidManifest.xml
  4. BIN
      wade-mobile-common/libs/armeabi-v7a/libDataSafe.so
  5. BIN
      wade-mobile-common/libs/armeabi-v7a/libluajava.so
  6. BIN
      wade-mobile-common/libs/armeabi/libDataSafe.so
  7. BIN
      wade-mobile-common/libs/armeabi/libluajava.so
  8. BIN
      wade-mobile-common/libs/bcprov-jdk16-140.jar
  9. BIN
      wade-mobile-common/libs/mips/libDataSafe.so
  10. BIN
      wade-mobile-common/libs/mips/libluajava.so
  11. BIN
      wade-mobile-common/libs/mips64/libDataSafe.so
  12. BIN
      wade-mobile-common/libs/wade-mobile-com.jar
  13. BIN
      wade-mobile-common/libs/wade-mobile-data.jar
  14. BIN
      wade-mobile-common/libs/wade-mobile-func.jar
  15. BIN
      wade-mobile-common/libs/wade-mobile-im.jar
  16. BIN
      wade-mobile-common/libs/wade-mobile-ui.jar
  17. BIN
      wade-mobile-common/libs/wade-mobile.jar
  18. BIN
      wade-mobile-common/libs/x86/libDataSafe.so
  19. BIN
      wade-mobile-common/libs/x86/libluajava.so
  20. 20 0
      wade-mobile-common/proguard-project.txt
  21. 15 0
      wade-mobile-common/project.properties
  22. 37 0
      wade-mobile-common/res/anim/hyperspace_in.xml
  23. 36 0
      wade-mobile-common/res/anim/hyperspace_out.xml
  24. 11 0
      wade-mobile-common/res/anim/push_left_in.xml
  25. 11 0
      wade-mobile-common/res/anim/push_left_out.xml
  26. 11 0
      wade-mobile-common/res/anim/push_right_in.xml
  27. 11 0
      wade-mobile-common/res/anim/push_right_out.xml
  28. 14 0
      wade-mobile-common/res/anim/scale_action.xml
  29. 15 0
      wade-mobile-common/res/anim/shut_open_in.xml
  30. 14 0
      wade-mobile-common/res/anim/shut_open_out.xml
  31. BIN
      wade-mobile-common/res/drawable-ldpi/map_click.png
  32. BIN
      wade-mobile-common/res/drawable-ldpi/map_end.png
  33. BIN
      wade-mobile-common/res/drawable-ldpi/map_local.png
  34. BIN
      wade-mobile-common/res/drawable-ldpi/map_other.png
  35. BIN
      wade-mobile-common/res/drawable-ldpi/map_self.png
  36. BIN
      wade-mobile-common/res/drawable-ldpi/map_start.png
  37. BIN
      wade-mobile-common/res/drawable-ldpi/map_target.png
  38. BIN
      wade-mobile-common/res/drawable-mdpi/map_bubble_ok_icon.png
  39. BIN
      wade-mobile-common/res/drawable-mdpi/map_mark.png
  40. BIN
      wade-mobile-common/res/drawable-xhdpi/map_arrow.png
  41. 17 0
      wade-mobile-common/res/drawable/activity_dialog_bg.xml
  42. 16 0
      wade-mobile-common/res/drawable/activity_dialog_bg2.xml
  43. 16 0
      wade-mobile-common/res/drawable/audio_activity_dialog.xml
  44. 7 0
      wade-mobile-common/res/drawable/map_info_window_bg.xml
  45. 7 0
      wade-mobile-common/res/drawable/map_info_window_btn_bg.xml
  46. BIN
      wade-mobile-common/res/drawable/record_mic_normal.png
  47. BIN
      wade-mobile-common/res/drawable/record_mic_press.png
  48. 5 0
      wade-mobile-common/res/drawable/scan_cancel.xml
  49. BIN
      wade-mobile-common/res/drawable/scan_cancel_normal.png
  50. BIN
      wade-mobile-common/res/drawable/scan_cancel_press.png
  51. BIN
      wade-mobile-common/res/drawable/scan_flashlight_off.png
  52. BIN
      wade-mobile-common/res/drawable/scan_flashlight_on.png
  53. 17 0
      wade-mobile-common/res/drawable/share_apk_activity_dialog.xml
  54. 21 0
      wade-mobile-common/res/layout/audio_recorder.xml
  55. 65 0
      wade-mobile-common/res/layout/map_custom_info_window.xml
  56. 39 0
      wade-mobile-common/res/layout/scan_zxing_capture.xml
  57. 77 0
      wade-mobile-common/res/layout/share_apk_activity.xml
  58. 39 0
      wade-mobile-common/res/layout/share_apk_device_list_item.xml
  59. 11 0
      wade-mobile-common/res/values-v11/styles.xml
  60. 12 0
      wade-mobile-common/res/values-v14/styles.xml
  61. 32 0
      wade-mobile-common/res/values/scan_zxing_colors.xml
  62. 31 0
      wade-mobile-common/res/values/scan_zxing_ids.xml
  63. 5 0
      wade-mobile-common/res/values/strings.xml
  64. 5 0
      wade-mobile-common/res/values/strings_audio.xml
  65. 113 0
      wade-mobile-common/res/values/strings_map.xml
  66. 10 0
      wade-mobile-common/res/values/strings_share_apk.xml
  67. 9 0
      wade-mobile-common/res/values/style_audio.xml
  68. 7 0
      wade-mobile-common/res/values/style_custom_dialog.xml
  69. 7 0
      wade-mobile-common/res/values/style_share_apk.xml
  70. 7 0
      wade-mobile-common/res/values/style_sliding_menu.xml
  71. 20 0
      wade-mobile-common/res/values/styles.xml
  72. 5 0
      wade-mobile-common/更新纪要

+ 4 - 0
wade-mobile-common/.gitignore

@ -0,0 +1,4 @@
1
/.settings
2
/bin
3
/gen
4
/.classpath

+ 33 - 0
wade-mobile-common/.project

@ -0,0 +1,33 @@
1
<?xml version="1.0" encoding="UTF-8"?>
2
<projectDescription>
3
	<name>wade-mobile-common</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>

+ 9 - 0
wade-mobile-common/AndroidManifest.xml

@ -0,0 +1,9 @@
1
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2
    package="com.wade.mobile"
3
    android:versionCode="1"
4
    android:versionName="1.0" >
5

6
    <uses-sdk
7
        android:minSdkVersion="8"
8
        android:targetSdkVersion="17" />
9
</manifest>

BIN
wade-mobile-common/libs/armeabi-v7a/libDataSafe.so


BIN
wade-mobile-common/libs/armeabi-v7a/libluajava.so


BIN
wade-mobile-common/libs/armeabi/libDataSafe.so


BIN
wade-mobile-common/libs/armeabi/libluajava.so


BIN
wade-mobile-common/libs/bcprov-jdk16-140.jar


BIN
wade-mobile-common/libs/mips/libDataSafe.so


BIN
wade-mobile-common/libs/mips/libluajava.so


BIN
wade-mobile-common/libs/mips64/libDataSafe.so


BIN
wade-mobile-common/libs/wade-mobile-com.jar


BIN
wade-mobile-common/libs/wade-mobile-data.jar


BIN
wade-mobile-common/libs/wade-mobile-func.jar


BIN
wade-mobile-common/libs/wade-mobile-im.jar


BIN
wade-mobile-common/libs/wade-mobile-ui.jar


BIN
wade-mobile-common/libs/wade-mobile.jar


BIN
wade-mobile-common/libs/x86/libDataSafe.so


BIN
wade-mobile-common/libs/x86/libluajava.so


+ 20 - 0
wade-mobile-common/proguard-project.txt

@ -0,0 +1,20 @@
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
#}

+ 15 - 0
wade-mobile-common/project.properties

@ -0,0 +1,15 @@
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-15
15
android.library=true

+ 37 - 0
wade-mobile-common/res/anim/hyperspace_in.xml

@ -0,0 +1,37 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<set xmlns:android="http://schemas.android.com/apk/res/android"
3
	android:shareInterpolator="false">
4
	<set android:interpolator="@android:anim/accelerate_interpolator">
5
		<scale
6
			android:fromXScale="0.0" 
7
			android:toXScale="1.4"
8
		    android:fromYScale="0.0"
9
	 		android:toYScale="0.6" 
10
	 		android:pivotX="50%" 
11
	 		android:pivotY="50%" 
12
	 		android:duration="200"
13
	 		android:startOffset="600" 
14
	 	/>
15
		<rotate 
16
			android:fromDegrees="-45" 
17
			android:toDegrees="0"
18
	 		android:toYScale="0.0" 
19
	 		android:pivotX="50%" 
20
	 		android:pivotY="50%"
21
	 		android:duration="200"
22
	 		android:startOffset="600"
23
	 	/>
24
	</set>
25
	<scale 
26
		android:interpolator="@android:anim/accelerate_decelerate_interpolator"
27
		android:fromXScale="1.4" 
28
		android:toXScale="1.0" 
29
		android:fromYScale="0.6" 
30
		android:toYScale="1.0" 
31
		android:pivotX="50%"
32
		android:pivotY="50%"
33
		android:fillAfter="false"
34
		android:duration="300"
35
		android:startOffset="800" 
36
	/>
37
</set>

+ 36 - 0
wade-mobile-common/res/anim/hyperspace_out.xml

@ -0,0 +1,36 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<set xmlns:android="http://schemas.android.com/apk/res/android" android:shareInterpolator="false">
3
	<scale 
4
		android:interpolator="@android:anim/accelerate_decelerate_interpolator"
5
		android:fromXScale="1.0" 
6
		android:toXScale="1.4" 
7
		android:fromYScale="1.0" 
8
		android:toYScale="0.6" 
9
		android:pivotX="50%"
10
		android:pivotY="50%"
11
		android:fillAfter="false"
12
		android:duration="300"
13
	/>
14
	<set android:interpolator="@android:anim/accelerate_interpolator">
15
		<scale
16
			android:fromXScale="1.4" 
17
			android:toXScale="0.0"
18
	        android:fromYScale="0.6"
19
	 		android:toYScale="0.0" 
20
	 		android:pivotX="50%" 
21
	 		android:pivotY="50%" 
22
	 		android:duration="200"
23
	 		android:startOffset="300"
24
	 	/>
25
		<rotate 
26
			android:fromDegrees="0" 
27
			android:toDegrees="+45"
28
	 		android:toYScale="0.0" 
29
	 		android:pivotX="50%" 
30
	 		android:pivotY="50%"
31
	 		android:duration="200" 
32
	 		android:startOffset="300"
33
	 	/>
34
	</set>
35
</set>
36


+ 11 - 0
wade-mobile-common/res/anim/push_left_in.xml

@ -0,0 +1,11 @@
1
<?xml version="1.0" encoding="utf-8"?>   
2
<set xmlns:android="http://schemas.android.com/apk/res/android">   
3
    <translate   
4
    android:fromXDelta="100%p"    
5
    android:toXDelta="0"    
6
    android:duration="250"/>   
7
    <alpha   
8
    android:fromAlpha="1.0"    
9
    android:toAlpha="1.0"  
10
    android:duration="250" />   
11
</set>

+ 11 - 0
wade-mobile-common/res/anim/push_left_out.xml

@ -0,0 +1,11 @@
1
<?xml version="1.0" encoding="utf-8"?>   
2
<set xmlns:android="http://schemas.android.com/apk/res/android">   
3
    <translate   
4
    android:fromXDelta="0"    
5
    android:toXDelta="-100%p"    
6
    android:duration="250"/>   
7
    <alpha   
8
    android:fromAlpha="1.0"    
9
    android:toAlpha="1.0"    
10
    android:duration="250" />   
11
</set>

+ 11 - 0
wade-mobile-common/res/anim/push_right_in.xml

@ -0,0 +1,11 @@
1
<?xml version="1.0" encoding="utf-8"?>   
2
<set xmlns:android="http://schemas.android.com/apk/res/android">   
3
    <translate   
4
    android:fromXDelta="-100%p"    
5
    android:toXDelta="0"    
6
    android:duration="250"/>   
7
    <alpha   
8
    android:fromAlpha="1.0"    
9
    android:toAlpha="1.0"  
10
    android:duration="250" />   
11
</set>

+ 11 - 0
wade-mobile-common/res/anim/push_right_out.xml

@ -0,0 +1,11 @@
1
<?xml version="1.0" encoding="utf-8"?>   
2
<set xmlns:android="http://schemas.android.com/apk/res/android">   
3
    <translate   
4
    android:fromXDelta="0"    
5
    android:toXDelta="100%p"    
6
    android:duration="250"/>   
7
    <alpha   
8
    android:fromAlpha="1.0"    
9
    android:toAlpha="1.0"    
10
    android:duration="250" />   
11
</set>

+ 14 - 0
wade-mobile-common/res/anim/scale_action.xml

@ -0,0 +1,14 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<set xmlns:android="http://schemas.android.com/apk/res/android">
3
   <scale
4
      android:interpolator="@android:anim/accelerate_decelerate_interpolator"
5
      android:fromXScale="0.0"
6
      android:toXScale="1.4"
7
      android:fromYScale="0.0"
8
      android:toYScale="1.4"
9
      android:pivotX="50%"
10
      android:pivotY="50%"
11
      android:fillAfter="false"
12
      android:duration="@android:integer/config_mediumAnimTime"/>
13
</set>
14


+ 15 - 0
wade-mobile-common/res/anim/shut_open_in.xml

@ -0,0 +1,15 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<set xmlns:android="http://schemas.android.com/apk/res/android" android:shareInterpolator="false">
3
    <scale
4
        android:fromXScale="0"
5
        android:toXScale="1.0"
6
        android:fromYScale="1.0"
7
        android:toYScale="1.0"
8
        android:pivotX="50%"
9
        android:pivotY="50%"
10
        android:duration="250"
11
        android:repeatCount="0"
12
        android:startOffset="500"
13
    >
14
    </scale>
15
</set>

+ 14 - 0
wade-mobile-common/res/anim/shut_open_out.xml

@ -0,0 +1,14 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<set xmlns:android="http://schemas.android.com/apk/res/android" android:shareInterpolator="false">
3
 	<scale
4
        android:fromXScale="1.0"
5
        android:toXScale="0"
6
        android:fromYScale="1.0"
7
        android:toYScale="1.0"
8
        android:pivotX="50%"
9
        android:pivotY="50%"
10
        android:duration="250"
11
        android:repeatCount="0"
12
    >
13
    </scale>
14
</set>

BIN
wade-mobile-common/res/drawable-ldpi/map_click.png


BIN
wade-mobile-common/res/drawable-ldpi/map_end.png


BIN
wade-mobile-common/res/drawable-ldpi/map_local.png


BIN
wade-mobile-common/res/drawable-ldpi/map_other.png


BIN
wade-mobile-common/res/drawable-ldpi/map_self.png


BIN
wade-mobile-common/res/drawable-ldpi/map_start.png


BIN
wade-mobile-common/res/drawable-ldpi/map_target.png


BIN
wade-mobile-common/res/drawable-mdpi/map_bubble_ok_icon.png


BIN
wade-mobile-common/res/drawable-mdpi/map_mark.png


BIN
wade-mobile-common/res/drawable-xhdpi/map_arrow.png


+ 17 - 0
wade-mobile-common/res/drawable/activity_dialog_bg.xml

@ -0,0 +1,17 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<shape xmlns:Android="http://schemas.android.com/apk/res/android" >
3

4
    <padding
5
        Android:bottom="5dp"
6
        Android:left="5dp"
7
        Android:right="5dp"
8
        Android:top="5dp" />
9
	<!-- 外边线 -->
10
    <stroke
11
        Android:width="2dip"
12
        Android:color="#544649" />
13
	
14
    <corners Android:radius="5dp" />
15
	<!-- 内线 -->
16
    <solid Android:color="#8A7479" />
17
</shape>

+ 16 - 0
wade-mobile-common/res/drawable/activity_dialog_bg2.xml

@ -0,0 +1,16 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<shape xmlns:Android="http://schemas.android.com/apk/res/android" >
3
    <padding
4
        Android:bottom="5dp"
5
        Android:left="5dp"
6
        Android:right="5dp"
7
        Android:top="5dp" />
8
	<!-- 外边线 -->
9
    <stroke
10
        Android:width="1dip"
11
        Android:color="#D2AAAA" />
12
	<!-- 角上半径 -->
13
    <corners Android:radius="5dp" />
14
	<!-- 内线 -->
15
    <solid Android:color="#D2AAAA" />
16
</shape>

+ 16 - 0
wade-mobile-common/res/drawable/audio_activity_dialog.xml

@ -0,0 +1,16 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<shape xmlns:Android="http://schemas.android.com/apk/res/android" >
3
    <padding
4
        Android:bottom="5dp"
5
        Android:left="5dp"
6
        Android:right="5dp"
7
        Android:top="5dp" />
8
	<!-- 外边线 -->
9
    <stroke
10
        Android:width="1dip"
11
        Android:color="#D2AAAA" />
12
	<!-- 角上半径 -->
13
    <corners Android:radius="5dp" />
14
	<!-- 内线 -->
15
    <solid Android:color="#D2AAAA" />
16
</shape>

+ 7 - 0
wade-mobile-common/res/drawable/map_info_window_bg.xml

@ -0,0 +1,7 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
3
    <!-- 中间的背景色 -->
4
    <solid android:color="#000000"/>
5
    <!-- 设置四个角的角度 -->
6
   <corners android:topLeftRadius="10dp" android:topRightRadius="10dp" android:bottomLeftRadius="10dp" android:bottomRightRadius="10dp"/>
7
</shape>

+ 7 - 0
wade-mobile-common/res/drawable/map_info_window_btn_bg.xml

@ -0,0 +1,7 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
3
    <!-- 中间的背景色 -->
4
    <solid android:color="#0066CC"/>
5
    <!-- 设置四个角的角度 -->
6
   <corners android:topRightRadius="10dp"  android:bottomRightRadius="10dp"/>
7
</shape>

BIN
wade-mobile-common/res/drawable/record_mic_normal.png


BIN
wade-mobile-common/res/drawable/record_mic_press.png


+ 5 - 0
wade-mobile-common/res/drawable/scan_cancel.xml

@ -0,0 +1,5 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<selector xmlns:android="http://schemas.android.com/apk/res/android">  
3
    <item android:drawable="@drawable/scan_cancel_normal" android:state_pressed="false"/>  
4
    <item android:drawable="@drawable/scan_cancel_press" android:state_pressed="true"/>  
5
</selector>

BIN
wade-mobile-common/res/drawable/scan_cancel_normal.png


BIN
wade-mobile-common/res/drawable/scan_cancel_press.png


BIN
wade-mobile-common/res/drawable/scan_flashlight_off.png


BIN
wade-mobile-common/res/drawable/scan_flashlight_on.png


+ 17 - 0
wade-mobile-common/res/drawable/share_apk_activity_dialog.xml

@ -0,0 +1,17 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<shape xmlns:Android="http://schemas.android.com/apk/res/android" >
3

4
    <padding
5
        Android:bottom="5dp"
6
        Android:left="5dp"
7
        Android:right="5dp"
8
        Android:top="5dp" />
9
	<!-- 外边线 -->
10
    <stroke
11
        Android:width="2dip"
12
        Android:color="#544649" />
13
	
14
    <corners Android:radius="5dp" />
15
	<!-- 内线 -->
16
    <solid Android:color="#8A7479" />
17
</shape>

+ 21 - 0
wade-mobile-common/res/layout/audio_recorder.xml

@ -0,0 +1,21 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
    android:layout_width="match_parent"
4
    android:layout_height="match_parent"
5
    android:orientation="vertical" >
6

7
    <TextView
8
        android:layout_width="wrap_content"
9
        android:layout_height="wrap_content"
10
        android:text="@string/pressTip"
11
        android:textSize="20dp"
12
        android:id="@+id/recordLabel"
13
         />
14

15
    <ImageButton
16
        android:layout_width="wrap_content"
17
        android:layout_height="wrap_content"
18
        android:src="@drawable/record_mic_normal" 
19
        android:id="@+id/micButton"/>
20

21
</LinearLayout>

+ 65 - 0
wade-mobile-common/res/layout/map_custom_info_window.xml

@ -0,0 +1,65 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
    android:layout_width="wrap_content"
4
    android:layout_height="wrap_content"
5
    android:background="@android:color/transparent"
6
    android:orientation="vertical" >
7

8
    <LinearLayout
9
        android:id="@+id/map_layout"
10
        android:layout_width="wrap_content"
11
        android:layout_height="wrap_content"
12
        android:background="@drawable/map_info_window_bg"
13
        android:gravity="center_vertical"
14
        android:orientation="horizontal" >
15

16
        <LinearLayout
17
            android:id="@+id/map_content"
18
            android:layout_width="wrap_content"
19
            android:layout_height="wrap_content"
20
            android:gravity="center_vertical|left"
21
            android:orientation="vertical"
22
            android:padding="10dp"
23
             >
24

25
            <TextView
26
                android:id="@+id/map_title"
27
                android:layout_width="wrap_content"
28
                android:layout_height="wrap_content"
29
                android:singleLine="false"
30
                android:textColor="#FFFFFFFF"
31
                android:textSize="18sp" />
32

33
            <TextView
34
                android:id="@+id/map_snippet"
35
                android:layout_width="wrap_content"
36
                android:layout_height="wrap_content"
37
                android:singleLine="false"
38
                android:textColor="#FFB3B3B3"
39
                android:textSize="12sp" />
40
        </LinearLayout>
41

42
        <View
43
            android:layout_width="1px"
44
            android:layout_height="match_parent"
45
            android:layout_gravity="center_horizontal"
46
            android:background="#66CCFF"
47
            android:id="@+id/map_line"
48
             />
49

50
        <ImageView
51
            android:id="@+id/mapComfirmBtn"
52
            android:layout_width="wrap_content"
53
            android:layout_height="match_parent"
54
            android:src="@drawable/map_bubble_ok_icon"
55
            android:paddingLeft="5dp"
56
            android:paddingRight="5dp"
57
             />
58
    </LinearLayout>
59

60
    <ImageView
61
        android:layout_width="match_parent"
62
        android:layout_height="match_parent"
63
        android:src="@drawable/map_arrow" />
64

65
</LinearLayout>

+ 39 - 0
wade-mobile-common/res/layout/scan_zxing_capture.xml

@ -0,0 +1,39 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
    android:layout_width="fill_parent"
4
    android:layout_height="fill_parent" >
5
6
    <SurfaceView
7
        android:id="@+id/preview_view"
8
        android:layout_width="wrap_content"
9
        android:layout_height="wrap_content"
10
        android:layout_gravity="center" />
11
    
12
    <RelativeLayout
13
        android:layout_width="match_parent"
14
        android:layout_height="match_parent"
15
        android:layout_gravity="center">
16
17
        <ImageButton
18
            android:id="@+id/btn_cancel_scan"
19
            android:layout_width="wrap_content"
20
            android:layout_height="wrap_content"
21
            android:layout_alignParentLeft="true"
22
            android:layout_alignParentTop="true"
23
            android:src="@drawable/scan_cancel_normal" />
24
25
        <ImageButton
26
            android:id="@+id/btn_flashlight"
27
            android:layout_width="wrap_content"
28
            android:layout_height="wrap_content"
29
            android:layout_alignParentRight="true"
30
            android:layout_alignParentTop="true"
31
            android:src="@drawable/scan_flashlight_off" />
32
33
        <com.wade.mobile.common.scan.view.ViewfinderView
34
	        android:id="@+id/viewfinder_view"
35
	        android:layout_width="wrap_content"
36
	        android:layout_height="wrap_content"/>
37
38
    </RelativeLayout>
39
</FrameLayout>

+ 77 - 0
wade-mobile-common/res/layout/share_apk_activity.xml

@ -0,0 +1,77 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
    android:layout_width="300dp"
4
    android:layout_height="400dp"
5
    android:background="#060514"
6
    android:orientation="vertical" >
7
    
8
    <TextView
9
        android:id="@+id/share"
10
        android:layout_width="match_parent"
11
        android:layout_height="wrap_content"
12
        android:gravity="center"
13
        android:text="@string/sa_share"
14
        android:textColor="#FFFFFF"
15
        android:textSize="20sp" />
16

17
    <View
18
        android:layout_width="match_parent"
19
        android:layout_height="1dp"
20
        android:layout_marginBottom="2dp"
21
        android:layout_marginTop="2dp"
22
        android:background="#696969" />
23

24
    <ListView
25
        android:id="@+id/deviceListView"
26
        android:layout_width="match_parent"
27
        android:layout_height="0dp"
28
        android:layout_weight="1"
29
        android:isScrollContainer="true"
30
        android:paddingTop="5dp" >
31
    </ListView>
32

33
    <View
34
        android:layout_width="match_parent"
35
        android:layout_height="1dp"
36
        android:layout_marginBottom="2dp"
37
        android:layout_marginTop="2dp"
38
        android:background="#696969" />
39

40
    <RelativeLayout
41
        android:layout_width="wrap_content"
42
        android:layout_height="50dp" >
43

44
        <Button
45
            android:id="@+id/exit"
46
            android:layout_width="140dp"
47
            android:layout_height="wrap_content"
48
            android:layout_marginRight="5dp"
49
            android:paddingLeft="20dp"
50
            android:text="@string/sa_exit"
51
            android:textColor="#FFFFFF"
52
            android:textSize="20sp" />
53

54
        <View
55
            android:layout_width="1dip"
56
            android:layout_height="50dp"
57
            android:layout_gravity="center_horizontal"
58
            android:layout_centerInParent="true"
59
            android:background="#696969"
60
            android:layout_marginLeft="3dp"
61
            android:layout_marginRight="3dp"
62
             />
63

64
        <Button
65
            android:id="@+id/search"
66
            android:layout_width="140dp"
67
            android:layout_height="wrap_content"
68
            android:layout_alignParentRight="true"
69
            android:layout_alignTop="@id/exit"
70
            android:layout_marginRight="5dp"
71
            android:paddingRight="20dp"
72
            android:text="@string/sa_search"
73
            android:textColor="#FFFFFF"
74
            android:textSize="20sp" />
75
    </RelativeLayout>
76

77
</LinearLayout>

+ 39 - 0
wade-mobile-common/res/layout/share_apk_device_list_item.xml

@ -0,0 +1,39 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
    android:layout_width="fill_parent"
4
    android:layout_height="fill_parent"
5
    android:orientation="horizontal" >
6

7
    <LinearLayout
8
        android:layout_width="0dp"
9
        android:layout_height="wrap_content"
10
        android:orientation="vertical"
11
        android:layout_weight="1"
12
        android:paddingBottom="5dp"
13
         >
14
        <!-- 设备名 -->
15
        <TextView
16
            android:id="@+id/deviceNameTV"
17
            android:layout_width="wrap_content"
18
            android:layout_height="wrap_content"
19
            android:paddingLeft="5dp"
20
            android:textColor="#fff"
21
            android:textSize="20sp" />
22
        <LinearLayout
23
            android:layout_width="fill_parent"
24
            android:layout_height="wrap_content"
25
            android:orientation="horizontal" >
26
            <!-- MAC地址 -->
27
            <TextView
28
                android:layout_width="wrap_content"
29
                android:layout_height="wrap_content"
30
                android:layout_marginLeft="15dp"
31
                android:text="@string/sa_mac_address" />
32
            <!-- MAC地址字符串 -->
33
            <TextView
34
                android:id="@+id/macAddressTV"
35
                android:layout_width="wrap_content"
36
                android:layout_height="wrap_content" />
37
        </LinearLayout>
38
    </LinearLayout>
39
</LinearLayout>

+ 11 - 0
wade-mobile-common/res/values-v11/styles.xml

@ -0,0 +1,11 @@
1
<resources>
2

3
    <!--
4
        Base application theme for API 11+. This theme completely replaces
5
        AppBaseTheme from res/values/styles.xml on API 11+ devices.
6
    -->
7
    <style name="AppBaseTheme" parent="android:Theme.Holo.Light">
8
        <!-- API 11 theme customizations can go here. -->
9
    </style>
10

11
</resources>

+ 12 - 0
wade-mobile-common/res/values-v14/styles.xml

@ -0,0 +1,12 @@
1
<resources>
2

3
    <!--
4
        Base application theme for API 14+. This theme completely replaces
5
        AppBaseTheme from BOTH res/values/styles.xml and
6
        res/values-v11/styles.xml on API 14+ devices.
7
    -->
8
    <style name="AppBaseTheme" parent="android:Theme.Holo.Light.DarkActionBar">
9
        <!-- API 14 theme customizations can go here. -->
10
    </style>
11

12
</resources>

+ 32 - 0
wade-mobile-common/res/values/scan_zxing_colors.xml

@ -0,0 +1,32 @@
1
<?xml version="1.0" encoding="UTF-8"?>
2
<resources>
3
  
4
  <color name="bg_color">#EDEDED</color>
5
  <color name="contents_text">#ff000000</color>
6
  <color name="encode_view">#ffffffff</color>
7
  <color name="help_button_view">#ffcccccc</color>
8
  <color name="help_view">#ff404040</color>
9
  <color name="possible_result_points">#c0ffff00</color>  
10
  <color name="result_image_border">#ffffffff</color>
11
  <color name="result_minor_text">#ffc0c0c0</color>
12
  <color name="result_points">#c000ff00</color>
13
  <color name="result_text">#ffffffff</color>
14
  <color name="result_view">#b0000000</color>
15
  <color name="sbc_header_text">#ff808080</color>
16
  <color name="sbc_header_view">#ffffffff</color>
17
  <color name="sbc_list_item">#fffff0e0</color>
18
  <color name="sbc_layout_view">#ffffffff</color>
19
  <color name="sbc_page_number_text">#ff000000</color>
20
  <color name="sbc_snippet_text">#ff4b4b4b</color>
21
  <color name="share_text">#ff000000</color>
22
  <color name="share_view">#ffffffff</color>
23
  <color name="status_view">#50000000</color>
24
  <color name="status_text">#ffffffff</color>
25
  <color name="transparent">#00000000</color>
26
  <color name="viewfinder_frame">#ff000000</color>
27
  <color name="viewfinder_laser">#ffff0000</color>
28
  <color name="viewfinder_mask">#60000000</color>
29
  <color name="header">#58567D</color>
30
  <color name="grgray">#686868</color>
31
      
32
</resources>

+ 31 - 0
wade-mobile-common/res/values/scan_zxing_ids.xml

@ -0,0 +1,31 @@
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!--
3
 Copyright (C) 2008 ZXing authors
4
5
 Licensed under the Apache License, Version 2.0 (the "License");
6
 you may not use this file except in compliance with the License.
7
 You may obtain a copy of the License at
8
9
      http://www.apache.org/licenses/LICENSE-2.0
10
11
 Unless required by applicable law or agreed to in writing, software
12
 distributed under the License is distributed on an "AS IS" BASIS,
13
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
 See the License for the specific language governing permissions and
15
 limitations under the License.
16
 -->
17
<resources>
18
  <!-- Messages IDs -->
19
  <item type="id" name="auto_focus"/>
20
  <item type="id" name="decode"/>
21
  <item type="id" name="decode_failed"/>
22
  <item type="id" name="decode_succeeded"/>
23
  <item type="id" name="encode_failed"/>
24
  <item type="id" name="encode_succeeded"/>
25
  <item type="id" name="launch_product_query"/>
26
  <item type="id" name="quit"/>
27
  <item type="id" name="restart_preview"/>
28
  <item type="id" name="return_scan_result"/>
29
  <item type="id" name="search_book_contents_failed"/>
30
  <item type="id" name="search_book_contents_succeeded"/>
31
</resources>

+ 5 - 0
wade-mobile-common/res/values/strings.xml

@ -0,0 +1,5 @@
1
<resources>
2

3
    <string name="app_name">wade-mobile-com</string>
4

5
</resources>

+ 5 - 0
wade-mobile-common/res/values/strings_audio.xml

@ -0,0 +1,5 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<resources>
3
    <string name="recording">正在录音……</string>
4
    <string name="pressTip">按下说话</string>
5
</resources>

+ 113 - 0
wade-mobile-common/res/values/strings_map.xml

@ -0,0 +1,113 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<resources>
3
    <string name="action_settings">Settings</string>
4
    
5
    <string name="animate">Animate</string>
6
    <string name="basic_map">基本地图</string>
7
    <string name="basic_description">介绍如何创建一个基本地图</string>
8
    <string name="camera_demo">Camera功能</string>
9
    <string name="camera_description">介绍在地图中操作Camera各种功能</string>
10
    <string name="clear_map">Clear</string>
11
    <string name="compass">指南针</string>
12
    <string name="custom_info_contents">Custom info contents</string>
13
    <string name="custom_info_window">Custom info window</string>
14
    <string name="default_info_window">Default info window</string>
15
    <string name="demo_title">AMaps2D  Demos</string>
16
    <string name="down_arrow">\u2193</string>
17
    <string name="drag_melbourne">Drag Melbourne</string>
18
    <string name="events_demo">Events功能</string>
19
    <string name="events_description">介绍对地图的点击,长按,拖动地图事件功能</string>
20
    <string name="fill_stroke">Fill Stroke</string>
21
    <string name="fill_color">Fill Color</string>
22
    <string name="go_to_zhongguancun">中关村</string>
23
    <string name="go_to_lujiazui">陆家嘴</string>
24
    <string name="hybrid">Hybrid</string>
25
    <string name="location">正在定位中</string>
26
27
    <string-array name="layers_array">
28
        <item>@string/normal</item>
29
        <item>@string/satellite</item>
30
    </string-array>
31
32
    <string name="layers_demo">Layers图层功能</string>
33
    <string name="layers_description">介绍地图分别以正常、卫星模式展示出</string>
34
    <string name="left_arrow">\u2190</string>
35
    <string name="locationsource_demo">Location小蓝点功能</string>
36
    <string name="locationsource_description">介绍对系统定位显示小蓝点功能</string>
37
    <string name="locationGPS_demo">gps定位功能</string>
38
    <string name="locationGPS_description">介绍如何使用gps定位</string>
39
     <string name="locationSensorGPS_demo">gps追随功能</string>
40
      <string name="locationSensorGPS_demo_description">介绍如何用gps定位图标箭头随手机转动而转动</string>
41
    <string name="locationNetwork_description">介绍如何使用网络定位</string>
42
    <string name="locationNetwork_demo">网络定位功能</string>
43
    <string name="marker_demo">Markers功能</string>
44
    <string name="marker_description">介绍在地图上添加marker和infoWindow</string>
45
    <string name="mapOption_demo">AMapOptions实现地图</string>
46
    <string name="mapOption_description">介绍用AMapOptions展示一个地图</string>
47
    <string name="map_not_ready">SupportMapFragment初始化失败</string>
48
    <string name="move_the_camera">移动camera</string>
49
    <string name="my_location">My Location</string>
50
    <string name="mylocation_layer">我的位置图层</string>
51
    <string name="no_demos">No demos</string>
52
    <string name="normal">Normal</string>
53
    <string name="polygon_demo">Polygons功能</string>
54
    <string name="polygon_description">介绍在地图绘制多边形</string>
55
    <string name="polyline_demo">Polylines功能</string>
56
    <string name="polyline_description">介绍在地图中绘制线条</string>
57
    <string name="groundoverlay_demo">GroundOverlay功能</string>
58
    <string name="groundoverlay_description">介绍在地图中绘制GroundOverlay功能</string>
59
    <string name="tileoverlay_demo">TileOverlay功能</string>
60
    <string name="tileoverlay_description">介绍在地图中绘制TileOverlay功能</string>
61
    <string name="circle_demo">Circles功能</string>
62
    <string name="circle_description">介绍在地图中绘制圆形</string>
63
    <string name="screenshot_demo">地图截屏功能</string>
64
    <string name="screenshot_description">介绍对地图进行截屏</string>
65
    <string name="properties_polyline">设置Polyline属性</string>
66
    <string name="properties_polygon">设置Polygon属性</string>
67
    <string name="properties_circle">设置Circle属性</string>
68
    <string name="busline_demo">Busline公交查询</string>
69
    <string name="busline_description">介绍如何在地图中绘制BusLine</string>
70
    <string name="route_demo">Route路径规划</string>
71
    <string name="route_description">介绍如何在地图中绘制Route</string>
72
    <string name="rotate">旋转手势</string>
73
    <string name="reset_map">Reset</string>
74
    <string name="right_arrow">\u2192</string>
75
    <string name="satellite">Satellite</string>
76
    <string name="scroll">滑动手势</string>
77
    <string name="stop_animation">\u25A0</string>
78
    <string name="stroke_width">Stroke Width</string>
79
    <string name="tap_instructions">点击或者长按地图</string>
80
    <string name="terrain">Terrain</string>
81
    <string name="tilt">倾斜手势</string>
82
    <string name="traffic">Traffic</string>
83
    <string name="transparency">Transparency</string>
84
    <string name="uisettings_demo">UI Settings功能</string>
85
    <string name="uisettings_description">介绍地图中UI Settings功能</string>
86
    <string name="geocoder_demo">地理编码 功能</string>
87
    <string name="geocoder_description">介绍 geocoder地理编码 功能</string>
88
    <string name="poikeywordsearch_demo">poi关键字搜索</string>
89
    <string name="poikeywordsearch_description">介绍poi关键字搜索功能</string>
90
    <string name="poiaroundsearch_demo">poi周边搜索</string>
91
    <string name="poiaroundsearch_description">介绍poi周边搜索功能</string>
92
    <string name="offlinemap_demo">离线地图功能</string>
93
    <string name="offlinemap_description">介绍如何使用离线地图</string>
94
    <string name="search_title">搜索关键字</string>
95
    <string name="up_arrow">\u2191</string>
96
    <string name="width">Width</string>
97
    <string name="zoom_buttons">缩放按钮</string>
98
    <string name="zoom_gestures">缩放手势</string>
99
    <string name="zoom_in">+</string>
100
    <string name="zoom_out">-</string>
101
    <string name="scale">比例尺</string>
102
    <string name="buttonScale">获取比例尺</string>
103
    <string name="logo_position">logo位置</string>
104
    <string name="bottom_left">左下</string>
105
    <string name="bottom_center">底部居中</string>
106
    <string name="bottom_right">右下</string>
107
    <string name="map_screenshot">地图截屏</string>
108
    <string name="error_network">搜索失败,请检查网络连接!</string>
109
    <string name="error_key">key验证无效!</string>
110
    <string name="error_other">未知错误,请稍后重试!错误码为</string>
111
    <string name="no_result">对不起,没有搜索到相关数据!</string>
112

113
</resources>

+ 10 - 0
wade-mobile-common/res/values/strings_share_apk.xml

@ -0,0 +1,10 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<resources>
3
    <string name="sa_share">应用分享</string>
4
	<string name="sa_mac_address">MAC地址:</string>
5
	<string name="sa_search">刷新</string>
6
	<string name="sa_searching">搜索设备中……</string>
7
	<string name="sa_exit">退出</string>
8
	<string name="sa_confirm_share">确认要分享吗?</string>
9
	<string name="sa_tip">请将远程蓝牙设备打开,并且保持可见……</string>
10
</resources>

+ 9 - 0
wade-mobile-common/res/values/style_audio.xml

@ -0,0 +1,9 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<resources>
3
	<style name="AudioDialogTheme" parent="@android:style/Theme.Dialog">
4
        <!-- 无标题 -->
5
        <item name="android:windowNoTitle">true</item>
6
        <!-- 设置背景色 -->
7
        <item name="android:windowBackground">@drawable/audio_activity_dialog</item>
8
    </style>
9
</resources>

+ 7 - 0
wade-mobile-common/res/values/style_custom_dialog.xml

@ -0,0 +1,7 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<resources>
3
    <style name="CustomDialogTheme" parent="@android:style/Theme.Dialog">
4
        <!-- 无标题 -->
5
        <item name="android:windowNoTitle">true</item>
6
    </style>
7
</resources>

+ 7 - 0
wade-mobile-common/res/values/style_share_apk.xml

@ -0,0 +1,7 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<resources>
3
    <style name="ShareApkDialogTheme" parent="@android:style/Theme.Dialog">
4
        <!-- 无标题 -->
5
        <item name="android:windowNoTitle">true</item>
6
    </style>
7
</resources>

+ 7 - 0
wade-mobile-common/res/values/style_sliding_menu.xml

@ -0,0 +1,7 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<resources>
3
    <style name="SlidingMenuTheme" parent="@android:style/Theme.Translucent">
4
        <!-- 无标题 -->
5
        <item name="android:windowNoTitle">true</item>
6
    </style>
7
</resources>

+ 20 - 0
wade-mobile-common/res/values/styles.xml

@ -0,0 +1,20 @@
1
<resources>
2

3
    <!--
4
        Base application theme, dependent on API level. This theme is replaced
5
        by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
6
    -->
7
    <style name="AppBaseTheme" parent="android:Theme.Light">
8
        <!--
9
            Theme customizations available in newer API levels can go in
10
            res/values-vXX/styles.xml, while customizations related to
11
            backward-compatibility can go here.
12
        -->
13
    </style>
14

15
    <!-- Application theme. -->
16
    <style name="AppTheme" parent="AppBaseTheme">
17
        <!-- All customizations that are NOT specific to a particular API-level can go here. -->
18
    </style>
19

20
</resources>

+ 5 - 0
wade-mobile-common/更新纪要

@ -0,0 +1,5 @@
1
更新内容:去掉了wade-mobile-data需要依赖的第三方jar,如:json-lib-2.2.3-jdk13.jar
2
更新人:黄波
3
更新时间:2015.4.18
4
更新文件:wade-mobile-data.jar
5
更新备注:无