diff --git a/ZBLibrary(AndroidStudio)/.idea/.name b/ZBLibrary(AndroidStudio)/.idea/.name
new file mode 100644
index 0000000..85f9ebf
--- /dev/null
+++ b/ZBLibrary(AndroidStudio)/.idea/.name
@@ -0,0 +1 @@
+ZBLibrary(AndroidStudio)
\ No newline at end of file
diff --git a/ZBLibrary(AndroidStudio)/.idea/compiler.xml b/ZBLibrary(AndroidStudio)/.idea/compiler.xml
new file mode 100644
index 0000000..96cc43e
--- /dev/null
+++ b/ZBLibrary(AndroidStudio)/.idea/compiler.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ZBLibrary(AndroidStudio)/.idea/copyright/profiles_settings.xml b/ZBLibrary(AndroidStudio)/.idea/copyright/profiles_settings.xml
new file mode 100644
index 0000000..e7bedf3
--- /dev/null
+++ b/ZBLibrary(AndroidStudio)/.idea/copyright/profiles_settings.xml
@@ -0,0 +1,3 @@
+
+
+
\ No newline at end of file
diff --git a/ZBLibrary(AndroidStudio)/.idea/encodings.xml b/ZBLibrary(AndroidStudio)/.idea/encodings.xml
new file mode 100644
index 0000000..97626ba
--- /dev/null
+++ b/ZBLibrary(AndroidStudio)/.idea/encodings.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ZBLibrary(AndroidStudio)/.idea/gradle.xml b/ZBLibrary(AndroidStudio)/.idea/gradle.xml
new file mode 100644
index 0000000..910c0eb
--- /dev/null
+++ b/ZBLibrary(AndroidStudio)/.idea/gradle.xml
@@ -0,0 +1,28 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ZBLibrary(AndroidStudio)/.idea/misc.xml b/ZBLibrary(AndroidStudio)/.idea/misc.xml
new file mode 100644
index 0000000..3e538b6
--- /dev/null
+++ b/ZBLibrary(AndroidStudio)/.idea/misc.xml
@@ -0,0 +1,62 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1.7
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ZBLibrary(AndroidStudio)/.idea/modules.xml b/ZBLibrary(AndroidStudio)/.idea/modules.xml
new file mode 100644
index 0000000..e8137e5
--- /dev/null
+++ b/ZBLibrary(AndroidStudio)/.idea/modules.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ZBLibrary(AndroidStudio)/.idea/runConfigurations.xml b/ZBLibrary(AndroidStudio)/.idea/runConfigurations.xml
new file mode 100644
index 0000000..7f68460
--- /dev/null
+++ b/ZBLibrary(AndroidStudio)/.idea/runConfigurations.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ZBLibrary(AndroidStudio)/ZBLibrary/src/main/java/zuo/biao/library/manager/TimeRefresher.java b/ZBLibrary(AndroidStudio)/ZBLibrary/src/main/java/zuo/biao/library/manager/TimeRefresher.java
index daa675e..214cc27 100755
--- a/ZBLibrary(AndroidStudio)/ZBLibrary/src/main/java/zuo/biao/library/manager/TimeRefresher.java
+++ b/ZBLibrary(AndroidStudio)/ZBLibrary/src/main/java/zuo/biao/library/manager/TimeRefresher.java
@@ -135,7 +135,7 @@ public void finish() {
/**计时器holder
*/
@SuppressLint("HandlerLeak")
- public class TimeHolder {
+ public static class TimeHolder {
long duration = 1000;
OnTimeRefreshListener listener;
diff --git a/ZBLibrary(AndroidStudio)/ZBLibrary/src/main/java/zuo/biao/library/ui/GridAdapter.java b/ZBLibrary(AndroidStudio)/ZBLibrary/src/main/java/zuo/biao/library/ui/GridAdapter.java
index 732c057..b863d9b 100755
--- a/ZBLibrary(AndroidStudio)/ZBLibrary/src/main/java/zuo/biao/library/ui/GridAdapter.java
+++ b/ZBLibrary(AndroidStudio)/ZBLibrary/src/main/java/zuo/biao/library/ui/GridAdapter.java
@@ -114,7 +114,7 @@ public void onClick(View v) {
return convertView;
}
- public class ViewHolder {
+ public static class ViewHolder {
public ImageView ivHead;
public TextView tvName;
public ImageView ivCheck;
diff --git a/ZBLibrary(AndroidStudio)/ZBLibrary/src/main/java/zuo/biao/library/ui/GridPickerAdapter.java b/ZBLibrary(AndroidStudio)/ZBLibrary/src/main/java/zuo/biao/library/ui/GridPickerAdapter.java
index 84779ed..c01d6e3 100755
--- a/ZBLibrary(AndroidStudio)/ZBLibrary/src/main/java/zuo/biao/library/ui/GridPickerAdapter.java
+++ b/ZBLibrary(AndroidStudio)/ZBLibrary/src/main/java/zuo/biao/library/ui/GridPickerAdapter.java
@@ -107,7 +107,7 @@ public void onClick(View v) {
return convertView;
}
- public class ViewHolder {
+ public static class ViewHolder {
public TextView tv;
}
//getView的常规写法>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
diff --git a/ZBLibrary(AndroidStudio)/ZBLibrary/src/main/java/zuo/biao/library/ui/KeyValueAdapter.java b/ZBLibrary(AndroidStudio)/ZBLibrary/src/main/java/zuo/biao/library/ui/KeyValueAdapter.java
index cb3bf50..20c1478 100755
--- a/ZBLibrary(AndroidStudio)/ZBLibrary/src/main/java/zuo/biao/library/ui/KeyValueAdapter.java
+++ b/ZBLibrary(AndroidStudio)/ZBLibrary/src/main/java/zuo/biao/library/ui/KeyValueAdapter.java
@@ -62,7 +62,7 @@ public View getView(final int position, View convertView, ViewGroup parent) {
return convertView;
}
- public class ViewHolder {
+ public static class ViewHolder {
public TextView tvKey;
public TextView tvValue;
}
diff --git a/ZBLibrary(AndroidStudio)/ZBLibrary/src/main/java/zuo/biao/library/util/CommonUtil.java b/ZBLibrary(AndroidStudio)/ZBLibrary/src/main/java/zuo/biao/library/util/CommonUtil.java
index c5fdb26..c1f9c51 100755
--- a/ZBLibrary(AndroidStudio)/ZBLibrary/src/main/java/zuo/biao/library/util/CommonUtil.java
+++ b/ZBLibrary(AndroidStudio)/ZBLibrary/src/main/java/zuo/biao/library/util/CommonUtil.java
@@ -371,12 +371,12 @@ public static String savePhotoToSDCard(String path, String photoName, String for
FileOutputStream fileOutputStream = null;
try {
fileOutputStream = new FileOutputStream(photoFile);
- if (photoBitmap != null) {
+
if (photoBitmap.compress(Bitmap.CompressFormat.JPEG, 100,
fileOutputStream)) {
fileOutputStream.flush();
Log.i(TAG, "savePhotoToSDCard<<<<<<<<<<<<<<\n" + photoFile.getAbsolutePath() + "\n>>>>>>>>> succeed!");
- }
+
}
} catch (FileNotFoundException e) {
Log.e(TAG, "savePhotoToSDCard catch (FileNotFoundException e) {\n " + e.getMessage());
@@ -388,6 +388,7 @@ public static String savePhotoToSDCard(String path, String photoName, String for
// e.printStackTrace();
} finally {
try {
+ if (null!=fileOutputStream)
fileOutputStream.close();
} catch (IOException e) {
Log.e(TAG, "savePhotoToSDCard } catch (IOException e) {\n " + e.getMessage());
diff --git a/ZBLibrary(AndroidStudio)/app/src/main/java/zblibrary/demo/DEMO/DemoActivity.java b/ZBLibrary(AndroidStudio)/app/src/main/java/zblibrary/demo/DEMO/DemoActivity.java
index 612fa48..4ad6112 100755
--- a/ZBLibrary(AndroidStudio)/app/src/main/java/zblibrary/demo/DEMO/DemoActivity.java
+++ b/ZBLibrary(AndroidStudio)/app/src/main/java/zblibrary/demo/DEMO/DemoActivity.java
@@ -202,6 +202,7 @@ private void addList() {
list = new ArrayList<>();
}
list.addAll(getList(userId));
+ if (null!=adapter)
adapter.refresh(list);
lvDemo.smoothScrollToPosition(formerCout);
diff --git a/ZBLibrary(AndroidStudio)/app/src/main/java/zblibrary/demo/DEMO/DemoAdapter.java b/ZBLibrary(AndroidStudio)/app/src/main/java/zblibrary/demo/DEMO/DemoAdapter.java
index b73ba19..80339bb 100755
--- a/ZBLibrary(AndroidStudio)/app/src/main/java/zblibrary/demo/DEMO/DemoAdapter.java
+++ b/ZBLibrary(AndroidStudio)/app/src/main/java/zblibrary/demo/DEMO/DemoAdapter.java
@@ -66,7 +66,7 @@ public View getView(final int position, View convertView, ViewGroup parent) {
//示例代码>>>>>>>>>>>>>>>>
}
- class ViewHolder {
+ static class ViewHolder {
//示例代码<<<<<<<<<<<<<<<<
public ImageView ivDemoItemHead;
public TextView tvDemoItemName;
diff --git a/ZBLibrary(AndroidStudio)/app/src/main/java/zblibrary/demo/DEMO/DemoAdapter2.java b/ZBLibrary(AndroidStudio)/app/src/main/java/zblibrary/demo/DEMO/DemoAdapter2.java
index 7ba4895..63721f4 100644
--- a/ZBLibrary(AndroidStudio)/app/src/main/java/zblibrary/demo/DEMO/DemoAdapter2.java
+++ b/ZBLibrary(AndroidStudio)/app/src/main/java/zblibrary/demo/DEMO/DemoAdapter2.java
@@ -54,7 +54,7 @@ public ItemView createView(int position, View convertView, ViewGroup parent) {
/**item对应的View,可改为外部类
* @use 改代码
*/
- public class ItemView extends BaseView> implements OnClickListener {
+ public static class ItemView extends BaseView> implements OnClickListener {
private static final String TAG = "ItemView";
public ItemView(Activity context, Resources resources) {