liuyuqi-dellpc 5 years ago
commit
15f949cdc3
100 changed files with 744 additions and 0 deletions
  1. 10 0
      .classpath
  2. 5 0
      .gitignore
  3. 33 0
      .project
  4. 59 0
      AndroidManifest.xml
  5. BIN
      debug.keystore
  6. BIN
      libs/libammsdk.jar
  7. 11 0
      project.properties
  8. 20 0
      res/anim/push_up_in.xml
  9. 5 0
      res/color/mm_actbtn_text.xml
  10. 15 0
      res/color/mm_btn_text.xml
  11. 12 0
      res/color/mm_choice_text_color.xml
  12. 6 0
      res/color/mm_hyper_text.xml
  13. 11 0
      res/color/mm_list_textcolor_one.xml
  14. 17 0
      res/color/mm_list_textcolor_time.xml
  15. 18 0
      res/color/mm_list_textcolor_two.xml
  16. 9 0
      res/color/mm_pref_summary.xml
  17. 9 0
      res/color/mm_pref_title.xml
  18. 9 0
      res/color/mm_style_one_btn_text.xml
  19. 7 0
      res/color/mm_style_two_btn_text.xml
  20. 18 0
      res/color/mm_title_btn_text.xml
  21. BIN
      res/drawable-hdpi/btn_check_off_disable.png
  22. BIN
      res/drawable-hdpi/btn_check_off_normal.png
  23. BIN
      res/drawable-hdpi/btn_check_on_disable.png
  24. BIN
      res/drawable-hdpi/btn_check_on_normal.png
  25. BIN
      res/drawable-hdpi/btn_style_alert_dialog_background.9.png
  26. BIN
      res/drawable-hdpi/btn_style_alert_dialog_button_normal.9.png
  27. BIN
      res/drawable-hdpi/btn_style_alert_dialog_button_pressed.9.png
  28. BIN
      res/drawable-hdpi/btn_style_alert_dialog_cancel_normal.9.png
  29. BIN
      res/drawable-hdpi/btn_style_alert_dialog_special_normal.9.png
  30. BIN
      res/drawable-hdpi/btn_style_alert_dialog_special_pressed.9.png
  31. BIN
      res/drawable-hdpi/btn_style_one_disabled.9.png
  32. BIN
      res/drawable-hdpi/btn_style_one_focused.9.png
  33. BIN
      res/drawable-hdpi/btn_style_one_normal.9.png
  34. BIN
      res/drawable-hdpi/btn_style_one_pressed.9.png
  35. BIN
      res/drawable-hdpi/ic_dialog_alert.png
  36. BIN
      res/drawable-hdpi/ic_dialog_long_click.png
  37. BIN
      res/drawable-hdpi/ic_preference_first_normal.9.png
  38. BIN
      res/drawable-hdpi/ic_preference_first_pressed.9.png
  39. BIN
      res/drawable-hdpi/ic_preference_last_normal.9.png
  40. BIN
      res/drawable-hdpi/ic_preference_last_pressed.9.png
  41. BIN
      res/drawable-hdpi/ic_preference_normal.9.png
  42. BIN
      res/drawable-hdpi/ic_preference_one_normal.9.png
  43. BIN
      res/drawable-hdpi/ic_preference_one_pressed.9.png
  44. BIN
      res/drawable-hdpi/ic_preference_pressed.9.png
  45. BIN
      res/drawable-hdpi/ic_preference_single_normal.9.png
  46. BIN
      res/drawable-hdpi/ic_preference_single_pressed.9.png
  47. BIN
      res/drawable-hdpi/ic_preference_top_normal.9.png
  48. BIN
      res/drawable-hdpi/ic_preference_top_pressed.9.png
  49. BIN
      res/drawable-hdpi/mm_checkbox_mini_checked.9.png
  50. BIN
      res/drawable-hdpi/mm_checkbox_mini_normal.9.png
  51. BIN
      res/drawable-hdpi/mm_edit_focused.9.png
  52. BIN
      res/drawable-hdpi/mm_edit_normal.9.png
  53. BIN
      res/drawable-hdpi/mm_listitem_disable.9.png
  54. BIN
      res/drawable-hdpi/mm_listitem_normal.9.png
  55. BIN
      res/drawable-hdpi/mm_listitem_pressed.9.png
  56. BIN
      res/drawable-hdpi/mm_submenu_normal.png
  57. BIN
      res/drawable-hdpi/mm_submenu_pressed.png
  58. BIN
      res/drawable-hdpi/mm_title_act_btn_disable.9.png
  59. BIN
      res/drawable-hdpi/mm_title_act_btn_focused.9.png
  60. BIN
      res/drawable-hdpi/mm_title_act_btn_normal.9.png
  61. BIN
      res/drawable-hdpi/mm_title_act_btn_pressed.9.png
  62. BIN
      res/drawable-hdpi/mm_title_back_focused.9.png
  63. BIN
      res/drawable-hdpi/mm_title_back_normal.9.png
  64. BIN
      res/drawable-hdpi/mm_title_back_pressed.9.png
  65. BIN
      res/drawable-hdpi/mm_title_bg.9.png
  66. BIN
      res/drawable-hdpi/mm_title_btn_focused.9.png
  67. BIN
      res/drawable-hdpi/mm_title_btn_normal.9.png
  68. BIN
      res/drawable-hdpi/mm_title_btn_pressed.9.png
  69. BIN
      res/drawable-hdpi/mm_trans.png
  70. BIN
      res/drawable-hdpi/send_img.jpg
  71. BIN
      res/drawable-hdpi/send_music_thumb.png
  72. BIN
      res/drawable-hdpi/send_music_thumb_backup.png
  73. BIN
      res/drawable-ldpi/ic_launcher.png
  74. BIN
      res/drawable-mdpi/ic_launcher.png
  75. 9 0
      res/drawable/btn_style_alert_dialog_button.xml
  76. 9 0
      res/drawable/btn_style_alert_dialog_cancel.xml
  77. 9 0
      res/drawable/btn_style_alert_dialog_special.xml
  78. 10 0
      res/drawable/btn_style_one.xml
  79. 44 0
      res/drawable/list_selector_background.xml
  80. 20 0
      res/drawable/mm_checkbox_btn.xml
  81. 5 0
      res/drawable/mm_checkbox_mini.xml
  82. 11 0
      res/drawable/mm_edit.xml
  83. 15 0
      res/drawable/mm_submenu.xml
  84. 8 0
      res/drawable/mm_title_btn_back.xml
  85. 15 0
      res/drawable/mm_title_btn_right.xml
  86. 7 0
      res/drawable/preference_first_item.xml
  87. 7 0
      res/drawable/preference_item.xml
  88. 7 0
      res/drawable/preference_last_item.xml
  89. 7 0
      res/drawable/preference_one_item.xml
  90. 18 0
      res/layout/alert_dialog_menu_layout.xml
  91. 19 0
      res/layout/alert_dialog_menu_list_layout.xml
  92. 19 0
      res/layout/alert_dialog_menu_list_layout_cancel.xml
  93. 19 0
      res/layout/alert_dialog_menu_list_layout_special.xml
  94. 24 0
      res/layout/alert_dialog_menu_list_layout_title.xml
  95. 37 0
      res/layout/entry.xml
  96. 54 0
      res/layout/get_from_wx.xml
  97. 25 0
      res/layout/image_button.xml
  98. 21 0
      res/layout/mm_activity.xml
  99. 10 0
      res/layout/mm_example_ui.xml
  100. 41 0
      res/layout/mm_preference.xml

