├── .idea
├── .name
├── copyright
│ └── profiles_settings.xml
├── encodings.xml
├── vcs.xml
├── modules.xml
├── compiler.xml
├── gradle.xml
└── misc.xml
├── app
├── .gitignore
├── libs
│ ├── fastjson.jar
│ ├── libammsdk.jar
│ └── BmobSDK_V3.3.8_0521.jar
├── src
│ ├── main
│ │ ├── res
│ │ │ ├── mipmap-hdpi
│ │ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-mdpi
│ │ │ │ └── ic_launcher.png
│ │ │ ├── drawable-xhdpi
│ │ │ │ ├── ic_wx_logo.png
│ │ │ │ ├── ic_done_white.png
│ │ │ │ ├── ic_edit_white.png
│ │ │ │ ├── ic_more_grey.png
│ │ │ │ ├── ic_share_more.png
│ │ │ │ ├── ic_sina_logo.png
│ │ │ │ ├── ic_wx_collect.png
│ │ │ │ ├── ic_wx_moments.png
│ │ │ │ └── alipay_erweima.jpg
│ │ │ ├── mipmap-xhdpi
│ │ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ │ └── ic_launcher.png
│ │ │ ├── drawable-hdpi
│ │ │ │ ├── ic_done_white.png
│ │ │ │ └── ic_edit_white.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ │ └── ic_launcher.png
│ │ │ ├── drawable-xxhdpi
│ │ │ │ ├── ic_done_white.png
│ │ │ │ └── ic_edit_white.png
│ │ │ ├── drawable
│ │ │ │ ├── blue_round.xml
│ │ │ │ ├── pink_round.xml
│ │ │ │ ├── red_round.xml
│ │ │ │ ├── brown_round.xml
│ │ │ │ ├── green_round.xml
│ │ │ │ ├── yellow_round.xml
│ │ │ │ ├── blue_grey_round.xml
│ │ │ │ ├── deep_purple_round.xml
│ │ │ │ ├── white_button_background.xml
│ │ │ │ ├── selectable_background.xml
│ │ │ │ ├── toolbar_shadow.xml
│ │ │ │ └── activated_background.xml
│ │ │ ├── xml
│ │ │ │ ├── searchable.xml
│ │ │ │ └── prefs.xml
│ │ │ ├── layout
│ │ │ │ ├── toolbar_shadow_layout.xml
│ │ │ │ ├── toolbar_layout.xml
│ │ │ │ ├── edit_layout.xml
│ │ │ │ ├── colors_panel_layout.xml
│ │ │ │ ├── activity_setting.xml
│ │ │ │ ├── colors_image_layout.xml
│ │ │ │ ├── drawer_list_item_layout.xml
│ │ │ │ ├── activity_pay.xml
│ │ │ │ ├── activity_edit_note_type.xml
│ │ │ │ ├── md_simplelist_item.xml
│ │ │ │ ├── activity_note.xml
│ │ │ │ ├── notes_item_layout.xml
│ │ │ │ ├── activity_main.xml
│ │ │ │ └── activity_about.xml
│ │ │ ├── menu
│ │ │ │ ├── menu_note.xml
│ │ │ │ ├── menu_about.xml
│ │ │ │ ├── menu_notes_more.xml
│ │ │ │ └── menu_main.xml
│ │ │ └── values
│ │ │ │ ├── dimens.xml
│ │ │ │ ├── colors.xml
│ │ │ │ └── strings.xml
│ │ ├── java
│ │ │ └── com
│ │ │ │ └── lguipeng
│ │ │ │ └── notes
│ │ │ │ ├── listener
│ │ │ │ ├── bmob
│ │ │ │ │ ├── SaveListenerImpl.java
│ │ │ │ │ ├── UpdateListenerImpl.java
│ │ │ │ │ └── FindListenerImpl.java
│ │ │ │ └── view
│ │ │ │ │ └── RecyclerViewClickListener.java
│ │ │ │ ├── adpater
│ │ │ │ ├── DrawerListAdapter.java
│ │ │ │ ├── MaterialSimpleListAdapter.java
│ │ │ │ ├── SimpleListAdapter.java
│ │ │ │ ├── ColorsListAdapter.java
│ │ │ │ ├── NotesItemViewHolder.java
│ │ │ │ ├── BaseListAdapter.java
│ │ │ │ ├── NotesAdapter.java
│ │ │ │ └── BaseRecyclerViewAdapter.java
│ │ │ │ ├── utils
│ │ │ │ ├── NoteConfig.java
│ │ │ │ ├── ViewHelper.java
│ │ │ │ ├── SnackbarUtils.java
│ │ │ │ ├── JsonUtils.java
│ │ │ │ ├── ThemeUtils.java
│ │ │ │ ├── AccountUtils.java
│ │ │ │ ├── PreferenceUtils.java
│ │ │ │ ├── TimeUtils.java
│ │ │ │ └── NotesLog.java
│ │ │ │ ├── module
│ │ │ │ ├── AppModule.java
│ │ │ │ └── DataModule.java
│ │ │ │ ├── model
│ │ │ │ ├── NoteType.java
│ │ │ │ ├── NoteOperateLog.java
│ │ │ │ ├── CloudNote.java
│ │ │ │ ├── MaterialSimpleListItem.java
│ │ │ │ └── Note.java
│ │ │ │ ├── ui
│ │ │ │ ├── PayActivity.java
│ │ │ │ ├── SettingActivity.java
│ │ │ │ ├── fragments
│ │ │ │ │ └── BaseFragment.java
│ │ │ │ ├── EditNoteTypeActivity.java
│ │ │ │ └── BaseActivity.java
│ │ │ │ ├── view
│ │ │ │ └── FixedRecyclerView.java
│ │ │ │ └── App.java
│ │ └── AndroidManifest.xml
│ └── androidTest
│ │ └── java
│ │ └── com
│ │ └── lguipeng
│ │ └── notes
│ │ └── ApplicationTest.java
├── proguard-rules.pro
└── build.gradle
├── orm-library
├── .gitignore
├── src
│ ├── main
│ │ ├── res
│ │ │ └── values
│ │ │ │ └── strings.xml
│ │ ├── AndroidManifest.xml
│ │ └── java
│ │ │ └── net
│ │ │ └── tsz
│ │ │ └── afinal
│ │ │ ├── db
│ │ │ ├── table
│ │ │ │ ├── Id.java
│ │ │ │ ├── OneToMany.java
│ │ │ │ ├── ManyToOne.java
│ │ │ │ ├── KeyValue.java
│ │ │ │ ├── Property.java
│ │ │ │ └── TableInfo.java
│ │ │ └── sqlite
│ │ │ │ ├── SqlInfo.java
│ │ │ │ ├── OneToManyLazyLoader.java
│ │ │ │ ├── ManyToOneLazyLoader.java
│ │ │ │ ├── DbModel.java
│ │ │ │ └── CursorUtils.java
│ │ │ ├── annotation
│ │ │ └── sqlite
│ │ │ │ ├── Table.java
│ │ │ │ ├── Transient.java
│ │ │ │ ├── ManyToOne.java
│ │ │ │ ├── OneToMany.java
│ │ │ │ ├── Property.java
│ │ │ │ └── Id.java
│ │ │ ├── exception
│ │ │ ├── DbException.java
│ │ │ └── AfinalException.java
│ │ │ ├── core
│ │ │ └── FileNameGenerator.java
│ │ │ └── utils
│ │ │ └── Utils.java
│ └── androidTest
│ │ └── java
│ │ └── com
│ │ └── lguipeng
│ │ └── library
│ │ └── ApplicationTest.java
├── build.gradle
└── proguard-rules.pro
├── settings.gradle
├── MaterialPreference
├── src
│ └── main
│ │ ├── AndroidManifest.xml
│ │ ├── assets
│ │ └── fonts
│ │ │ ├── Roboto-Medium.ttf
│ │ │ └── Roboto-Regular.ttf
│ │ ├── res
│ │ ├── values
│ │ │ └── mp_attrs.xml
│ │ └── layout
│ │ │ ├── mp_checkbox_preference.xml
│ │ │ ├── mp_switch_preference.xml
│ │ │ ├── mp_preference_category.xml
│ │ │ └── mp_preference.xml
│ │ └── java
│ │ └── com
│ │ └── jenzz
│ │ └── materialpreference
│ │ ├── Typefaces.java
│ │ ├── ThemeUtils.java
│ │ ├── SwitchPreference.java
│ │ ├── CheckBoxPreference.java
│ │ ├── PreferenceCategory.java
│ │ ├── PreferenceImageView.java
│ │ └── Preference.java
└── build.gradle
├── screenshot
├── S50603-103314.jpg
├── S50605-164248.jpg
├── S50605-164615.jpg
├── S50611-163425.jpg
├── S50611-163752.jpg
├── S50611-164132.jpg
└── S50611-164146.jpg
├── gradle
└── wrapper
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── .gitignore
├── Notes.iml
├── gradle.properties
├── README.md
├── gradlew.bat
└── gradlew
/.idea/.name:
--------------------------------------------------------------------------------
1 | Notes
--------------------------------------------------------------------------------
/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/orm-library/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app', ':orm-library', ':MaterialPreference'
2 |
--------------------------------------------------------------------------------
/app/libs/fastjson.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daimajia/Notes/HEAD/app/libs/fastjson.jar
--------------------------------------------------------------------------------
/MaterialPreference/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/app/libs/libammsdk.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daimajia/Notes/HEAD/app/libs/libammsdk.jar
--------------------------------------------------------------------------------
/screenshot/S50603-103314.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daimajia/Notes/HEAD/screenshot/S50603-103314.jpg
--------------------------------------------------------------------------------
/screenshot/S50605-164248.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daimajia/Notes/HEAD/screenshot/S50605-164248.jpg
--------------------------------------------------------------------------------
/screenshot/S50605-164615.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daimajia/Notes/HEAD/screenshot/S50605-164615.jpg
--------------------------------------------------------------------------------
/screenshot/S50611-163425.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daimajia/Notes/HEAD/screenshot/S50611-163425.jpg
--------------------------------------------------------------------------------
/screenshot/S50611-163752.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daimajia/Notes/HEAD/screenshot/S50611-163752.jpg
--------------------------------------------------------------------------------
/screenshot/S50611-164132.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daimajia/Notes/HEAD/screenshot/S50611-164132.jpg
--------------------------------------------------------------------------------
/screenshot/S50611-164146.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daimajia/Notes/HEAD/screenshot/S50611-164146.jpg
--------------------------------------------------------------------------------
/app/libs/BmobSDK_V3.3.8_0521.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daimajia/Notes/HEAD/app/libs/BmobSDK_V3.3.8_0521.jar
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daimajia/Notes/HEAD/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/.idea/copyright/profiles_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/orm-library/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | library
3 |
4 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .gradle
2 | /local.properties
3 | /.idea/workspace.xml
4 | /.idea/libraries
5 | .DS_Store
6 | /build
7 | /captures
8 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daimajia/Notes/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daimajia/Notes/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xhdpi/ic_wx_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daimajia/Notes/HEAD/app/src/main/res/drawable-xhdpi/ic_wx_logo.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daimajia/Notes/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daimajia/Notes/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/ic_done_white.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daimajia/Notes/HEAD/app/src/main/res/drawable-hdpi/ic_done_white.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/ic_edit_white.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daimajia/Notes/HEAD/app/src/main/res/drawable-hdpi/ic_edit_white.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xhdpi/ic_done_white.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daimajia/Notes/HEAD/app/src/main/res/drawable-xhdpi/ic_done_white.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xhdpi/ic_edit_white.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daimajia/Notes/HEAD/app/src/main/res/drawable-xhdpi/ic_edit_white.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xhdpi/ic_more_grey.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daimajia/Notes/HEAD/app/src/main/res/drawable-xhdpi/ic_more_grey.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xhdpi/ic_share_more.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daimajia/Notes/HEAD/app/src/main/res/drawable-xhdpi/ic_share_more.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xhdpi/ic_sina_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daimajia/Notes/HEAD/app/src/main/res/drawable-xhdpi/ic_sina_logo.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xhdpi/ic_wx_collect.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daimajia/Notes/HEAD/app/src/main/res/drawable-xhdpi/ic_wx_collect.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xhdpi/ic_wx_moments.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daimajia/Notes/HEAD/app/src/main/res/drawable-xhdpi/ic_wx_moments.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daimajia/Notes/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xhdpi/alipay_erweima.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daimajia/Notes/HEAD/app/src/main/res/drawable-xhdpi/alipay_erweima.jpg
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xxhdpi/ic_done_white.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daimajia/Notes/HEAD/app/src/main/res/drawable-xxhdpi/ic_done_white.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xxhdpi/ic_edit_white.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daimajia/Notes/HEAD/app/src/main/res/drawable-xxhdpi/ic_edit_white.png
--------------------------------------------------------------------------------
/MaterialPreference/src/main/assets/fonts/Roboto-Medium.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daimajia/Notes/HEAD/MaterialPreference/src/main/assets/fonts/Roboto-Medium.ttf
--------------------------------------------------------------------------------
/MaterialPreference/src/main/assets/fonts/Roboto-Regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daimajia/Notes/HEAD/MaterialPreference/src/main/assets/fonts/Roboto-Regular.ttf
--------------------------------------------------------------------------------
/.idea/encodings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/MaterialPreference/src/main/res/values/mp_attrs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
6 |
7 |
--------------------------------------------------------------------------------
/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/blue_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/pink_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/red_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/brown_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/green_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/yellow_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/blue_grey_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/deep_purple_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/app/src/main/res/xml/searchable.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
--------------------------------------------------------------------------------
/orm-library/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/white_button_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Wed Apr 10 15:27:10 PDT 2013
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip
7 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/toolbar_shadow_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/selectable_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/toolbar_shadow.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
--------------------------------------------------------------------------------
/MaterialPreference/src/main/res/layout/mp_checkbox_preference.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/app/src/main/res/menu/menu_note.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/toolbar_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/app/src/main/res/menu/menu_about.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/edit_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/MaterialPreference/src/main/res/layout/mp_switch_preference.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/app/src/androidTest/java/com/lguipeng/notes/ApplicationTest.java:
--------------------------------------------------------------------------------
1 | package com.lguipeng.notes;
2 |
3 | import android.app.Application;
4 | import android.test.ApplicationTestCase;
5 |
6 | /**
7 | * Testing Fundamentals
8 | */
9 | public class ApplicationTest extends ApplicationTestCase {
10 | public ApplicationTest() {
11 | super(Application.class);
12 | }
13 | }
--------------------------------------------------------------------------------
/orm-library/src/androidTest/java/com/lguipeng/library/ApplicationTest.java:
--------------------------------------------------------------------------------
1 | package com.lguipeng.library;
2 |
3 | import android.app.Application;
4 | import android.test.ApplicationTestCase;
5 |
6 | /**
7 | * Testing Fundamentals
8 | */
9 | public class ApplicationTest extends ApplicationTestCase {
10 | public ApplicationTest() {
11 | super(Application.class);
12 | }
13 | }
--------------------------------------------------------------------------------
/app/src/main/res/menu/menu_notes_more.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/MaterialPreference/src/main/res/layout/mp_preference_category.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/app/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 40dp
4 | 18dp
5 | 16sp
6 | 48dp
7 | 8dp
8 | 24dp
9 | 200dp
10 |
--------------------------------------------------------------------------------
/app/src/main/java/com/lguipeng/notes/listener/bmob/SaveListenerImpl.java:
--------------------------------------------------------------------------------
1 | package com.lguipeng.notes.listener.bmob;
2 |
3 | import com.lguipeng.notes.utils.NotesLog;
4 |
5 | import cn.bmob.v3.listener.SaveListener;
6 |
7 | /**
8 | * Created by lgp on 2015/5/30.
9 | */
10 | public class SaveListenerImpl extends SaveListener {
11 | @Override
12 | public void onSuccess() {
13 |
14 | }
15 |
16 | @Override
17 | public void onFailure(int i, String s) {
18 | NotesLog.e(s);
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/app/src/main/java/com/lguipeng/notes/listener/bmob/UpdateListenerImpl.java:
--------------------------------------------------------------------------------
1 | package com.lguipeng.notes.listener.bmob;
2 |
3 | import com.lguipeng.notes.utils.NotesLog;
4 |
5 | import cn.bmob.v3.listener.UpdateListener;
6 |
7 | /**
8 | * Created by lgp on 2015/5/30.
9 | */
10 | public class UpdateListenerImpl extends UpdateListener {
11 | @Override
12 | public void onSuccess() {
13 |
14 | }
15 |
16 | @Override
17 | public void onFailure(int i, String s) {
18 | NotesLog.e(s);
19 |
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/activated_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/app/src/main/java/com/lguipeng/notes/listener/bmob/FindListenerImpl.java:
--------------------------------------------------------------------------------
1 | package com.lguipeng.notes.listener.bmob;
2 |
3 | import com.lguipeng.notes.utils.NotesLog;
4 |
5 | import java.util.List;
6 |
7 | import cn.bmob.v3.listener.FindListener;
8 |
9 | /**
10 | * Created by lgp on 2015/5/30.
11 | */
12 | public class FindListenerImpl extends FindListener {
13 | @Override
14 | public void onSuccess(List list) {
15 |
16 | }
17 |
18 | @Override
19 | public void onError(int i, String s) {
20 | NotesLog.e(s);
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/colors_panel_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
11 |
--------------------------------------------------------------------------------
/app/src/main/java/com/lguipeng/notes/adpater/DrawerListAdapter.java:
--------------------------------------------------------------------------------
1 | package com.lguipeng.notes.adpater;
2 |
3 | import android.content.Context;
4 |
5 | import com.lguipeng.notes.R;
6 |
7 | import java.util.List;
8 |
9 | /**
10 | * Created by lgp on 2015/5/24.
11 | */
12 | public class DrawerListAdapter extends SimpleListAdapter{
13 |
14 | public DrawerListAdapter(Context mContext, List list) {
15 | super(mContext, list);
16 | }
17 |
18 | @Override
19 | protected int getLayout() {
20 | return R.layout.drawer_list_item_layout;
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/orm-library/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.library'
2 |
3 | android {
4 | compileSdkVersion 22
5 | buildToolsVersion "22.0.1"
6 |
7 | defaultConfig {
8 | minSdkVersion 14
9 | targetSdkVersion 22
10 | versionCode 1
11 | versionName "1.0"
12 | }
13 | buildTypes {
14 | release {
15 | minifyEnabled false
16 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
17 | }
18 | }
19 | }
20 |
21 | dependencies {
22 | compile fileTree(include: ['*.jar'], dir: 'libs')
23 | }
24 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_setting.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/MaterialPreference/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.library'
2 |
3 | android {
4 | compileSdkVersion Integer.parseInt(ANDROID_BUILD_COMPILE_SDK_VERSION)
5 | buildToolsVersion ANDROID_BUILD_TOOLS_VERSION
6 |
7 | defaultConfig {
8 | minSdkVersion Integer.parseInt(MIN_SDK_VERSION)
9 | targetSdkVersion Integer.parseInt(ANDROID_BUILD_TARGET_SDK_VERSION)
10 | versionCode Integer.parseInt(VERSION_CODE)
11 | versionName VERSION_NAME
12 | }
13 |
14 | lintOptions {
15 | abortOnError false
16 | }
17 | }
18 |
19 | dependencies {
20 | compile 'com.android.support:appcompat-v7:22.2.0'
21 | compile 'com.balysv:material-ripple:1.0.2'
22 | }
--------------------------------------------------------------------------------
/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/java/com/lguipeng/notes/listener/view/RecyclerViewClickListener.java:
--------------------------------------------------------------------------------
1 | package com.lguipeng.notes.listener.view;
2 |
3 | import android.view.View;
4 |
5 | /**
6 | * Interface definition for a callback to be invoked when an item in a
7 | * RecyclerView has been clicked.
8 | */
9 | public interface RecyclerViewClickListener {
10 |
11 | /**
12 | * Callback method to be invoked when a item in a
13 | * RecyclerView is clicked
14 | * @param v The view within the RecyclerView.Adapter
15 | * @param position The position of the view in the adapter
16 | * @param x
17 | * @param y
18 | */
19 | void onClick(View v, int position, float x, float y);
20 | }
--------------------------------------------------------------------------------
/app/src/main/java/com/lguipeng/notes/utils/NoteConfig.java:
--------------------------------------------------------------------------------
1 | package com.lguipeng.notes.utils;
2 |
3 | /**
4 | * Created by lgp on 2015/5/25.
5 | */
6 | public class NoteConfig {
7 |
8 | public final static int NOTE_CREATE_OPR = 0x00;
9 | public final static int NOTE_EDIT_OPR = 0x01;
10 |
11 | public final static int NOTE_STUDY_TYPE = 0x00;
12 | public final static int NOTE_WORK_TYPE = 0x01;
13 | public final static int NOTE_OTHER_TYPE = 0x02;
14 | public final static int NOTE_TRASH_TYPE = 0x03;
15 |
16 | public final static int NOTE_UPDATE_EVENT = 0x00;
17 | public final static int NOTE_TYPE_UPDATE_EVENT = 0x01;
18 | public final static int CHANGE_THEME_EVENT = 0x02;
19 | }
20 |
--------------------------------------------------------------------------------
/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in E:\adt-bundle-windows-x86_64-20131030/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the proguardFiles
5 | # directive in build.gradle.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
12 | # If your project uses WebView with JS, uncomment the following
13 | # and specify the fully qualified class name to the JavaScript interface
14 | # class:
15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16 | # public *;
17 | #}
18 |
--------------------------------------------------------------------------------
/orm-library/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in E:\adt-bundle-windows-x86_64-20131030/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the proguardFiles
5 | # directive in build.gradle.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
12 | # If your project uses WebView with JS, uncomment the following
13 | # and specify the fully qualified class name to the JavaScript interface
14 | # class:
15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16 | # public *;
17 | #}
18 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/colors_image_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
12 |
17 |
--------------------------------------------------------------------------------
/.idea/compiler.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/app/src/main/java/com/lguipeng/notes/module/AppModule.java:
--------------------------------------------------------------------------------
1 | package com.lguipeng.notes.module;
2 |
3 | import android.app.Application;
4 | import android.content.Context;
5 |
6 | import com.lguipeng.notes.App;
7 |
8 | import dagger.Module;
9 | import dagger.Provides;
10 |
11 | /**
12 | * Created by lgp on 2015/5/26.
13 | */
14 | @Module(
15 | injects = {
16 | App.class
17 | },
18 | library = true
19 | )
20 | public class AppModule {
21 | private App app;
22 |
23 | public AppModule(App app) {
24 | this.app = app;
25 | }
26 |
27 | @Provides
28 | Application provideApplication() {
29 | return app;
30 | }
31 |
32 | @Provides
33 | Context provideContext() {
34 | return app.getApplicationContext();
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/.idea/gradle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
19 |
20 |
--------------------------------------------------------------------------------
/orm-library/src/main/java/net/tsz/afinal/db/table/Id.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com).
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package net.tsz.afinal.db.table;
17 |
18 | public class Id extends Property{
19 |
20 | }
21 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/drawer_list_item_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
19 |
--------------------------------------------------------------------------------
/app/src/main/java/com/lguipeng/notes/utils/ViewHelper.java:
--------------------------------------------------------------------------------
1 | package com.lguipeng.notes.utils;
2 |
3 | import android.support.v4.view.ViewCompat;
4 | import android.view.View;
5 |
6 | /**
7 | * Created by lgp on 2015/5/27.
8 | */
9 | public class ViewHelper {
10 | public static void clear(View v) {
11 | ViewCompat.setAlpha(v, 1);
12 | ViewCompat.setScaleY(v, 1);
13 | ViewCompat.setScaleX(v, 1);
14 | ViewCompat.setTranslationY(v, 0);
15 | ViewCompat.setTranslationX(v, 0);
16 | ViewCompat.setRotation(v, 0);
17 | ViewCompat.setRotationY(v, 0);
18 | ViewCompat.setRotationX(v, 0);
19 | // @TODO https://code.google.com/p/android/issues/detail?id=80863
20 | // ViewCompat.setPivotY(v, v.getMeasuredHeight() / 2);
21 | v.setPivotY(v.getMeasuredHeight() / 2);
22 | ViewCompat.setPivotX(v, v.getMeasuredWidth() / 2);
23 | ViewCompat.animate(v).setInterpolator(null);
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/Notes.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/orm-library/src/main/java/net/tsz/afinal/db/table/OneToMany.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com).
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package net.tsz.afinal.db.table;
17 |
18 | public class OneToMany extends Property{
19 |
20 | private Class> oneClass;
21 |
22 | public Class> getOneClass() {
23 | return oneClass;
24 | }
25 |
26 | public void setOneClass(Class> oneClass) {
27 | this.oneClass = oneClass;
28 | }
29 |
30 |
31 |
32 | }
33 |
--------------------------------------------------------------------------------
/orm-library/src/main/java/net/tsz/afinal/db/table/ManyToOne.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com).
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package net.tsz.afinal.db.table;
17 |
18 | public class ManyToOne extends Property{
19 |
20 | private Class> manyClass;
21 |
22 | public Class> getManyClass() {
23 | return manyClass;
24 | }
25 |
26 | public void setManyClass(Class> manyClass) {
27 | this.manyClass = manyClass;
28 | }
29 |
30 |
31 |
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/app/src/main/java/com/lguipeng/notes/model/NoteType.java:
--------------------------------------------------------------------------------
1 | package com.lguipeng.notes.model;
2 |
3 | import android.text.TextUtils;
4 |
5 | import com.alibaba.fastjson.annotation.JSONField;
6 |
7 | import java.util.ArrayList;
8 | import java.util.List;
9 |
10 | /**
11 | * Created by lgp on 2015/6/2.
12 | */
13 | public class NoteType{
14 |
15 | @JSONField(serialize=false, deserialize=false)
16 | public final static int ALL_COUNT = 4;
17 |
18 | private List types = new ArrayList<>();
19 |
20 | public void addType(String type){
21 | if (types != null && types.size() < ALL_COUNT && !TextUtils.isEmpty(type)){
22 | types.add(type);
23 | }
24 | }
25 |
26 | public String getType(int location){
27 | if (types != null && types.size() > location){
28 | return types.get(location);
29 | }
30 | return "";
31 | }
32 |
33 | public List getTypes() {
34 | return types;
35 | }
36 |
37 | public void setTypes(List types) {
38 | this.types = types;
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/app/src/main/java/com/lguipeng/notes/ui/PayActivity.java:
--------------------------------------------------------------------------------
1 | package com.lguipeng.notes.ui;
2 |
3 | import android.os.Bundle;
4 | import android.support.v7.widget.Toolbar;
5 |
6 | import com.lguipeng.notes.R;
7 | import com.lguipeng.notes.module.DataModule;
8 |
9 | import java.util.Arrays;
10 | import java.util.List;
11 |
12 | import butterknife.InjectView;
13 |
14 | /**
15 | * Created by lgp on 2015/6/1.
16 | */
17 | public class PayActivity extends BaseActivity{
18 | @InjectView(R.id.toolbar)
19 | Toolbar toolbar;
20 | @Override
21 | protected void onCreate(Bundle savedInstanceState) {
22 | super.onCreate(savedInstanceState);
23 | }
24 |
25 | @Override
26 | protected int getLayoutView() {
27 | return R.layout.activity_pay;
28 | }
29 |
30 | @Override
31 | protected List