├── LICENSE.md
├── README.md
├── WX20170719-173330@2x.png
├── WX20170719-173400@2x.png
├── WX20170719-173430@2x.png
├── build.gradle
├── gradle
└── wrapper
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
├── import-summary.txt
├── local.properties
├── settings.gradle
└── shenhuaaccount
├── build.gradle
├── libs
├── jsoup.jar
└── jxl.jar
├── lint.xml
├── proguard-project.txt
├── shenhuaaccount-release.apk
└── src
└── main
├── AndroidManifest.xml
├── assets
└── fonts
│ ├── Roboto-Light.ttf
│ ├── Roboto-Thin.ttf
│ ├── RobotoCondensed-Bold.ttf
│ └── RobotoCondensed-Regular.ttf
├── java
└── com
│ └── shenhua
│ └── account
│ ├── Fragment_Count.java
│ ├── Fragment_Fenpei.java
│ ├── Fragment_History.java
│ ├── Fragment_Home.java
│ ├── Fragment_Home_None.java
│ ├── Fragment_Yusuan.java
│ ├── MainActivity.java
│ ├── act
│ ├── ActivityAbout.java
│ ├── ActivityAboutWeb.java
│ ├── ActivityAddAccount.java
│ ├── ActivityMaGdkx.java
│ ├── ActivityMaIncome.java
│ ├── ActivityMaLeibie.java
│ ├── ActivitySetting.java
│ └── SplashActivity.java
│ ├── adapter
│ ├── HomeAccountAdapter.java
│ └── LimitListAdapter.java
│ ├── bean
│ ├── AccountData.java
│ ├── CheckUpdate.java
│ ├── GdkzData.java
│ ├── LimitData.java
│ ├── MD5Util.java
│ ├── MyApplication.java
│ ├── MyStringUtils.java
│ └── NetworkUtil.java
│ ├── dao
│ ├── DatabaseOutput.java
│ └── MyDataBase.java
│ └── ui
│ ├── AnimationUtils.java
│ ├── MyGradientProgressBar.java
│ ├── MyIndicatorView.java
│ ├── MyLineChart.java
│ ├── MyPiechart.java
│ ├── NumberProgressBar.java
│ ├── SnackbarManager.java
│ └── TSnackbar.java
└── res
├── anim
├── slide_right.xml
├── top_in.xml
└── top_out.xml
├── drawable-hdpi
├── group_down.png
├── group_up.png
├── ic_about_shareapp_ewm.png
├── ic_add.png
├── ic_back.png
├── ic_back_delete_normal.png
├── ic_back_delete_press.png
├── ic_backspace_disabled.png
├── ic_backspace_normal.png
├── ic_cancle.png
├── ic_come.png
├── ic_done.png
├── ic_income.png
├── ic_keybord_nor.png
├── ic_keybord_pre.png
├── ic_launcher.png
├── ic_logo.png
├── ic_menu.png
├── ic_nonet.png
├── ic_nv_about.png
├── ic_nv_exit.png
├── ic_nv_menu01.png
├── ic_nv_menu02.png
├── ic_nv_menu03.png
├── ic_nv_menu04.png
├── ic_nv_menu05.png
├── ic_setting.png
├── ic_share.png
├── ic_sp_nor.9.png
├── ic_sp_pre.9.png
├── ic_update.png
├── image_color_cdcdcd.png
├── image_color_theme.png
└── splash_bg.png
├── drawable-mdpi
└── ic_launcher.png
├── drawable-xhdpi
└── ic_launcher.png
├── drawable-xxhdpi
└── ic_launcher.png
├── drawable
├── about_dialog_btn_bg.xml
├── about_layout_bg.xml
├── calender_btn.xml
├── calender_circlebg.xml
├── calender_circlering.xml
├── calender_done_btn.xml
├── calender_rectbg.xml
├── calender_textselector.xml
├── divider_line.xml
├── expander_ic_folder.xml
├── pressed_background_cash_neutral.xml
├── pressed_background_cash_theme.xml
├── selector_backbutton.xml
├── selector_backdelete_bg.xml
├── selector_bg_yusuan_lv_item.xml
├── selector_keyboard_bg.xml
├── selector_layout_bg.xml
├── selector_rv_item_bg.xml
├── selector_tv_bg.xml
├── spinner_selector.xml
├── text_item_bg.xml
├── text_item_bottom_bg.xml
└── text_item_top_bg.xml
├── layout
├── activity_about.xml
├── activity_about_web.xml
├── activity_add.xml
├── activity_add_other.xml
├── activity_ma_gdkx.xml
├── activity_ma_gdkx_gv_item.xml
├── activity_ma_income.xml
├── activity_ma_income_dialog.xml
├── activity_ma_income_lv_item.xml
├── activity_ma_leibie.xml
├── activity_ma_leibie_add.xml
├── activity_ma_leibie_add_spinner_item.xml
├── activity_ma_leibie_lv_item.xml
├── activity_main.xml
├── activity_setting.xml
├── activity_setting_dialog.xml
├── activity_splash.xml
├── activity_splash_keyboard.xml
├── content_count.xml
├── content_fenpei.xml
├── content_fenpei_gv_item.xml
├── content_history.xml
├── content_history_e_list_child_item.xml
├── content_history_e_list_parent_item.xml
├── content_home.xml
├── content_home_lv_item.xml
├── content_home_none.xml
├── content_yusuan.xml
├── content_yusuan_lv_item.xml
├── dialog_add_amount.xml
├── dialog_calender.xml
├── dialog_calender_gv_item.xml
├── dialog_shareapp.xml
├── dialog_update.xml
├── navigation_header.xml
├── toolbar.xml
├── tsnackbar_layout.xml
└── tsnackbar_layout_include.xml
├── menu
├── nav_menu.xml
├── toolbar_menu.xml
├── toolbar_menu_add.xml
├── toolbar_menu_add_leibie.xml
└── toolbar_mune_maincome.xml
├── values-v11
└── styles.xml
├── values-v14
└── styles.xml
├── values-v23
└── styles.xml
├── values-w820dp
└── dimens.xml
└── values
├── attrs.xml
├── color.xml
├── dimens.xml
├── strings.xml
└── styles.xml
/README.md:
--------------------------------------------------------------------------------
1 | # Account-android
2 | new shenhua account.
3 |
4 | 
5 |
6 | 
7 |
8 | 
9 |
10 | ## About Me
11 | CSDN:http://blog.csdn.net/klxh2009
12 | JianShu:http://www.jianshu.com/u/12a81897d5bc
13 |
14 | ## License
15 |
16 | Copyright (C) 2017 shenhuanet
17 |
18 | This program is free software; you can redistribute it and/or modify
19 | it under the terms of the GNU General Public License as published by
20 | the Free Software Foundation; either version 2 of the License, or
21 | (at your option) any later version.
22 |
23 | This program is distributed in the hope that it will be useful,
24 | but WITHOUT ANY WARRANTY; without even the implied warranty of
25 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26 | GNU General Public License for more details.
27 |
28 | You should have received a copy of the GNU General Public License along
29 | with this program; if not, write to the Free Software Foundation, Inc.,
30 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
31 |
--------------------------------------------------------------------------------
/WX20170719-173330@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shenhuanet/Account-android/7a78c8e806f872e437a0833541c482556c8359ee/WX20170719-173330@2x.png
--------------------------------------------------------------------------------
/WX20170719-173400@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shenhuanet/Account-android/7a78c8e806f872e437a0833541c482556c8359ee/WX20170719-173400@2x.png
--------------------------------------------------------------------------------
/WX20170719-173430@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shenhuanet/Account-android/7a78c8e806f872e437a0833541c482556c8359ee/WX20170719-173430@2x.png
--------------------------------------------------------------------------------
/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 | buildscript {
3 | repositories {
4 | jcenter()
5 | }
6 | dependencies {
7 | classpath 'com.android.tools.build:gradle:2.2.2'
8 | }
9 | }
10 |
11 | allprojects {
12 | repositories {
13 | jcenter()
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shenhuanet/Account-android/7a78c8e806f872e437a0833541c482556c8359ee/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Mon Dec 28 10:00:20 PST 2015
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.14.1-all.zip
7 |
--------------------------------------------------------------------------------
/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | ##############################################################################
4 | ##
5 | ## Gradle start up script for UN*X
6 | ##
7 | ##############################################################################
8 |
9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
10 | DEFAULT_JVM_OPTS=""
11 |
12 | APP_NAME="Gradle"
13 | APP_BASE_NAME=`basename "$0"`
14 |
15 | # Use the maximum available, or set MAX_FD != -1 to use that value.
16 | MAX_FD="maximum"
17 |
18 | warn ( ) {
19 | echo "$*"
20 | }
21 |
22 | die ( ) {
23 | echo
24 | echo "$*"
25 | echo
26 | exit 1
27 | }
28 |
29 | # OS specific support (must be 'true' or 'false').
30 | cygwin=false
31 | msys=false
32 | darwin=false
33 | case "`uname`" in
34 | CYGWIN* )
35 | cygwin=true
36 | ;;
37 | Darwin* )
38 | darwin=true
39 | ;;
40 | MINGW* )
41 | msys=true
42 | ;;
43 | esac
44 |
45 | # Attempt to set APP_HOME
46 | # Resolve links: $0 may be a link
47 | PRG="$0"
48 | # Need this for relative symlinks.
49 | while [ -h "$PRG" ] ; do
50 | ls=`ls -ld "$PRG"`
51 | link=`expr "$ls" : '.*-> \(.*\)$'`
52 | if expr "$link" : '/.*' > /dev/null; then
53 | PRG="$link"
54 | else
55 | PRG=`dirname "$PRG"`"/$link"
56 | fi
57 | done
58 | SAVED="`pwd`"
59 | cd "`dirname \"$PRG\"`/" >/dev/null
60 | APP_HOME="`pwd -P`"
61 | cd "$SAVED" >/dev/null
62 |
63 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
64 |
65 | # Determine the Java command to use to start the JVM.
66 | if [ -n "$JAVA_HOME" ] ; then
67 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
68 | # IBM's JDK on AIX uses strange locations for the executables
69 | JAVACMD="$JAVA_HOME/jre/sh/java"
70 | else
71 | JAVACMD="$JAVA_HOME/bin/java"
72 | fi
73 | if [ ! -x "$JAVACMD" ] ; then
74 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
75 |
76 | Please set the JAVA_HOME variable in your environment to match the
77 | location of your Java installation."
78 | fi
79 | else
80 | JAVACMD="java"
81 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
82 |
83 | Please set the JAVA_HOME variable in your environment to match the
84 | location of your Java installation."
85 | fi
86 |
87 | # Increase the maximum file descriptors if we can.
88 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
89 | MAX_FD_LIMIT=`ulimit -H -n`
90 | if [ $? -eq 0 ] ; then
91 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
92 | MAX_FD="$MAX_FD_LIMIT"
93 | fi
94 | ulimit -n $MAX_FD
95 | if [ $? -ne 0 ] ; then
96 | warn "Could not set maximum file descriptor limit: $MAX_FD"
97 | fi
98 | else
99 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
100 | fi
101 | fi
102 |
103 | # For Darwin, add options to specify how the application appears in the dock
104 | if $darwin; then
105 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
106 | fi
107 |
108 | # For Cygwin, switch paths to Windows format before running java
109 | if $cygwin ; then
110 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
111 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
112 | JAVACMD=`cygpath --unix "$JAVACMD"`
113 |
114 | # We build the pattern for arguments to be converted via cygpath
115 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
116 | SEP=""
117 | for dir in $ROOTDIRSRAW ; do
118 | ROOTDIRS="$ROOTDIRS$SEP$dir"
119 | SEP="|"
120 | done
121 | OURCYGPATTERN="(^($ROOTDIRS))"
122 | # Add a user-defined pattern to the cygpath arguments
123 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
124 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
125 | fi
126 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
127 | i=0
128 | for arg in "$@" ; do
129 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
130 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
131 |
132 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
133 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
134 | else
135 | eval `echo args$i`="\"$arg\""
136 | fi
137 | i=$((i+1))
138 | done
139 | case $i in
140 | (0) set -- ;;
141 | (1) set -- "$args0" ;;
142 | (2) set -- "$args0" "$args1" ;;
143 | (3) set -- "$args0" "$args1" "$args2" ;;
144 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
145 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
146 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
147 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
148 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
149 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
150 | esac
151 | fi
152 |
153 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
154 | function splitJvmOpts() {
155 | JVM_OPTS=("$@")
156 | }
157 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
158 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
159 |
160 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
161 |
--------------------------------------------------------------------------------
/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/import-summary.txt:
--------------------------------------------------------------------------------
1 | ECLIPSE ANDROID PROJECT IMPORT SUMMARY
2 | ======================================
3 |
4 | Manifest Merging:
5 | -----------------
6 | Your project uses libraries that provide manifests, and your Eclipse
7 | project did not explicitly turn on manifest merging. In Android Gradle
8 | projects, manifests are always merged (meaning that contents from your
9 | libraries' manifests will be merged into the app manifest. If you had
10 | manually copied contents from library manifests into your app manifest
11 | you may need to remove these for the app to build correctly.
12 |
13 | Ignored Files:
14 | --------------
15 | The following files were *not* copied into the new Gradle project; you
16 | should evaluate whether these are still needed in your project and if
17 | so manually move them:
18 |
19 | From android-support-recyclerview:
20 | * .amateras
21 | * README.txt
22 | From shenhuaaccount:
23 | * github.txt
24 | * ic_launcher-web.png
25 | * proguard\
26 | * proguard\dump.txt
27 | * proguard\mapping.txt
28 | * proguard\seeds.txt
29 | * proguard\usage.txt
30 |
31 | Replaced Jars with Dependencies:
32 | --------------------------------
33 | The importer recognized the following .jar files as third party
34 | libraries and replaced them with Gradle dependencies instead. This has
35 | the advantage that more explicit version information is known, and the
36 | libraries can be updated automatically. However, it is possible that
37 | the .jar file in your project was of an older version than the
38 | dependency we picked, which could render the project not compileable.
39 | You can disable the jar replacement in the import wizard and try again:
40 |
41 | android-support-v4.jar => com.android.support:support-v4:23.4.0
42 | android-support-v7-appcompat.jar => com.android.support:appcompat-v7:23.4.0
43 |
44 | Replaced Libraries with Dependencies:
45 | -------------------------------------
46 | The importer recognized the following library projects as third party
47 | libraries and replaced them with Gradle dependencies instead. This has
48 | the advantage that more explicit version information is known, and the
49 | libraries can be updated automatically. However, it is possible that
50 | the source files in your project were of an older version than the
51 | dependency we picked, which could render the project not compileable.
52 | You can disable the library replacement in the import wizard and try
53 | again:
54 |
55 | android-support-v7-appcompat => [com.android.support:appcompat-v7:23.4.0]
56 |
57 | Moved Files:
58 | ------------
59 | Android Gradle projects use a different directory structure than ADT
60 | Eclipse projects. Here's how the projects were restructured:
61 |
62 | In android-support-design:
63 | * AndroidManifest.xml => androidsupportdesign\src\main\AndroidManifest.xml
64 | * assets\ => androidsupportdesign\src\main\assets
65 | * res\ => androidsupportdesign\src\main\res\
66 | * src\ => androidsupportdesign\src\main\java
67 | * src\.readme => androidsupportdesign\src\main\resources\.readme
68 | In android-support-recyclerview:
69 | * AndroidManifest.xml => androidsupportrecyclerview\src\main\AndroidManifest.xml
70 | * assets\ => androidsupportrecyclerview\src\main\assets
71 | * res\ => androidsupportrecyclerview\src\main\res\
72 | * src\ => androidsupportrecyclerview\src\main\java
73 | In shenhuaaccount:
74 | * AndroidManifest.xml => shenhuaaccount\src\main\AndroidManifest.xml
75 | * assets\ => shenhuaaccount\src\main\assets\
76 | * libs\jsoup.jar => shenhuaaccount\libs\jsoup.jar
77 | * libs\jxl.jar => shenhuaaccount\libs\jxl.jar
78 | * lint.xml => shenhuaaccount\lint.xml
79 | * proguard-project.txt => shenhuaaccount\proguard-project.txt
80 | * res\ => shenhuaaccount\src\main\res\
81 | * src\ => shenhuaaccount\src\main\java\
82 |
83 | Next Steps:
84 | -----------
85 | You can now build the project. The Gradle project needs network
86 | connectivity to download dependencies.
87 |
88 | Bugs:
89 | -----
90 | If for some reason your project does not build, and you determine that
91 | it is due to a bug or limitation of the Eclipse to Gradle importer,
92 | please file a bug at http://b.android.com with category
93 | Component-Tools.
94 |
95 | (This import summary is for your information only, and can be deleted
96 | after import once you are satisfied with the results.)
97 |
--------------------------------------------------------------------------------
/local.properties:
--------------------------------------------------------------------------------
1 | ## This file is automatically generated by Android Studio.
2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3 | #
4 | # This file must *NOT* be checked into Version Control Systems,
5 | # as it contains information specific to your local configuration.
6 | #
7 | # Location of the SDK. This is only used by Gradle.
8 | # For customization when using a Version Control System, please read the
9 | # header note.
10 | #Tue Nov 29 20:57:29 CST 2016
11 | ndk.dir=D\:\\Android\\SDK\\ndk-bundle
12 | sdk.dir=D\:\\Android\\SDK
13 |
--------------------------------------------------------------------------------
/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':shenhuaaccount'
2 |
--------------------------------------------------------------------------------
/shenhuaaccount/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 |
3 | android {
4 | signingConfigs {
5 | }
6 | compileSdkVersion 23
7 | buildToolsVersion "25.0.1"
8 | defaultConfig {
9 | applicationId "com.shenhua.account"
10 | minSdkVersion 14
11 | targetSdkVersion 23
12 | compileOptions {
13 | sourceCompatibility JavaVersion.VERSION_1_7
14 | targetCompatibility JavaVersion.VERSION_1_7
15 | }
16 | }
17 | buildTypes {
18 | release {
19 | minifyEnabled true
20 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-project.txt'
21 | }
22 | }
23 | }
24 |
25 | dependencies {
26 | compile fileTree(include: ['*.jar'], dir: 'libs')
27 | androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
28 | exclude group: 'com.android.support', module: 'support-annotations'
29 | })
30 | testCompile 'junit:junit:4.12'
31 | compile 'com.android.support:appcompat-v7:23.4.0'
32 | compile 'com.android.support:recyclerview-v7:23.4.0'
33 | compile 'com.android.support:design:23.4.0'
34 | }
35 |
--------------------------------------------------------------------------------
/shenhuaaccount/libs/jsoup.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shenhuanet/Account-android/7a78c8e806f872e437a0833541c482556c8359ee/shenhuaaccount/libs/jsoup.jar
--------------------------------------------------------------------------------
/shenhuaaccount/libs/jxl.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shenhuanet/Account-android/7a78c8e806f872e437a0833541c482556c8359ee/shenhuaaccount/libs/jxl.jar
--------------------------------------------------------------------------------
/shenhuaaccount/lint.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/shenhuaaccount/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 | #保持第三方包不被混淆
22 | #-libraryjars libs/jxl.jar
23 | #-libraryjars libs/jsoup.jar
24 |
25 | #保持某些类不被混淆
26 | -keep public class * extends android.support.v4.**
27 | -keep public class com.shenhua.account.dao.DatabaseOutput
28 |
29 | # 保持自定义控件类不被混淆
30 | -keepclasseswithmembers class * {
31 | public (android.content.Context, android.util.AttributeSet);
32 | }
33 |
34 | # 保持自定义控件类不被混淆
35 | -keepclasseswithmembers class * {
36 | public (android.content.Context, android.util.AttributeSet, int);
37 | }
38 |
39 | # 保持自定义控件类不被混淆
40 | -keepclassmembers class * extends android.app.Activity {
41 | public void *(android.view.View);
42 | }
43 |
44 | #-keep public class com.shenhua.account.ui.MyGradientProgressBar
45 | #-keep public class com.shenhua.account.ui.MyIndicatorView
46 | #-keep public class com.shenhua.account.ui.MyLineChart
47 | #-keep public class com.shenhua.account.ui.MyPiechart
48 | #-keep public class com.shenhua.account.ui.NumberProgressBar
49 |
50 | #support支持包不提醒
51 | -dontwarn android.support.**
52 |
--------------------------------------------------------------------------------
/shenhuaaccount/shenhuaaccount-release.apk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shenhuanet/Account-android/7a78c8e806f872e437a0833541c482556c8359ee/shenhuaaccount/shenhuaaccount-release.apk
--------------------------------------------------------------------------------
/shenhuaaccount/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
20 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/shenhuaaccount/src/main/assets/fonts/Roboto-Light.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shenhuanet/Account-android/7a78c8e806f872e437a0833541c482556c8359ee/shenhuaaccount/src/main/assets/fonts/Roboto-Light.ttf
--------------------------------------------------------------------------------
/shenhuaaccount/src/main/assets/fonts/Roboto-Thin.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shenhuanet/Account-android/7a78c8e806f872e437a0833541c482556c8359ee/shenhuaaccount/src/main/assets/fonts/Roboto-Thin.ttf
--------------------------------------------------------------------------------
/shenhuaaccount/src/main/assets/fonts/RobotoCondensed-Bold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shenhuanet/Account-android/7a78c8e806f872e437a0833541c482556c8359ee/shenhuaaccount/src/main/assets/fonts/RobotoCondensed-Bold.ttf
--------------------------------------------------------------------------------
/shenhuaaccount/src/main/assets/fonts/RobotoCondensed-Regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shenhuanet/Account-android/7a78c8e806f872e437a0833541c482556c8359ee/shenhuaaccount/src/main/assets/fonts/RobotoCondensed-Regular.ttf
--------------------------------------------------------------------------------
/shenhuaaccount/src/main/java/com/shenhua/account/Fragment_Count.java:
--------------------------------------------------------------------------------
1 | package com.shenhua.account;
2 |
3 | import com.shenhua.account.bean.MyStringUtils;
4 | import com.shenhua.account.dao.MyDataBase;
5 | import com.shenhua.account.ui.MyLineChart;
6 | import android.os.Bundle;
7 | import android.support.v4.app.Fragment;
8 | import android.util.DisplayMetrics;
9 | import android.view.LayoutInflater;
10 | import android.view.View;
11 | import android.view.ViewGroup;
12 | import android.view.animation.AlphaAnimation;
13 | import android.view.animation.Animation;
14 | import android.view.animation.AnimationSet;
15 | import android.view.animation.LayoutAnimationController;
16 | import android.view.animation.LinearInterpolator;
17 | import android.view.animation.TranslateAnimation;
18 | import android.widget.RelativeLayout;
19 | import android.widget.TextView;
20 |
21 | public class Fragment_Count extends Fragment {
22 |
23 | private MyDataBase database;
24 | private View view;
25 | private TextView content_count_title;
26 | private RelativeLayout count_rl;
27 | private String title, year;
28 | private float expend, income;
29 | private float[] eachmonthexpend = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
30 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, eachmonthincome = { 0, 0, 0, 0,
31 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
32 | private int countofincome;
33 | static int width;
34 | int height;
35 |
36 | @Override
37 | public View onCreateView(LayoutInflater inflater, ViewGroup container,
38 | Bundle savedInstanceState) {
39 | if (view == null) {
40 | view = inflater.inflate(R.layout.content_count, container, false);
41 | count_rl = (RelativeLayout) view.findViewById(R.id.count_rl);
42 | content_count_title = (TextView) view
43 | .findViewById(R.id.content_count_title);
44 | title = getContext().getString(R.string.count_title);
45 | year = MyStringUtils.getSysNowTime(4);
46 | database = new MyDataBase(getContext());
47 | database.open();
48 | }
49 | ViewGroup parent = (ViewGroup) view.getParent();
50 | if (parent != null) {
51 | parent.removeView(view);
52 | }
53 | initDataAndView();
54 | initLineChartView();
55 | return view;
56 | }
57 |
58 | private void initDataAndView() {
59 | income = database.getSR_sum(MyStringUtils.INDEX_TABLE_SRZC_SR);
60 | expend = database.getSR_sum(MyStringUtils.INDEX_TABLE_SRZC_ZC);
61 | countofincome = database.getCount(2, "income_record", "");
62 | for (int i = 0; i < MyStringUtils.monthStrings.length; i++) {
63 | eachmonthincome[i] = Float.parseFloat(database.getSRGL(0,
64 | MyStringUtils.monthStrings[i]));
65 | eachmonthexpend[i] = Float.parseFloat(database.getSRGL(1,
66 | MyStringUtils.monthStrings[i]));
67 | if (expend != 0) {
68 | MyLineChart.Percent_Expend[i] = (eachmonthexpend[i] / expend) * 100;
69 | }
70 | if (income != 0) {
71 | MyLineChart.Percent_Income[i] = (eachmonthincome[i] / income) * 100;
72 | }
73 | }
74 | database.close();
75 | String str = String.format(title, year, expend, income, countofincome);
76 | content_count_title.setText(str);
77 | AnimationSet set = new AnimationSet(true);
78 | Animation animation = new AlphaAnimation(0.0f, 1.0f);
79 | animation.setDuration(1500);
80 | set.addAnimation(animation);
81 | animation = new TranslateAnimation(Animation.RELATIVE_TO_SELF, 0.0f,
82 | Animation.RELATIVE_TO_SELF, 0.0f, Animation.RELATIVE_TO_SELF,
83 | 1.0f, Animation.RELATIVE_TO_SELF, 0.0f);
84 | animation.setDuration(3000);
85 | animation.setInterpolator(new LinearInterpolator());
86 | set.addAnimation(animation);
87 | LayoutAnimationController controller = new LayoutAnimationController(
88 | set, 1f);
89 | controller.setOrder(LayoutAnimationController.ORDER_NORMAL);
90 | count_rl.setLayoutAnimation(controller);
91 | }
92 |
93 | private void initLineChartView() {
94 | DisplayMetrics dm = new DisplayMetrics();
95 | getActivity().getWindowManager().getDefaultDisplay().getMetrics(dm);
96 | width = dm.widthPixels;
97 | height = dm.heightPixels;
98 | MyLineChart.right = width - 35;
99 | MyLineChart.gapX = (width - 70) / 11;
100 | }
101 | }
102 |
--------------------------------------------------------------------------------
/shenhuaaccount/src/main/java/com/shenhua/account/Fragment_Fenpei.java:
--------------------------------------------------------------------------------
1 | package com.shenhua.account;
2 |
3 | import java.util.ArrayList;
4 | import java.util.List;
5 | import com.shenhua.account.bean.LimitData;
6 | import com.shenhua.account.dao.MyDataBase;
7 | import android.graphics.Color;
8 | import android.os.Bundle;
9 | import android.os.Handler;
10 | import android.support.v4.app.Fragment;
11 | import android.view.LayoutInflater;
12 | import android.view.View;
13 | import android.view.ViewGroup;
14 | import android.widget.BaseAdapter;
15 | import android.widget.GridView;
16 | import android.widget.TextView;
17 |
18 | public class Fragment_Fenpei extends Fragment {
19 |
20 | private View view;
21 | private GridView gv;
22 | private List mDatas = new ArrayList();
23 | private Handler handler = new Handler();
24 |
25 | @Override
26 | public View onCreateView(LayoutInflater inflater, ViewGroup container,
27 | Bundle savedInstanceState) {
28 | if (view == null) {
29 | view = inflater.inflate(R.layout.content_fenpei, container, false);
30 | gv = (GridView) view.findViewById(R.id.fenpei_gv);
31 | new Thread(new Runnable() {
32 | @Override
33 | public void run() {
34 | initData();
35 | handler.post(new Runnable() {
36 |
37 | @Override
38 | public void run() {
39 | GvAdapter adapter = new GvAdapter();
40 | gv.setAdapter(adapter);
41 | }
42 | });
43 | }
44 | }).start();
45 | }
46 | ViewGroup parent = (ViewGroup) view.getParent();
47 | if (parent != null) {
48 | parent.removeView(view);
49 | }
50 | return view;
51 | }
52 |
53 | private void initData() {
54 | MyDataBase dataBase = new MyDataBase(getContext());
55 | dataBase.open();
56 | mDatas.clear();
57 | mDatas = dataBase.getLimits();
58 | dataBase.close();
59 | }
60 |
61 | private class GvAdapter extends BaseAdapter {
62 |
63 | @Override
64 | public int getCount() {
65 | return mDatas.size();
66 | }
67 |
68 | @Override
69 | public Object getItem(int arg0) {
70 | return null;
71 | }
72 |
73 | @Override
74 | public long getItemId(int arg0) {
75 | return arg0;
76 | }
77 |
78 | @Override
79 | public View getView(int arg0, View arg1, ViewGroup arg2) {
80 | final ViewHolder holder;
81 | if (arg1 == null) {
82 | LayoutInflater inflater = LayoutInflater.from(getContext());
83 | arg1 = inflater.inflate(R.layout.content_fenpei_gv_item,
84 | (ViewGroup) arg1, false);
85 | holder = new ViewHolder();
86 | holder.view = arg1.findViewById(R.id.fenpei_gv_view);
87 | holder.tv = (TextView) arg1.findViewById(R.id.fenpei_gv_tv);
88 | arg1.setTag(holder);
89 | } else {
90 | holder = (ViewHolder) arg1.getTag();
91 | }
92 | LimitData data = mDatas.get(arg0);
93 | holder.view.setBackgroundColor(Color.parseColor(data.getColor()));
94 | holder.tv.setText(data.getType());
95 | return arg1;
96 | }
97 |
98 | class ViewHolder {
99 | View view;
100 | TextView tv;
101 | }
102 | }
103 | }
104 |
--------------------------------------------------------------------------------
/shenhuaaccount/src/main/java/com/shenhua/account/Fragment_History.java:
--------------------------------------------------------------------------------
1 | package com.shenhua.account;
2 |
3 | import com.shenhua.account.dao.MyDataBase;
4 | import android.content.Context;
5 | import android.database.Cursor;
6 | import android.os.Bundle;
7 | import android.support.v4.app.Fragment;
8 | import android.view.LayoutInflater;
9 | import android.view.View;
10 | import android.view.ViewGroup;
11 | import android.widget.BaseExpandableListAdapter;
12 | import android.widget.CursorTreeAdapter;
13 | import android.widget.ExpandableListView;
14 | import android.widget.ImageView;
15 | import android.widget.TextView;
16 | import android.widget.ExpandableListView.OnChildClickListener;
17 | import android.widget.ExpandableListView.OnGroupClickListener;
18 |
19 | public class Fragment_History extends Fragment {
20 |
21 | private int[] group_checked = new int[] { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
22 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
23 | private View view;
24 | private ExpandableListView e_list;
25 | private TextView tvEmpty;
26 | private MyDataBase dataBase;
27 | private MyCursrTreeAdapter myCursorTreeAdapter;
28 | private static final int groupName_index = 1;
29 | private static final int time_index = 3;
30 | private static final int type_index = 1;
31 | private static final int money_index = 2;
32 | private static final int mark_index = 6;
33 | int groupNameIndex;
34 | String mygroupName;
35 | Cursor groupCursor;
36 |
37 | @Override
38 | public View onCreateView(LayoutInflater inflater, ViewGroup container,
39 | Bundle savedInstanceState) {
40 | if (view == null) {
41 | view = inflater.inflate(R.layout.content_history, container, false);
42 | tvEmpty = (TextView) view.findViewById(R.id.history_list_empty);
43 | e_list = (ExpandableListView) view.findViewById(R.id.history_list);
44 | e_list.setGroupIndicator(null);
45 | e_list.setEmptyView(tvEmpty);
46 | dataBase = new MyDataBase(getContext());
47 | dataBase.open();
48 | }
49 | ViewGroup parent = (ViewGroup) view.getParent();
50 | if (parent != null) {
51 | parent.removeView(view);
52 | }
53 | initAdapterView();
54 | return view;
55 | }
56 |
57 | public class MyCursrTreeAdapter extends CursorTreeAdapter {
58 |
59 | public MyCursrTreeAdapter(Cursor cursor, Context context,
60 | boolean autoRequery) {
61 | super(cursor, context, autoRequery);
62 | }
63 |
64 | @Override
65 | protected void bindGroupView(View view, Context context, Cursor cursor,
66 | boolean isExpanded) {
67 | // TODO bindGroupView
68 | TextView group_title = (TextView) view
69 | .findViewById(R.id.group_title);
70 | String group = cursor.getString(groupName_index);
71 | group_title.setText(group);
72 | TextView groupCount = (TextView) view
73 | .findViewById(R.id.group_count);
74 | int count = dataBase.getCount(3, "accounts", group);
75 | groupCount.setText("[" + count + "]");
76 | ImageView group_state = (ImageView) view
77 | .findViewById(R.id.group_state);
78 | if (isExpanded) {
79 | group_state.setBackgroundResource(R.drawable.group_up);
80 | } else {
81 | group_state.setBackgroundResource(R.drawable.group_down);
82 | }
83 | }
84 |
85 | @Override
86 | protected View newGroupView(Context context, Cursor cursor,
87 | boolean isExpanded, ViewGroup parent) {
88 | LayoutInflater inflate = LayoutInflater.from(getContext());
89 | View view = inflate.inflate(
90 | R.layout.content_history_e_list_parent_item, parent, false);
91 |
92 | bindGroupView(view, context, cursor, isExpanded);
93 |
94 | return view;
95 | }
96 |
97 | @Override
98 | protected Cursor getChildrenCursor(Cursor groupCursor) {
99 | String groupName = groupCursor.getString(groupName_index);
100 | Cursor childCursor = dataBase.getAccountByGroups(1, groupName);
101 | return childCursor;
102 | }
103 |
104 | @Override
105 | protected View newChildView(Context context, Cursor cursor,
106 | boolean isLastChild, ViewGroup parent) {
107 | LayoutInflater inflate = LayoutInflater.from(getContext());
108 | View view = inflate.inflate(
109 | R.layout.content_history_e_list_child_item, parent, false);
110 | bindChildView(view, context, cursor, isLastChild);
111 | return view;
112 | }
113 |
114 | @Override
115 | protected void bindChildView(View view, Context context, Cursor cursor,
116 | boolean isLastChild) {
117 | // TODO bindChildView
118 | TextView time = (TextView) view.findViewById(R.id.child_text_time);
119 | time.setText(cursor.getString(time_index));
120 | TextView type = (TextView) view.findViewById(R.id.child_text_type);
121 | type.setTextKeepState(cursor.getString(type_index));
122 | TextView money = (TextView) view
123 | .findViewById(R.id.child_text_money);
124 | money.setTextKeepState(cursor.getString(money_index) + " "
125 | + getString(R.string.rmb));
126 | TextView mark = (TextView) view.findViewById(R.id.child_text_mark);
127 | mark.setTextKeepState(cursor.getString(mark_index));
128 | }
129 | }
130 |
131 | private void initAdapterView() {
132 | // TODO initAdapterView
133 | groupCursor = dataBase.getAccountByGroups(0, "");
134 | // getActivity().startManagingCursor(groupCursor);
135 | groupNameIndex = groupCursor.getColumnIndexOrThrow("_month");
136 | myCursorTreeAdapter = new MyCursrTreeAdapter(groupCursor, getContext(),
137 | true);
138 | e_list.setAdapter(myCursorTreeAdapter);
139 | e_list.setOnGroupClickListener(new OnGroupClickListener() {
140 |
141 | @Override
142 | public boolean onGroupClick(ExpandableListView parent, View v,
143 | int groupPosition, long id) {
144 | group_checked[groupPosition] = group_checked[groupPosition] + 1;
145 | ((BaseExpandableListAdapter) myCursorTreeAdapter)
146 | .notifyDataSetChanged();
147 | return false;
148 | }
149 | });
150 | e_list.setOnChildClickListener(new OnChildClickListener() {
151 |
152 | @Override
153 | public boolean onChildClick(ExpandableListView parent, View v,
154 | int groupPosition, int childPosition, long id) {
155 |
156 | ((BaseExpandableListAdapter) myCursorTreeAdapter)
157 | .notifyDataSetChanged();
158 | return false;
159 | }
160 | });
161 | }
162 |
163 | @Override
164 | public void onDestroy() {
165 | super.onDestroy();
166 | groupCursor.close();
167 | dataBase.close();
168 | }
169 |
170 | }
171 |
--------------------------------------------------------------------------------
/shenhuaaccount/src/main/java/com/shenhua/account/Fragment_Home.java:
--------------------------------------------------------------------------------
1 | package com.shenhua.account;
2 |
3 | import java.util.ArrayList;
4 | import java.util.List;
5 | import java.util.Map;
6 |
7 | import com.shenhua.account.adapter.HomeAccountAdapter;
8 | import com.shenhua.account.bean.MyStringUtils;
9 | import com.shenhua.account.dao.MyDataBase;
10 |
11 | import android.graphics.Color;
12 | import android.graphics.Typeface;
13 | import android.os.Bundle;
14 | import android.os.Handler;
15 | import android.os.Message;
16 | import android.support.v4.app.Fragment;
17 | import android.util.Log;
18 | import android.view.LayoutInflater;
19 | import android.view.View;
20 | import android.view.ViewGroup;
21 | import android.widget.AdapterView;
22 | import android.widget.AdapterView.OnItemClickListener;
23 | import android.widget.ListView;
24 | import android.widget.TextView;
25 | import android.widget.Toast;
26 |
27 | public class Fragment_Home extends Fragment {
28 |
29 | private static final int MSG_GETDATAS_DONE = 0x1;
30 | private View view, frame_home_head;
31 | private TextView tv_count, tv_info, tv_month;
32 | private ListView lisView;
33 | private HomeAccountAdapter adapter;
34 | private String month, count, info;
35 | private MyHandler myHandler;
36 | private MyDataBase dataBase;
37 | private ArrayList