+ 10 - 0
.classpath

@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
+	<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
+	<classpathentry kind="lib" path="libs/libammsdk.jar"/>
+	<classpathentry kind="src" path="src"/>
+	<classpathentry kind="src" path="gen"/>
+	<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
+	<classpathentry kind="output" path="bin/classes"/>
+</classpath>

+ 5 - 0
.gitignore

@@ -0,0 +1,5 @@
+/.settings
+/bin
+/gen
+
+

+ 33 - 0
.project

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

+ 59 - 0
AndroidManifest.xml

@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+    package="net.sourceforge.simcpux"
+    android:versionCode="1"
+    android:versionName="1.0" >
+
+    <uses-sdk android:minSdkVersion="4" />
+
+    <uses-permission android:name="android.permission.INTERNET" />
+    <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>
+    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
+    
+    <application
+        android:icon="@drawable/ic_launcher"
+        android:label="@string/app_name" >
+        
+        <activity
+            android:name=".wxapi.WXEntryActivity"
+            android:label="@string/app_name"
+            android:exported="true"
+            android:launchMode="singleTop">
+            <intent-filter>
+                <action android:name="android.intent.action.MAIN" />
+                <category android:name="android.intent.category.LAUNCHER" />
+            </intent-filter>
+            
+            <intent-filter>
+                <action android:name="android.intent.action.VIEW"/>
+                <category android:name="android.intent.category.DEFAULT"/>
+                <data android:scheme="sdksample"/>
+            </intent-filter>
+        </activity>
+        
+        <activity
+            android:name=".SendToWXActivity"
+            android:label="@string/app_name"
+            android:theme="@style/MMTheme.Basic"/>
+        
+        <activity
+            android:name=".GetFromWXActivity"
+            android:label="@string/app_name"
+            android:theme="@style/MMTheme.Basic"/>
+        
+        <activity
+            android:name=".ShowFromWXActivity"
+            android:label="@string/app_name"
+            android:theme="@style/MMTheme.Basic"/>
+        
+        <receiver
+            android:name=".AppRegister"
+            android:permission="com.tencent.mm.plugin.permission.SEND" >
+            <intent-filter>
+                <action android:name="com.tencent.mm.plugin.openapi.Intent.ACTION_REFRESH_WXAPP" />
+            </intent-filter>
+        </receiver>
+        
+    </application>
+
+</manifest>

