├── MvvmSample ├── .classpath ├── .gitignore ├── .project ├── AndroidManifest.xml ├── libs │ ├── android-support-v4.jar │ └── jackson-all-1.9.9.jar ├── proguard-project.txt ├── project.properties ├── res │ ├── drawable-hdpi │ │ └── ic_launcher.png │ ├── drawable-mdpi │ │ └── ic_launcher.png │ ├── drawable-xhdpi │ │ └── ic_launcher.png │ ├── drawable │ │ ├── video_pause.png │ │ ├── video_pause_drawable.xml │ │ ├── video_pause_pressed.png │ │ ├── video_play.png │ │ ├── video_play_drawable.xml │ │ └── video_play_pressed.png │ ├── layout │ │ └── activity_main.xml │ ├── menu │ │ └── activity_main.xml │ ├── values-v11 │ │ └── styles.xml │ ├── values-v14 │ │ └── styles.xml │ └── values │ │ ├── strings.xml │ │ └── styles.xml └── src │ └── com │ └── example │ └── mvvmsample │ ├── model │ ├── Video.java │ └── state │ │ └── VideoPlayerState.java │ ├── mvvm │ ├── BaseStateModel.java │ ├── BaseViewModel.java │ ├── BaseViewModelEvent.java │ ├── Event.java │ └── Observable.java │ ├── view │ └── VideoPlayerView.java │ └── viewmodel │ ├── VideoPlayerViewModel.java │ └── VideoPlayerViewModelEvent.java └── README.md /MvvmSample/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /MvvmSample/.gitignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /gen 3 | -------------------------------------------------------------------------------- /MvvmSample/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | MvvmSample 4 | 5 | 6 | 7 | 8 | 9 | com.android.ide.eclipse.adt.ResourceManagerBuilder 10 | 11 | 12 | 13 | 14 | com.android.ide.eclipse.adt.PreCompilerBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.jdt.core.javabuilder 20 | 21 | 22 | 23 | 24 | com.android.ide.eclipse.adt.ApkBuilder 25 | 26 | 27 | 28 | 29 | 30 | com.android.ide.eclipse.adt.AndroidNature 31 | org.eclipse.jdt.core.javanature 32 | 33 | 34 | -------------------------------------------------------------------------------- /MvvmSample/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 10 | 11 | 16 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /MvvmSample/libs/android-support-v4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kejunxia/Android-Mvvm/4cd52427d1462435d96da4fee0c9a8987c00b50b/MvvmSample/libs/android-support-v4.jar -------------------------------------------------------------------------------- /MvvmSample/libs/jackson-all-1.9.9.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kejunxia/Android-Mvvm/4cd52427d1462435d96da4fee0c9a8987c00b50b/MvvmSample/libs/jackson-all-1.9.9.jar -------------------------------------------------------------------------------- /MvvmSample/proguard-project.txt: -------------------------------------------------------------------------------- 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 | #} 21 | -------------------------------------------------------------------------------- /MvvmSample/project.properties: -------------------------------------------------------------------------------- 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 15 | -------------------------------------------------------------------------------- /MvvmSample/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kejunxia/Android-Mvvm/4cd52427d1462435d96da4fee0c9a8987c00b50b/MvvmSample/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /MvvmSample/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kejunxia/Android-Mvvm/4cd52427d1462435d96da4fee0c9a8987c00b50b/MvvmSample/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /MvvmSample/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kejunxia/Android-Mvvm/4cd52427d1462435d96da4fee0c9a8987c00b50b/MvvmSample/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /MvvmSample/res/drawable/video_pause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kejunxia/Android-Mvvm/4cd52427d1462435d96da4fee0c9a8987c00b50b/MvvmSample/res/drawable/video_pause.png -------------------------------------------------------------------------------- /MvvmSample/res/drawable/video_pause_drawable.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /MvvmSample/res/drawable/video_pause_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kejunxia/Android-Mvvm/4cd52427d1462435d96da4fee0c9a8987c00b50b/MvvmSample/res/drawable/video_pause_pressed.png -------------------------------------------------------------------------------- /MvvmSample/res/drawable/video_play.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kejunxia/Android-Mvvm/4cd52427d1462435d96da4fee0c9a8987c00b50b/MvvmSample/res/drawable/video_play.png -------------------------------------------------------------------------------- /MvvmSample/res/drawable/video_play_drawable.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /MvvmSample/res/drawable/video_play_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kejunxia/Android-Mvvm/4cd52427d1462435d96da4fee0c9a8987c00b50b/MvvmSample/res/drawable/video_play_pressed.png -------------------------------------------------------------------------------- /MvvmSample/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 16 | 17 | 26 | 27 | 35 | 36 | 44 | 45 | 53 | 54 |