Skip to content

Commit

Permalink
add README, fix bugs, add volley
Browse files Browse the repository at this point in the history
  • Loading branch information
MewX committed Aug 17, 2015
1 parent 66b28c1 commit a69c290
Show file tree
Hide file tree
Showing 206 changed files with 9,979 additions and 31 deletions.
864 changes: 844 additions & 20 deletions README.md

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions cocos2d-x/README.md

This file was deleted.

Binary file added design-source/下载.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design-source/书架1_PxCook.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design-source/书架2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design-source/侧栏.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design-source/侧栏壁纸.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design-source/排行.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design-source/登陆.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design-source/目录.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design-source/目录_PxCook.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design-source/目录_弹出菜单.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design-source/章节目录.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design-source/章节目录_带尺寸区.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design-source/设置.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design-source/设置_PxCook.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design-source/账号.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design-source/账号信息.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design-source/阅读界面.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design-source/阅读界面2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design-source/首页.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/0520-cover.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/0520-cover.thumb.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/0520-info.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/0520-info.thumb.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/0520-list.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/0520-list.thumb.jpg
Binary file added screenshots/0520-menu.jpg
Binary file added screenshots/0520-menu.thumb.jpg
Binary file added screenshots/0520-reader.jpg
Binary file added screenshots/0520-reader.thumb.jpg
Binary file added screenshots/0520-statistic.jpg
Binary file added screenshots/0520-statistic.thumb.jpg
Binary file added screenshots/1.x-chapter.jpg
Binary file added screenshots/1.x-chapter.thumb.jpg
Binary file added screenshots/1.x-config-tc.jpg
Binary file added screenshots/1.x-config-tc.thumb.jpg
Binary file added screenshots/1.x-config.jpg
Binary file added screenshots/1.x-config.thumb.jpg
Binary file added screenshots/1.x-cover-sc.jpg
Binary file added screenshots/1.x-cover-sc.thumb.jpg
Binary file added screenshots/1.x-cover-tc.jpg
Binary file added screenshots/1.x-cover-tc.thumb.jpg
Binary file added screenshots/1.x-custom-menu.jpg
Binary file added screenshots/1.x-custom-menu.thumb.jpg
Binary file added screenshots/1.x-fav.jpg
Binary file added screenshots/1.x-fav.thumb.jpg
Binary file added screenshots/1.x-font-custom.jpg
Binary file added screenshots/1.x-font-custom.thumb.jpg
Binary file added screenshots/1.x-font-seek.jpg
Binary file added screenshots/1.x-font-seek.thumb.jpg
Binary file added screenshots/1.x-image-view.jpg
Binary file added screenshots/1.x-image-view.thumb.jpg
Binary file added screenshots/1.x-info-hotspot.jpg
Binary file added screenshots/1.x-info-hotspot.thumb.jpg
Binary file added screenshots/1.x-info-menu.jpg
Binary file added screenshots/1.x-info-menu.thumb.jpg
Binary file added screenshots/1.x-info.jpg
Binary file added screenshots/1.x-info.thumb.jpg
Binary file added screenshots/1.x-list-loading.jpg
Binary file added screenshots/1.x-list-loading.thumb.jpg
Binary file added screenshots/1.x-list.jpg
Binary file added screenshots/1.x-list.thumb.jpg
Binary file added screenshots/1.x-rank-list.jpg
Binary file added screenshots/1.x-rank-list.thumb.jpg
Binary file added screenshots/1.x-rank-list2.jpg
Binary file added screenshots/1.x-rank-list2.thumb.jpg
Binary file added screenshots/1.x-reader-dark.jpg
Binary file added screenshots/1.x-reader-dark.thumb.jpg
Binary file added screenshots/1.x-reader-horizental.jpg
Binary file added screenshots/1.x-reader-horizental.thumb.jpg
Binary file added screenshots/1.x-reader-jump-show.jpg
Binary file added screenshots/1.x-reader-jump-show.thumb.jpg
Binary file added screenshots/1.x-reader-jump.jpg
Binary file added screenshots/1.x-reader-jump.thumb.jpg
Binary file added screenshots/1.x-reader-menu.jpg
Binary file added screenshots/1.x-reader-menu.thumb.jpg
Binary file added screenshots/1.x-reader-setting.jpg
Binary file added screenshots/1.x-reader-setting.thumb.jpg
Binary file added screenshots/1.x-reader-swipe.jpg
Binary file added screenshots/1.x-reader-swipe.thumb.jpg
Binary file added screenshots/1.x-reader-vertical.jpg
Binary file added screenshots/1.x-reader-vertical.thumb.jpg
Binary file added screenshots/1.x-reader.jpg
Binary file added screenshots/1.x-reader.thumb.jpg
Binary file added screenshots/1.x-search-result.jpg
Binary file added screenshots/1.x-search-result.thumb.jpg
Binary file added screenshots/1.x-search.jpg
Binary file added screenshots/1.x-search.thumb.jpg
Binary file added screenshots/1.x-searching.jpg
Binary file added screenshots/1.x-searching.thumb.jpg
Binary file added screenshots/1.x-statistic.jpg
Binary file added screenshots/1.x-statistic.thumb.jpg
Binary file added screenshots/1.x-switch-tc.jpg
Binary file added screenshots/1.x-switch-tc.thumb.jpg
Expand Up @@ -50,13 +50,7 @@ public NovelItemAdapterUpdate(List<NovelItemInfoUpdate> dataset) {
}