BIN
debug.keystore


BIN
libs/libammsdk.jar


+ 11 - 0
project.properties

@@ -0,0 +1,11 @@
+# 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 use,
+# "ant.properties", and override values to adapt the script to your
+# project structure.
+
+# Project target.
+target=android-21

+ 20 - 0
res/anim/push_up_in.xml

@@ -0,0 +1,20 @@
+<?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">
+	<translate android:fromYDelta="100%p" android:toYDelta="0" android:duration="300"/>
+	<alpha android:fromAlpha="0.0" android:toAlpha="1.0" android:duration="300" />
+</set>

+ 5 - 0
res/color/mm_actbtn_text.xml

@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+	<item android:state_enabled="false" android:color="#5a6980" />
+	<item android:color="#FFFFFF" /> <!-- default -->
+</selector>

+ 15 - 0
res/color/mm_btn_text.xml

@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+<selector
+	xmlns:android="http://schemas.android.com/apk/res/android">
+	<item
+		android:state_enabled="false"
+		android:color="#808080" />
+	<item
+		android:state_pressed="true"
+		android:color="#FFFFFF" />
+	<item
+		android:state_selected="true"
+		android:color="#FFFFFF" />
+	<item
+		android:color="#202020" /> <!-- default -->
+</selector>

+ 12 - 0
res/color/mm_choice_text_color.xml

@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<selector
+	xmlns:android="http://schemas.android.com/apk/res/android">
+	<item
+		android:state_selected="true"
+		android:color="@color/white" />
+	<item
+		android:state_checked="true"
+		android:color="@color/white" />
+	<item
+		android:color="@color/black" />
+</selector>

+ 6 - 0
res/color/mm_hyper_text.xml

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+	<item android:state_enabled="false" android:color="#809aff" />
+	<item android:state_pressed="true" android:color="#01bafe" /><!--809aff  -->
+	<item android:color="#2e5f93" /> <!-- default -->
+</selector>

+ 11 - 0
res/color/mm_list_textcolor_one.xml

@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+	<item android:state_selected="true" android:state_pressed="true"
+		android:color="@color/white" />
+	<item android:state_selected="false" android:state_pressed="true"
+		android:color="@color/white"  />
+	<item android:state_selected="true"
+		android:color="@color/black"  />
+	<item android:state_selected="false"
+		android:color="@color/black"  />
+</selector>

+ 17 - 0
res/color/mm_list_textcolor_time.xml

@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<selector
+	xmlns:android="http://schemas.android.com/apk/res/android">
+	<item
+		android:state_selected="true"
+		android:state_pressed="true"
+		android:color="@color/white" />
+	<item
+		android:state_selected="false"
+		android:state_pressed="true"
+		android:color="@color/white" />
+	<item
+		android:state_selected="true"
+		android:color="#4271AD" />
+	<item
+		android:color="#4271AD" />
+</selector>

+ 18 - 0
res/color/mm_list_textcolor_two.xml

@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<selector
+	xmlns:android="http://schemas.android.com/apk/res/android">
+	<item
+		android:state_selected="true"
+		android:state_pressed="true"
+		android:color="@color/white" />
+	<item
+		android:state_selected="false"
+		android:state_pressed="true"
+		android:color="@color/white" />
+	<item
+		android:state_selected="true"
+		android:color="@color/lightgrey" />
+	<item
+		android:state_selected="false"
+		android:color="@color/lightgrey" />
+</selector>

+ 9 - 0
res/color/mm_pref_summary.xml

@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<selector
+	xmlns:android="http://schemas.android.com/apk/res/android">
+	<item
+		android:state_enabled="false"
+		android:color="#888888" />
+	<item
+		android:color="#888888" /> <!-- default -->
+</selector>

+ 9 - 0
res/color/mm_pref_title.xml

