data){
+ //示例代码<<<<<<<<<<<<<<<<
+ this.data = data;//这里data传进来的只有adapter内item数据,可不判空
+
+ ImageLoaderUtil.loadImage(ivDemoViewHead, data.getKey());
+ tvDemoViewName.setText(StringUtil.getTrimedString(data.getValue()));
+ //示例代码>>>>>>>>>>>>>>>>
+ }
+
+ }
+
+
+}
diff --git a/ZBLibrary(ADT)/ZBLibraryDemoApp/src/zblibrary/demo/activity_fragment/AboutActivity.java b/ZBLibrary(ADT)/ZBLibraryDemoApp/src/zblibrary/demo/activity_fragment/AboutActivity.java
index a96b996..21f2cda 100644
--- a/ZBLibrary(ADT)/ZBLibraryDemoApp/src/zblibrary/demo/activity_fragment/AboutActivity.java
+++ b/ZBLibrary(ADT)/ZBLibraryDemoApp/src/zblibrary/demo/activity_fragment/AboutActivity.java
@@ -14,20 +14,6 @@
package zblibrary.demo.activity_fragment;
-import java.io.File;
-
-import zblibrary.demo.R;
-import zblibrary.demo.DEMO.DemoMainActivity;
-import zblibrary.demo.application.DemoApplication;
-import zblibrary.demo.util.Constant;
-import zblibrary.demo.util.HttpRequest;
-import zuo.biao.library.base.BaseActivity;
-import zuo.biao.library.interfaces.OnBottomDragListener;
-import zuo.biao.library.interfaces.OnHttpResponseListener;
-import zuo.biao.library.ui.WebViewActivity;
-import zuo.biao.library.util.CommonUtil;
-import zuo.biao.library.util.DownloadUtil;
-import zuo.biao.library.util.SettingUtil;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
@@ -44,6 +30,21 @@
import com.google.zxing.WriterException;
import com.zxing.encoding.EncodingHandler;
+import java.io.File;
+
+import zblibrary.demo.DEMO.DemoMainActivity;
+import zblibrary.demo.R;
+import zblibrary.demo.application.DemoApplication;
+import zblibrary.demo.util.Constant;
+import zblibrary.demo.util.HttpRequest;
+import zuo.biao.library.base.BaseActivity;
+import zuo.biao.library.interfaces.OnBottomDragListener;
+import zuo.biao.library.interfaces.OnHttpResponseListener;
+import zuo.biao.library.ui.WebViewActivity;
+import zuo.biao.library.util.CommonUtil;
+import zuo.biao.library.util.DownloadUtil;
+import zuo.biao.library.util.SettingUtil;
+
/**关于界面
* @author Lemon
*/
@@ -83,17 +84,17 @@ protected void onCreate(Bundle savedInstanceState) {
if (SettingUtil.isOnTestMode) {
showShortToast("测试服务器\n" + HttpRequest.URL_BASE);
}
-
-
+
+
//仅测试用
HttpRequest.translate("library", 0, new OnHttpResponseListener() {
-
+
@Override
public void onHttpResponse(int requestCode, String resultJson, Exception e) {
showShortToast("测试Http请求:翻译library结果为\n" + resultJson);
}
});
-
+
}
//UI显示区(操作UI,但不存在数据获取或处理代码,也不存在事件监听代码)<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
@@ -105,7 +106,7 @@ public void onHttpResponse(int requestCode, String resultJson, Exception e) {
private ImageView ivAboutQRCode;
@Override
public void initView() {
-
+
ivAboutGesture = findView(R.id.ivAboutGesture);
ivAboutGesture.setVisibility(SettingUtil.isFirstStart ? View.VISIBLE : View.GONE);
if (SettingUtil.isFirstStart) {
@@ -133,7 +134,7 @@ public void initView() {
@Override
public void initData() {
-
+
tvAboutAppInfo.setText(DemoApplication.getInstance().getAppName()
+ "\n" + DemoApplication.getInstance().getAppVersion());
@@ -164,7 +165,7 @@ public void run() {
public void run() {
ivAboutQRCode.setImageBitmap(qRCodeBitmap);
}
- });
+ });
}
});
}
@@ -196,7 +197,7 @@ public void run() {
@Override
public void initEvent() {
-
+
findView(R.id.llAboutMainTabActivity).setOnClickListener(this);
findView(R.id.llAboutZBLibraryMainActivity).setOnClickListener(this);
@@ -239,7 +240,7 @@ public void onClick(View v) {
case R.id.llAboutMainTabActivity:
startActivity(MainTabActivity.createIntent(context).setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP));
overridePendingTransition(R.anim.bottom_push_in, R.anim.hold);
-
+
enterAnim = exitAnim = R.anim.null_anim;
finish();
break;
diff --git a/ZBLibrary(ADT)/recyclerview/.classpath b/ZBLibrary(ADT)/recyclerview/.classpath
new file mode 100644
index 0000000..7bc01d9
--- /dev/null
+++ b/ZBLibrary(ADT)/recyclerview/.classpath
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
diff --git a/ZBLibrary(ADT)/recyclerview/.project b/ZBLibrary(ADT)/recyclerview/.project
new file mode 100644
index 0000000..67e61aa
--- /dev/null
+++ b/ZBLibrary(ADT)/recyclerview/.project
@@ -0,0 +1,33 @@
+
+
+ recyclerview
+
+
+
+
+
+ com.android.ide.eclipse.adt.ResourceManagerBuilder
+
+
+
+
+ com.android.ide.eclipse.adt.PreCompilerBuilder
+
+
+
+
+ org.eclipse.jdt.core.javabuilder
+
+
+
+
+ com.android.ide.eclipse.adt.ApkBuilder
+
+
+
+
+
+ com.android.ide.eclipse.adt.AndroidNature
+ org.eclipse.jdt.core.javanature
+
+
diff --git a/ZBLibrary(ADT)/recyclerview/.settings/org.eclipse.jdt.core.prefs b/ZBLibrary(ADT)/recyclerview/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 0000000..7341ab1
--- /dev/null
+++ b/ZBLibrary(ADT)/recyclerview/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,11 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
+org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
+org.eclipse.jdt.core.compiler.compliance=1.7
+org.eclipse.jdt.core.compiler.debug.lineNumber=generate
+org.eclipse.jdt.core.compiler.debug.localVariable=generate
+org.eclipse.jdt.core.compiler.debug.sourceFile=generate
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.7
diff --git a/ZBLibrary(ADT)/recyclerview/AndroidManifest.xml b/ZBLibrary(ADT)/recyclerview/AndroidManifest.xml
new file mode 100644
index 0000000..421395f
--- /dev/null
+++ b/ZBLibrary(ADT)/recyclerview/AndroidManifest.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
diff --git a/ZBLibrary(ADT)/recyclerview/README.txt b/ZBLibrary(ADT)/recyclerview/README.txt
new file mode 100644
index 0000000..3c9de34
--- /dev/null
+++ b/ZBLibrary(ADT)/recyclerview/README.txt
@@ -0,0 +1 @@
+Library Project including RecyclerView and associated utilities.
diff --git a/ZBLibrary(ADT)/recyclerview/gen/android/support/v7/recyclerview/BuildConfig.java b/ZBLibrary(ADT)/recyclerview/gen/android/support/v7/recyclerview/BuildConfig.java
new file mode 100644
index 0000000..e195efa
--- /dev/null
+++ b/ZBLibrary(ADT)/recyclerview/gen/android/support/v7/recyclerview/BuildConfig.java
@@ -0,0 +1,6 @@
+/** Automatically generated file. DO NOT MODIFY */
+package android.support.v7.recyclerview;
+
+public final class BuildConfig {
+ public final static boolean DEBUG = true;
+}
\ No newline at end of file
diff --git a/ZBLibrary(ADT)/recyclerview/gen/android/support/v7/recyclerview/R.java b/ZBLibrary(ADT)/recyclerview/gen/android/support/v7/recyclerview/R.java
new file mode 100644
index 0000000..412e099
--- /dev/null
+++ b/ZBLibrary(ADT)/recyclerview/gen/android/support/v7/recyclerview/R.java
@@ -0,0 +1,163 @@
+/* AUTO-GENERATED FILE. DO NOT MODIFY.
+ *
+ * This class was automatically generated by the
+ * aapt tool from the resource data it found. It
+ * should not be modified by hand.
+ */
+
+package android.support.v7.recyclerview;
+
+public final class R {
+ public static final class attr {
+ /** Class name of the Layout Manager to be used.
+
+ The class must extend android.support.v7.widget.RecyclerView$LayoutManager
+ and have either a default constructor or constructor with the signature
+ (android.content.Context, android.util.AttributeSet, int, int).
+
+ If the name starts with a '.', application package is prefixed.
+ Else, if the name contains a '.', the classname is assumed to be a full class name.
+ Else, the recycler view package name (android.support.v7.widget) is prefixed.
+ Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
+
This may also be a reference to a resource (in the form
+"@[package:]type:name
") or
+theme attribute (in the form
+"?[package:][type:]name
")
+containing a value of this type.
+ */
+ public static int layoutManager=0x7f010000;
+ /**
Must be a boolean value, either "true
" or "false
".
+
This may also be a reference to a resource (in the form
+"@[package:]type:name
") or
+theme attribute (in the form
+"?[package:][type:]name
")
+containing a value of this type.
+ */
+ public static int reverseLayout=0x7f010002;
+ /**
Must be an integer value, such as "100
".
+
This may also be a reference to a resource (in the form
+"@[package:]type:name
") or
+theme attribute (in the form
+"?[package:][type:]name
")
+containing a value of this type.
+ */
+ public static int spanCount=0x7f010001;
+ /**
Must be a boolean value, either "true
" or "false
".
+
This may also be a reference to a resource (in the form
+"@[package:]type:name
") or
+theme attribute (in the form
+"?[package:][type:]name
")
+containing a value of this type.
+ */
+ public static int stackFromEnd=0x7f010003;
+ }
+ public static final class dimen {
+ /** The max amount of scroll ItemTouchHelper will trigger if dragged view is out of
+ RecyclerView's bounds.
+ */
+ public static int item_touch_helper_max_drag_scroll_per_frame=0x7f020000;
+ public static int item_touch_helper_swipe_escape_max_velocity=0x7f020002;
+ public static int item_touch_helper_swipe_escape_velocity=0x7f020001;
+ }
+ public static final class id {
+ /** ItemTouchHelper uses this id to save a View's original elevation.
+ */
+ public static int item_touch_helper_previous_elevation=0x7f030000;
+ }
+ public static final class styleable {
+ /** Attributes that can be used with a RecyclerView.
+
Includes the following attributes:
+
+
+
+ Attribute | Description |
+ {@link #RecyclerView_android_orientation android:orientation} | |
+ {@link #RecyclerView_layoutManager android.support.v7.recyclerview:layoutManager} | Class name of the Layout Manager to be used. |
+ {@link #RecyclerView_reverseLayout android.support.v7.recyclerview:reverseLayout} | |
+ {@link #RecyclerView_spanCount android.support.v7.recyclerview:spanCount} | |
+ {@link #RecyclerView_stackFromEnd android.support.v7.recyclerview:stackFromEnd} | |
+
+ @see #RecyclerView_android_orientation
+ @see #RecyclerView_layoutManager
+ @see #RecyclerView_reverseLayout
+ @see #RecyclerView_spanCount
+ @see #RecyclerView_stackFromEnd
+ */
+ public static final int[] RecyclerView = {
+ 0x010100c4, 0x7f010000, 0x7f010001, 0x7f010002,
+ 0x7f010003
+ };
+ /**
+ This symbol is the offset where the {@link android.R.attr#orientation}
+ attribute's value can be found in the {@link #RecyclerView} array.
+ @attr name android:orientation
+ */
+ public static int RecyclerView_android_orientation = 0;
+ /**
+
+ @attr description
+ Class name of the Layout Manager to be used.
+
+ The class must extend android.support.v7.widget.RecyclerView$LayoutManager
+ and have either a default constructor or constructor with the signature
+ (android.content.Context, android.util.AttributeSet, int, int).
+
+ If the name starts with a '.', application package is prefixed.
+ Else, if the name contains a '.', the classname is assumed to be a full class name.
+ Else, the recycler view package name (android.support.v7.widget) is prefixed.
+
+
+ Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
+
This may also be a reference to a resource (in the form
+"@[package:]type:name
") or
+theme attribute (in the form
+"?[package:][type:]name
")
+containing a value of this type.
+
This is a private symbol.
+ @attr name android.support.v7.recyclerview:layoutManager
+ */
+ public static int RecyclerView_layoutManager = 1;
+ /**
+
This symbol is the offset where the {@link android.support.v7.recyclerview.R.attr#reverseLayout}
+ attribute's value can be found in the {@link #RecyclerView} array.
+
+
+
Must be a boolean value, either "true
" or "false
".
+
This may also be a reference to a resource (in the form
+"@[package:]type:name
") or
+theme attribute (in the form
+"?[package:][type:]name
")
+containing a value of this type.
+ @attr name android.support.v7.recyclerview:reverseLayout
+ */
+ public static int RecyclerView_reverseLayout = 3;
+ /**
+
This symbol is the offset where the {@link android.support.v7.recyclerview.R.attr#spanCount}
+ attribute's value can be found in the {@link #RecyclerView} array.
+
+
+
Must be an integer value, such as "100
".
+
This may also be a reference to a resource (in the form
+"@[package:]type:name
") or
+theme attribute (in the form
+"?[package:][type:]name
")
+containing a value of this type.
+ @attr name android.support.v7.recyclerview:spanCount
+ */
+ public static int RecyclerView_spanCount = 2;
+ /**
+
This symbol is the offset where the {@link android.support.v7.recyclerview.R.attr#stackFromEnd}
+ attribute's value can be found in the {@link #RecyclerView} array.
+
+
+
Must be a boolean value, either "true
" or "false
".
+
This may also be a reference to a resource (in the form
+"@[package:]type:name
") or
+theme attribute (in the form
+"?[package:][type:]name
")
+containing a value of this type.
+ @attr name android.support.v7.recyclerview:stackFromEnd
+ */
+ public static int RecyclerView_stackFromEnd = 4;
+ };
+}
diff --git a/ZBLibrary(ADT)/recyclerview/libs/android-support-v7-recyclerview.jar b/ZBLibrary(ADT)/recyclerview/libs/android-support-v7-recyclerview.jar
new file mode 100644
index 0000000..9d94070
Binary files /dev/null and b/ZBLibrary(ADT)/recyclerview/libs/android-support-v7-recyclerview.jar differ
diff --git a/ZBLibrary(ADT)/recyclerview/project.properties b/ZBLibrary(ADT)/recyclerview/project.properties
new file mode 100644
index 0000000..93c8c3c
--- /dev/null
+++ b/ZBLibrary(ADT)/recyclerview/project.properties
@@ -0,0 +1,15 @@
+# This file is automatically generated by Android Tools.
+# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
+#
+# This file must be checked in Version Control Systems.
+#
+# To customize properties used by the Ant build system edit
+# "ant.properties", and override values to adapt the script to your
+# project structure.
+#
+# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
+#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
+
+# Project target.
+target=android-21
+android.library=true
diff --git a/ZBLibrary(ADT)/recyclerview/res/values/attrs.xml b/ZBLibrary(ADT)/recyclerview/res/values/attrs.xml
new file mode 100644
index 0000000..ad93ce6
--- /dev/null
+++ b/ZBLibrary(ADT)/recyclerview/res/values/attrs.xml
@@ -0,0 +1,40 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ZBLibrary(ADT)/recyclerview/res/values/dimens.xml b/ZBLibrary(ADT)/recyclerview/res/values/dimens.xml
new file mode 100644
index 0000000..90c41b9
--- /dev/null
+++ b/ZBLibrary(ADT)/recyclerview/res/values/dimens.xml
@@ -0,0 +1,24 @@
+
+
+
+
+
+ 20dp
+ 120dp
+ 800dp
+
\ No newline at end of file
diff --git a/ZBLibrary(ADT)/recyclerview/res/values/ids.xml b/ZBLibrary(ADT)/recyclerview/res/values/ids.xml
new file mode 100644
index 0000000..fba1db4
--- /dev/null
+++ b/ZBLibrary(ADT)/recyclerview/res/values/ids.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
diff --git a/ZBLibrary(AndroidStudio)/ZBLibrary/src/main/res/values/strings.xml b/ZBLibrary(AndroidStudio)/ZBLibrary/src/main/res/values/strings.xml
index 5aed677..2f82316 100755
--- a/ZBLibrary(AndroidStudio)/ZBLibrary/src/main/res/values/strings.xml
+++ b/ZBLibrary(AndroidStudio)/ZBLibrary/src/main/res/values/strings.xml
@@ -2,7 +2,7 @@
坐标标准库
- 15.0
+ 15.1
我发现了一款很好用的Android快速开发框架,叫 Android-ZBLibrary ,快去GitHub上看看吧~
返回
提示