public void RefreshDataset(List<NovelItemInfoUpdate> dataset) {
int origSize = mDataset.size();

if(dataset.size()>origSize) {
mDataset.addAll(dataset.subList(origSize, dataset.size()));
//mDataset = dataset; // reference
//int currSize = mDataset.size();
}
mDataset = dataset;
}


Expand Down
Expand Up @@ -59,7 +59,6 @@ public class FavFragment extends Fragment implements MyItemClickListener, MyItem

// novel list info
private List<Integer> listNovelItemAid = null; // aid list
private List<NovelItemInfoUpdate> listNovelItemInfo = null; // novel info list
private NovelItemAdapterUpdate mAdapter = null;

public static FavFragment newInstance(String param1, String param2) {
Expand Down Expand Up @@ -184,7 +183,7 @@ private void loadAllLocal() {

// init
listNovelItemAid = GlobalConfig.getLocalBookshelfList();
listNovelItemInfo = new ArrayList<>();
List<NovelItemInfoUpdate> listNovelItemInfo = new ArrayList<>(); // novel info list

// load all meta file
for(Integer aid : listNovelItemAid) {
Expand Down
33 changes: 33 additions & 0 deletions studio-android/LightNovelLibrary/volley/Android.mk
@@ -0,0 +1,33 @@
#
# Copyright (C) 2011 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE := volley
LOCAL_SDK_VERSION := 17
LOCAL_SRC_FILES := $(call all-java-files-under, src/main/java)

include $(BUILD_STATIC_JAVA_LIBRARY)

# Include this library in the build server's output directory
# TODO: Not yet.
#$(call dist-for-goals, dist_files, $(LOCAL_BUILT_MODULE):volley.jar)

# Include build files in subdirectories
include $(call all-makefiles-under,$(LOCAL_PATH))

25 changes: 25 additions & 0 deletions studio-android/LightNovelLibrary/volley/build.gradle
@@ -0,0 +1,25 @@
// NOTE: The only changes that belong in this file are the definitions
// of tool versions (gradle plugin, compile SDK, build tools), so that
// Volley can be built via gradle as a standalone project.
//
// Any other changes to the build config belong in rules.gradle, which
// is used by projects that depend on Volley but define their own
// tools versions across all dependencies to ensure a consistent build.

buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.2.3'
}
}

apply plugin: 'com.android.library'

android {
compileSdkVersion 21
buildToolsVersion = '21.1.2'
}

apply plugin: 'com.android.library'
92 changes: 92 additions & 0 deletions studio-android/LightNovelLibrary/volley/build.xml
@@ -0,0 +1,92 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="volley" default="help">

<!-- The local.properties file is created and updated by the 'android' tool.
It contains the path to the SDK. It should *NOT* be checked into
Version Control Systems. -->
<property file="local.properties" />

<!-- The ant.properties file can be created by you. It is only edited by the
'android' tool to add properties to it.
This is the place to change some Ant specific build properties.
Here are some properties you may want to change/update:
source.dir
The name of the source directory. Default is 'src'.
out.dir
The name of the output directory. Default is 'bin'.
For other overridable properties, look at the beginning of the rules
files in the SDK, at tools/ant/build.xml
Properties related to the SDK location or the project target should
be updated using the 'android' tool with the 'update' action.
This file is an integral part of the build system for your
application and should be checked into Version Control Systems.
-->
<property file="ant.properties" />

<!-- if sdk.dir was not set from one of the property file, then
get it from the ANDROID_HOME env var.
This must be done before we load project.properties since
the proguard config can use sdk.dir -->
<property environment="env" />
<condition property="sdk.dir" value="${env.ANDROID_HOME}">
<isset property="env.ANDROID_HOME" />
</condition>

<!-- The project.properties file is created and updated by the 'android'
tool, as well as ADT.
This contains project specific properties such as project target, and library
dependencies. Lower level build properties are stored in ant.properties
(or in .classpath for Eclipse projects).
This file is an integral part of the build system for your
application and should be checked into Version Control Systems. -->
<loadproperties srcFile="project.properties" />

<!-- quick check on sdk.dir -->
<fail
message="sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through the ANDROID_HOME environment variable."
unless="sdk.dir"
/>

<!--
Import per project custom build rules if present at the root of the project.
This is the place to put custom intermediary targets such as:
-pre-build
-pre-compile
-post-compile (This is typically used for code obfuscation.
Compiled code location: ${out.classes.absolute.dir}
If this is not done in place, override ${out.dex.input.absolute.dir})
-post-package
-post-build
-pre-clean
-->
<import file="custom_rules.xml" optional="true" />

<!-- Import the actual build file.
To customize existing targets, there are two options:
- Customize only one target:
- copy/paste the target into this file, *before* the
<import> task.
- customize it to your needs.
- Customize the whole content of build.xml
- copy/paste the content of the rules files (minus the top node)
into this file, replacing the <import> task.
- customize to your needs.
***********************
****** IMPORTANT ******
***********************
In all cases you must update the value of version-tag below to read 'custom' instead of an integer,
in order to avoid having your file be overridden by tools such as "android update project"
-->
<!-- version-tag: 1 -->
<import file="${sdk.dir}/tools/ant/build.xml" />

</project>
@@ -0,0 +1,13 @@
/**
* Automatically generated file. DO NOT MODIFY
*/
package com.android.volley.test;

public final class BuildConfig {
public static final boolean DEBUG = Boolean.parseBoolean("true");
public static final String APPLICATION_ID = "com.android.volley.test";
public static final String BUILD_TYPE = "debug";
public static final String FLAVOR = "";
public static final int VERSION_CODE = -1;
public static final String VERSION_NAME = "";
}
@@ -0,0 +1,13 @@
/**
* Automatically generated file. DO NOT MODIFY
*/
package com.android.volley;

public final class BuildConfig {
public static final boolean DEBUG = Boolean.parseBoolean("true");
public static final String APPLICATION_ID = "com.android.volley";
public static final String BUILD_TYPE = "debug";
public static final String FLAVOR = "";
public static final int VERSION_CODE = 1;
public static final String VERSION_NAME = "";
}
@@ -0,0 +1,13 @@
/**
* Automatically generated file. DO NOT MODIFY
*/
package com.android.volley;

public final class BuildConfig {
public static final boolean DEBUG = false;
public static final String APPLICATION_ID = "com.android.volley";
public static final String BUILD_TYPE = "release";
public static final String FLAVOR = "";
public static final int VERSION_CODE = 1;
public static final String VERSION_NAME = "";
}
@@ -0,0 +1,13 @@
/**
* Automatically generated file. DO NOT MODIFY
*/
package com.android.volley.test;

public final class BuildConfig {
public static final boolean DEBUG = Boolean.parseBoolean("true");
public static final String APPLICATION_ID = "com.android.volley.test";
public static final String BUILD_TYPE = "debug";
public static final String FLAVOR = "";
public static final int VERSION_CODE = -1;
public static final String VERSION_NAME = "";
}
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.volley"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk android:minSdkVersion="8" />

<application />

</manifest>
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.volley"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk android:minSdkVersion="8" />

<application />

</manifest>
Binary file not shown.
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.volley"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk android:minSdkVersion="8" />

<application />

</manifest>
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.volley"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk android:minSdkVersion="8" />

<application />

</manifest>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<merger version="3"><dataSet config="debug"><source path="D:\MewX_Projects\Wenku8_Android\studio-android\LightNovelLibrary\volley\build\intermediates\bundles\debug\assets"/></dataSet><dataSet config="main"><source path="D:\MewX_Projects\Wenku8_Android\studio-android\LightNovelLibrary\volley\src\androidTest\assets"/></dataSet></merger>
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<merger version="3"><dataSet config="main"><source path="D:\MewX_Projects\Wenku8_Android\studio-android\LightNovelLibrary\volley\src\main\assets"/></dataSet><dataSet config="debug"><source path="D:\MewX_Projects\Wenku8_Android\studio-android\LightNovelLibrary\volley\src\debug\assets"/></dataSet></merger>
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<merger version="3"><dataSet config="main"><source path="D:\MewX_Projects\Wenku8_Android\studio-android\LightNovelLibrary\volley\src\main\assets"/></dataSet><dataSet config="release"><source path="D:\MewX_Projects\Wenku8_Android\studio-android\LightNovelLibrary\volley\src\release\assets"/></dataSet></merger>
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<merger version="3"><dataSet config="debug"><source path="D:\MewX_Projects\Wenku8_Android\studio-android\LightNovelLibrary\volley\build\intermediates\bundles\debug\assets"/></dataSet><dataSet config="main"><source path="D:\MewX_Projects\Wenku8_Android\studio-android\LightNovelLibrary\volley\src\androidTest\assets"/></dataSet></merger>
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<merger version="3"><dataSet config="debug"><source path="D:\MewX_Projects\Wenku8_Android\studio-android\LightNovelLibrary\volley\build\intermediates\bundles\debug\res"/></dataSet><dataSet config="main"><source path="D:\MewX_Projects\Wenku8_Android\studio-android\LightNovelLibrary\volley\src\androidTest\res"/><source path="D:\MewX_Projects\Wenku8_Android\studio-android\LightNovelLibrary\volley\build\generated\res\rs\androidTest\debug"/><source path="D:\MewX_Projects\Wenku8_Android\studio-android\LightNovelLibrary\volley\build\generated\res\generated\androidTest\debug"/></dataSet><mergedItems/></merger>
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<merger version="3"><dataSet config="debug"><source path="D:\MewX_Projects\Wenku8_Android\studio-android\LightNovelLibrary\volley\build\intermediates\bundles\debug\res"/></dataSet><dataSet config="main"><source path="D:\MewX_Projects\Wenku8_Android\studio-android\LightNovelLibrary\volley\src\androidTest\res"/><source path="D:\MewX_Projects\Wenku8_Android\studio-android\LightNovelLibrary\volley\build\generated\res\rs\test\debug"/><source path="D:\MewX_Projects\Wenku8_Android\studio-android\LightNovelLibrary\volley\build\generated\res\generated\test\debug"/></dataSet><mergedItems/></merger>
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<merger version="3"><dataSet config="main"><source path="D:\MewX_Projects\Wenku8_Android\studio-android\LightNovelLibrary\volley\src\main\res"/><source path="D:\MewX_Projects\Wenku8_Android\studio-android\LightNovelLibrary\volley\build\generated\res\rs\debug"/><source path="D:\MewX_Projects\Wenku8_Android\studio-android\LightNovelLibrary\volley\build\generated\res\generated\debug"/></dataSet><dataSet config="debug"><source path="D:\MewX_Projects\Wenku8_Android\studio-android\LightNovelLibrary\volley\src\debug\res"/></dataSet><mergedItems/></merger>
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<merger version="3"><dataSet config="main"><source path="D:\MewX_Projects\Wenku8_Android\studio-android\LightNovelLibrary\volley\src\main\res"/><source path="D:\MewX_Projects\Wenku8_Android\studio-android\LightNovelLibrary\volley\build\generated\res\rs\release"/><source path="D:\MewX_Projects\Wenku8_Android\studio-android\LightNovelLibrary\volley\build\generated\res\generated\release"/></dataSet><dataSet config="release"><source path="D:\MewX_Projects\Wenku8_Android\studio-android\LightNovelLibrary\volley\src\release\res"/></dataSet><mergedItems/></merger>
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.volley.test" >

<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="8" />

<instrumentation
android:name="android.test.InstrumentationTestRunner"
android:functionalTest="false"
android:handleProfiling="false"
android:label="Tests for com.android.volley.test"
android:targetPackage="com.android.volley.test" />

<application>
<uses-library android:name="android.test.runner" />
</application>

</manifest>
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.volley.test" >

<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="8" />

<instrumentation
android:name="android.test.InstrumentationTestRunner"
android:functionalTest="false"
android:handleProfiling="false"
android:label="Tests for com.android.volley.test"
android:targetPackage="com.android.volley.test" />

<application>
<uses-library android:name="android.test.runner" />
</application>

</manifest>
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.volley.test">

<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="8" />

<application>
<uses-library android:name="android.test.runner" />
</application>

<instrumentation android:name="android.test.InstrumentationTestRunner"
android:targetPackage="com.android.volley.test"
android:handleProfiling="false"
android:functionalTest="false"
android:label="Tests for com.android.volley.test"/>
</manifest>

0 comments on commit a69c290

Please sign in to comment.