@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<selector
+	xmlns:android="http://schemas.android.com/apk/res/android">
+	<item
+		android:state_enabled="false"
+		android:color="#FF707070" />
+	<item
+		android:color="#FF000000" /> <!-- default -->
+</selector>

+ 9 - 0
res/color/mm_style_one_btn_text.xml

@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<selector
+	xmlns:android="http://schemas.android.com/apk/res/android">
+	<item
+		android:state_enabled="false"
+		android:color="#497000" />
+	<item
+		android:color="#FFFFFF" /> <!-- default -->
+</selector>

+ 7 - 0
res/color/mm_style_two_btn_text.xml

@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+
+    <item android:state_enabled="false" android:color="#676767"/>
+    <item android:color="#000000"/>
+
+</selector>

+ 18 - 0
res/color/mm_title_btn_text.xml

@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<selector
+	xmlns:android="http://schemas.android.com/apk/res/android">
+	<item
+		android:state_enabled="false"
+		android:color="@color/lightgrey" />
+	<item
+		android:state_pressed="true"
+		android:color="@color/lightgrey" />
+	<item
+		android:state_selected="true"
+		android:color="@color/lightgrey" />
+	<item 
+	     android:state_focused="true"
+	     android:color="@color/lightgrey"/>
+	<item
+		android:color="@color/white" /> <!-- default -->
+</selector>

BIN
res/drawable-hdpi/btn_check_off_disable.png


BIN
res/drawable-hdpi/btn_check_off_normal.png


BIN
res/drawable-hdpi/btn_check_on_disable.png


BIN
res/drawable-hdpi/btn_check_on_normal.png


BIN
res/drawable-hdpi/btn_style_alert_dialog_background.9.png


BIN
res/drawable-hdpi/btn_style_alert_dialog_button_normal.9.png


BIN
res/drawable-hdpi/btn_style_alert_dialog_button_pressed.9.png


BIN
res/drawable-hdpi/btn_style_alert_dialog_cancel_normal.9.png


BIN
res/drawable-hdpi/btn_style_alert_dialog_special_normal.9.png


BIN
res/drawable-hdpi/btn_style_alert_dialog_special_pressed.9.png


BIN
res/drawable-hdpi/btn_style_one_disabled.9.png


BIN
res/drawable-hdpi/btn_style_one_focused.9.png


BIN
res/drawable-hdpi/btn_style_one_normal.9.png


BIN
res/drawable-hdpi/btn_style_one_pressed.9.png


BIN
res/drawable-hdpi/ic_dialog_alert.png


BIN
res/drawable-hdpi/ic_dialog_long_click.png


BIN
res/drawable-hdpi/ic_preference_first_normal.9.png


BIN
res/drawable-hdpi/ic_preference_first_pressed.9.png


BIN
res/drawable-hdpi/ic_preference_last_normal.9.png


BIN
res/drawable-hdpi/ic_preference_last_pressed.9.png


BIN
res/drawable-hdpi/ic_preference_normal.9.png


BIN
res/drawable-hdpi/ic_preference_one_normal.9.png


BIN
res/drawable-hdpi/ic_preference_one_pressed.9.png


BIN
res/drawable-hdpi/ic_preference_pressed.9.png


BIN
res/drawable-hdpi/ic_preference_single_normal.9.png


BIN
res/drawable-hdpi/ic_preference_single_pressed.9.png


BIN
res/drawable-hdpi/ic_preference_top_normal.9.png


BIN
res/drawable-hdpi/ic_preference_top_pressed.9.png


BIN
res/drawable-hdpi/mm_checkbox_mini_checked.9.png


BIN
res/drawable-hdpi/mm_checkbox_mini_normal.9.png


BIN
res/drawable-hdpi/mm_edit_focused.9.png


BIN
res/drawable-hdpi/mm_edit_normal.9.png


BIN
res/drawable-hdpi/mm_listitem_disable.9.png


BIN
res/drawable-hdpi/mm_listitem_normal.9.png


BIN
res/drawable-hdpi/mm_listitem_pressed.9.png


BIN
res/drawable-hdpi/mm_submenu_normal.png


BIN
res/drawable-hdpi/mm_submenu_pressed.png


BIN
res/drawable-hdpi/mm_title_act_btn_disable.9.png


BIN
res/drawable-hdpi/mm_title_act_btn_focused.9.png


BIN
res/drawable-hdpi/mm_title_act_btn_normal.9.png


BIN
res/drawable-hdpi/mm_title_act_btn_pressed.9.png


BIN
res/drawable-hdpi/mm_title_back_focused.9.png


BIN
res/drawable-hdpi/mm_title_back_normal.9.png


BIN
res/drawable-hdpi/mm_title_back_pressed.9.png


BIN
res/drawable-hdpi/mm_title_bg.9.png


BIN
res/drawable-hdpi/mm_title_btn_focused.9.png


BIN
res/drawable-hdpi/mm_title_btn_normal.9.png


BIN
res/drawable-hdpi/mm_title_btn_pressed.9.png


BIN
res/drawable-hdpi/mm_trans.png


BIN
res/drawable-hdpi/send_img.jpg


BIN
res/drawable-hdpi/send_music_thumb.png


BIN
res/drawable-hdpi/send_music_thumb_backup.png


BIN
res/drawable-ldpi/ic_launcher.png


BIN
res/drawable-mdpi/ic_launcher.png


+ 9 - 0
res/drawable/btn_style_alert_dialog_button.xml

@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<selector
+	xmlns:android="http://schemas.android.com/apk/res/android">
+	<item
+		android:state_pressed="true"
+		android:drawable="@drawable/btn_style_alert_dialog_button_pressed" />
+	<item
+		android:drawable="@drawable/btn_style_alert_dialog_button_normal" />
+</selector>

+ 9 - 0
res/drawable/btn_style_alert_dialog_cancel.xml

@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<selector
+	xmlns:android="http://schemas.android.com/apk/res/android">
+	<item
+		android:state_pressed="true"
+		android:drawable="@drawable/btn_style_alert_dialog_button_pressed" />
+	<item
+		android:drawable="@drawable/btn_style_alert_dialog_cancel_normal" />
+</selector>

+ 9 - 0
res/drawable/btn_style_alert_dialog_special.xml

@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<selector
+	xmlns:android="http://schemas.android.com/apk/res/android">
+	<item
+		android:state_pressed="true"
+		android:drawable="@drawable/btn_style_alert_dialog_special_pressed" />
+	<item
+		android:drawable="@drawable/btn_style_alert_dialog_special_normal" />
+</selector>

+ 10 - 0
res/drawable/btn_style_one.xml

@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+
+    <item android:drawable="@drawable/btn_style_one_disabled" android:state_enabled="false"/>
+    <item android:drawable="@drawable/btn_style_one_pressed" android:state_focused="true" android:state_pressed="true"/>
+    <item android:drawable="@drawable/btn_style_one_pressed" android:state_focused="false" android:state_pressed="true"/>
+    <item android:drawable="@drawable/btn_style_one_focused" android:state_focused="true"/>
+    <item android:drawable="@drawable/btn_style_one_normal" android:state_focused="false"/>
+
+</selector>

+ 44 - 0
res/drawable/list_selector_background.xml

@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="utf-8"?>
+	<!--
+		Copyright (C) 2008 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.
+	-->
+
+<selector
+	xmlns:android="http://schemas.android.com/apk/res/android">
+
+	<item
+		android:state_window_focused="false"
+		android:drawable="@drawable/mm_listitem_normal" />
+
+	<!--
+		Even though these two point to the same resource, have two states so the drawable will invalidate itself when coming
+		out of pressed state.
+	-->
+	<item
+		android:state_focused="true"
+		android:state_enabled="false"
+		android:state_pressed="true"
+		android:drawable="@drawable/mm_listitem_disable" />
+	<item
+		android:state_focused="true"
+		android:state_enabled="false"
+		android:drawable="@drawable/mm_listitem_disable" />
+
+	<item
+		android:state_focused="true"
+		android:state_pressed="true"
+		android:drawable="@drawable/mm_listitem_pressed" />
+	<item
+		android:state_focused="false"
+		android:state_pressed="true"
+		android:drawable="@drawable/mm_listitem_pressed" />
+
+	<item
+		android:state_focused="true"
+		android:drawable="@drawable/mm_listitem_pressed" />
+</selector>

+ 20 - 0
res/drawable/mm_checkbox_btn.xml

@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<selector
+	xmlns:android="http://schemas.android.com/apk/res/android">
+	<item
+		android:state_checked="true"
+		android:state_enabled="false"
+		android:drawable="@drawable/btn_check_on_disable" />
+	<item
+		android:state_checked="false"
+		android:state_enabled="false"
+		android:drawable="@drawable/btn_check_off_disable" />
+	<item
+		android:state_checked="true"
+		android:state_enabled="true"
+		android:drawable="@drawable/btn_check_on_normal" />
+	<item
+		android:state_checked="false"
+		android:state_enabled="true"
+		android:drawable="@drawable/btn_check_off_normal" />
+</selector> 

+ 5 - 0
res/drawable/mm_checkbox_mini.xml

@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+	<item android:state_checked="true" android:drawable="@drawable/mm_checkbox_mini_checked" />
+	<item android:state_checked="false" android:drawable="@drawable/mm_checkbox_mini_normal" />
+</selector>

+ 11 - 0
res/drawable/mm_edit.xml

@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+	<item android:state_focused="true" android:state_pressed="true"
+		android:drawable="@drawable/mm_edit_focused" />
+	<item android:state_focused="false" android:state_pressed="true"
+		android:drawable="@drawable/mm_edit_focused" />
+	<item android:state_focused="true"
+		android:drawable="@drawable/mm_edit_focused" />
+	<item android:state_focused="false"
+		android:drawable="@drawable/mm_edit_normal" />
+</selector>

+ 15 - 0
res/drawable/mm_submenu.xml

@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<selector
+	xmlns:android="http://schemas.android.com/apk/res/android">
+	<item
+		android:state_selected="true"
+		android:drawable="@drawable/mm_submenu_pressed" />
+	<item
+		android:state_focused="true"
+		android:drawable="@drawable/mm_submenu_pressed" />
+	<item
+		android:state_pressed="true"
+		android:drawable="@drawable/mm_submenu_pressed" />
+	<item
+		android:drawable="@drawable/mm_submenu_normal" />
+</selector>

+ 8 - 0
res/drawable/mm_title_btn_back.xml

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<selector
+  xmlns:android="http://schemas.android.com/apk/res/android">
+    <item android:state_focused="true" android:drawable="@drawable/mm_title_back_focused" />
+		<item android:state_pressed="true" android:drawable="@drawable/mm_title_back_pressed" />
+		<item android:state_selected="true" android:drawable="@drawable/mm_title_back_pressed" />
+		<item android:drawable="@drawable/mm_title_back_normal" />
+</selector>

+ 15 - 0
res/drawable/mm_title_btn_right.xml

@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<selector
+	xmlns:android="http://schemas.android.com/apk/res/android">
+	<item
+		android:state_focused="true"
+		android:drawable="@drawable/mm_title_btn_focused" />
+	<item
+		android:state_pressed="true"
+		android:drawable="@drawable/mm_title_btn_pressed" />
+	<item
+		android:state_selected="true"
+		android:drawable="@drawable/mm_title_btn_pressed" />
+	<item
+		android:drawable="@drawable/mm_title_btn_normal" />
+</selector>

+ 7 - 0
res/drawable/preference_first_item.xml

@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<selector
+  xmlns:android="http://schemas.android.com/apk/res/android">
+    <item android:state_enabled="true" android:state_selected="true" android:drawable="@drawable/ic_preference_first_pressed" />
+    <item android:state_enabled="true" android:state_pressed="true" android:drawable="@drawable/ic_preference_first_pressed" />
+    <item android:drawable="@drawable/ic_preference_first_normal" />
+</selector>

+ 7 - 0
res/drawable/preference_item.xml

@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<selector
+  xmlns:android="http://schemas.android.com/apk/res/android">
+    <item android:state_enabled="true" android:state_selected="true" android:drawable="@drawable/ic_preference_pressed" />
+    <item android:state_enabled="true" android:state_pressed="true" android:drawable="@drawable/ic_preference_pressed" />
+    <item android:drawable="@drawable/ic_preference_normal" />
+</selector>

+ 7 - 0
res/drawable/preference_last_item.xml

@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<selector
+  xmlns:android="http://schemas.android.com/apk/res/android">
+    <item android:state_enabled="true" android:state_selected="true" android:drawable="@drawable/ic_preference_last_pressed" />
+    <item android:state_enabled="true" android:state_pressed="true" android:drawable="@drawable/ic_preference_last_pressed" />
+    <item android:drawable="@drawable/ic_preference_last_normal" />
+</selector>

+ 7 - 0
res/drawable/preference_one_item.xml

@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<selector
+  xmlns:android="http://schemas.android.com/apk/res/android">
+    <item android:state_enabled="true" android:state_selected="true" android:drawable="@drawable/ic_preference_one_pressed" />
+    <item android:state_enabled="true" android:state_pressed="true" android:drawable="@drawable/ic_preference_one_pressed" />
+    <item android:drawable="@drawable/ic_preference_one_normal" />
+</selector>

+ 18 - 0
res/layout/alert_dialog_menu_layout.xml

@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout
+	xmlns:android="http://schemas.android.com/apk/res/android"
+	android:orientation="vertical"
+	android:gravity="bottom"
+	android:layout_width="fill_parent"
+	android:layout_height="fill_parent"
+	android:background="@drawable/btn_style_alert_dialog_background">
+	<ListView
+		android:layout_marginLeft="15dp"
+		android:layout_marginRight="15dp"
+		android:layout_gravity="center"
+		android:id="@+id/content_list"
+		android:layout_width="fill_parent"
+		android:layout_height="fill_parent"
+		android:listSelector="@drawable/mm_trans"
+		android:cacheColorHint="@color/transparent" />
+</LinearLayout>

+ 19 - 0
res/layout/alert_dialog_menu_list_layout.xml

@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout
+	xmlns:android="http://schemas.android.com/apk/res/android"
+	android:id="@+id/popup_layout"
+	android:orientation="vertical"
+	android:layout_width="fill_parent"
+	android:layout_height="wrap_content"
+	android:paddingTop="6dp"
+	android:paddingBottom="4dp">
+	<TextView
+		android:id="@+id/popup_text"
+		android:textSize="@dimen/TitleTextSize"
+		android:textColor="@color/black"
+		android:layout_width="fill_parent"
+		android:layout_height="45dp"
+		android:gravity="center"
+		android:background="@drawable/btn_style_alert_dialog_button" />
+	
+</LinearLayout>

+ 19 - 0
res/layout/alert_dialog_menu_list_layout_cancel.xml

@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout
+	xmlns:android="http://schemas.android.com/apk/res/android"
+	android:id="@+id/popup_layout"
+	android:orientation="vertical"
+	android:layout_width="fill_parent"
+	android:layout_height="wrap_content"
+	android:paddingTop="15dp"
+	android:paddingBottom="12dp">
+	<TextView
+		android:id="@+id/popup_text"
+		android:layout_width="fill_parent"
+		android:layout_height="45dp"
+		android:gravity="center"
+		android:textSize="@dimen/TitleTextSize"
+		android:textColor="@color/white"
+		android:background="@drawable/btn_style_alert_dialog_cancel" />
+	
+</LinearLayout>

+ 19 - 0
res/layout/alert_dialog_menu_list_layout_special.xml

@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout
+	xmlns:android="http://schemas.android.com/apk/res/android"
+	android:id="@+id/popup_layout"
+	android:orientation="vertical"
+	android:layout_width="fill_parent"
+	android:layout_height="wrap_content"
+	android:paddingTop="6dp"
+	android:paddingBottom="4dp">
+	<TextView
+		android:id="@+id/popup_text"
+		android:textSize="@dimen/TitleTextSize"
+		android:textColor="@color/white"
+		android:layout_width="fill_parent"
+		android:layout_height="45dp"
+		android:gravity="center"
+		android:background="@drawable/btn_style_alert_dialog_special" />
+	
+</LinearLayout>

+ 24 - 0
res/layout/alert_dialog_menu_list_layout_title.xml

@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    android:id="@+id/popup_layout"
+    android:layout_width="fill_parent"
+    android:layout_height="wrap_content"
+    android:orientation="vertical"
+    android:paddingBottom="2dp"
+    android:paddingTop="3dp" >
+
+    <TextView
+        android:id="@+id/popup_text"
+        style="@style/MMLineActionButton"
+        android:layout_height="45dp"
+        android:background="@null"
+        android:gravity="center"
+        android:shadowColor="#000000"
+        android:shadowDx="1.2"
+        android:shadowDy="1.2"
+        android:shadowRadius="1"
+        android:singleLine="false"
+        android:textColor="@color/white"
+        android:textSize="@dimen/LargeTextSize" />
+
+</LinearLayout>

+ 37 - 0
res/layout/entry.xml

@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    android:orientation="vertical"
+    style="@style/NavPage">
+
+    <TextView
+        android:id="@+id/result_tv"
+        android:layout_width="fill_parent"
+        android:layout_height="wrap_content"
+	 	android:textSize="20dp"
+        android:text="@string/enter"/>
+    
+    <Button
+        android:id="@+id/reg_btn"
+        style="@style/MMLineActionButton"
+	    android:layout_margin="10dp"
+        android:text="@string/reg"/>
+    
+    <Button
+        android:id="@+id/goto_send_btn"
+        style="@style/MMLineActionButton"
+	    android:layout_margin="10dp"
+        android:text="@string/goto_send"/>
+    
+    <Button
+        android:id="@+id/launch_wx_btn"
+        style="@style/MMLineActionButton"
+	    android:layout_margin="10dp"
+        android:text="@string/launch_wx"/>
+    
+    <Button
+        android:id="@+id/check_timeline_supported_btn"
+        style="@style/MMLineActionButton"
+        android:layout_margin="10dp"
+        android:text="@string/check_timeline_supported"/>
+
+</LinearLayout>

+ 54 - 0
res/layout/get_from_wx.xml

@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" 
+    style="@style/NavPage">
+    
+	<LinearLayout 
+	    android:layout_width="fill_parent"
+	    android:layout_height="fill_parent"
+	    android:gravity="center_vertical"
+	    android:orientation="vertical" >
+        
+		<TextView
+	        android:layout_width="fill_parent"
+	        android:layout_height="wrap_content"
+	        android:text="@string/receive"/>
+	    
+	    <Button
+	        android:id="@+id/get_text"
+	        style="@style/MMLineActionButton"
+	        android:layout_margin="10dp"
+	        android:text="@string/share_text_to_weixin" />
+	
+	    <Button
+	        android:id="@+id/get_img"
+	        style="@style/MMLineActionButton"
+	        android:layout_margin="10dp"
+	        android:text="@string/share_pic_to_weixin" />
+	        
+	    <Button
+	        android:id="@+id/get_music"
+	        style="@style/MMLineActionButton"
+	        android:layout_margin="10dp"
+	        android:text="@string/share_music_to_weixin" />
+	        
+	    <Button
+	        android:id="@+id/get_video"
+	        style="@style/MMLineActionButton"
+	        android:layout_margin="10dp"
+	        android:text="@string/share_video_to_weixin" />
+
+	    <Button
+	        android:id="@+id/get_webpage"
+	        style="@style/MMLineActionButton"
+	        android:layout_margin="10dp"
+	        android:text="@string/share_url_to_weixin" />
+	
+	    <Button
+	        android:id="@+id/get_appdata"
+	        style="@style/MMLineActionButton"
+	        android:layout_margin="10dp"
+	        android:text="@string/share_appdata_to_weixin" />
+	
+	</LinearLayout>
+</ScrollView>

+ 25 - 0
res/layout/image_button.xml

@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    android:id="@+id/title_btn"
+    android:layout_width="wrap_content"
+    android:layout_height="fill_parent"
+    android:background="@null"
+    android:gravity="center"
+    android:orientation="vertical"
+    android:visibility="visible" >
+
+    <ImageView
+        android:id="@+id/title_btn_iv"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content" />
+
+    <TextView
+        android:id="@+id/title_btn_tv"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:clickable="false"
+        android:focusable="false"
+        android:focusableInTouchMode="false"
+        android:textColor="@color/mm_title_btn_text" />
+
+</LinearLayout>

+ 21 - 0
res/layout/mm_activity.xml

@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    android:layout_width="fill_parent"
+    android:layout_height="fill_parent" >
+
+    <LinearLayout
+        android:id="@+id/mm_root_view"
+        android:layout_width="fill_parent"
+        android:layout_height="fill_parent"
+        android:orientation="vertical" >
+    </LinearLayout>
+
+    <Button
+        android:id="@+id/mm_trans_layer"
+        android:layout_width="fill_parent"
+        android:layout_height="fill_parent"
+        android:background="@color/semitransparent"
+        android:visibility="gone" >
+    </Button>
+
+</FrameLayout>

+ 10 - 0
res/layout/mm_example_ui.xml

@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    style="@style/NavPage" >
+
+    <ScrollView
+        android:id="@+id/mm_body_sv"
+        style="@style/MMScroll" >
+    </ScrollView>
+
+</LinearLayout>

+ 41 - 0
res/layout/mm_preference.xml

@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    android:layout_width="fill_parent"
+    android:layout_height="wrap_content"
+    android:background="@drawable/preference_item"
+    android:gravity="center_vertical" >
+
+    <LinearLayout
+        android:id="@+id/content"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_marginRight="4sp"
+        android:layout_weight="1"
+        android:gravity="left|center_vertical"
+        android:minHeight="@dimen/PreferenceItemHeight" >
+
+        <TextView
+            android:id="@+android:id/title"
+            style="@style/MMFontPreferenceLarge"
+            android:layout_width="fill_parent"
+            android:layout_height="wrap_content"
+            android:layout_marginLeft="6dp"
+            android:layout_weight="1"
+            android:singleLine="true"/>
+
+        <TextView
+            android:id="@+android:id/summary"
+            style="@style/MMFontPreferenceSummary"
+            android:singleLine="true" />
+    </LinearLayout>
+
+    <!-- Preference should place its actual preference widget here. -->
+
+    <LinearLayout
+        android:id="@+android:id/widget_frame"
+        android:layout_width="wrap_content"
+        android:layout_height="fill_parent"
+        android:gravity="right|center_vertical"
+        android:orientation="vertical" />
+
+</LinearLayout>

Some files were not shown because too many files changed in this diff