Nextrek
Diff Revisions
784
vs
785
for /Android/SmartCharging/SmartCharging/app/src/main/java/it/fedeloper/smartcharging/Controller/FullInfoFragment.java
|
@@ -83,7 +83,14 @@ |
83 |
83 |
|
obj.put("id", idlocale); |
84 |
84 |
|
|
85 |
85 |
|
final JSONObject resp = HttpClient.SendHttpPostAsync(EndPoint.MAIN_END_POINT + "/get_immagini.php", obj); |
|
86 |
+ |
getActivity().runOnUiThread(new Runnable() { |
|
87 |
+ |
@Override |
|
88 |
+ |
public void run() { |
86 |
89 |
|
|
|
90 |
+ |
|
|
91 |
+ |
loadingAll.setVisibility(View.GONE); |
|
92 |
+ |
} |
|
93 |
+ |
}); |
87 |
94 |
|
Log.e("errore", resp.toString()); |
88 |
95 |
|
final JSONArray jArray = resp.getJSONArray("imgs"); |
89 |
96 |
|
Log.e("errore", "1111imggggg"); |
|
@@ -108,8 +115,9 @@ |
108 |
115 |
|
Animation aAnimation = (Animation) AnimationUtils.loadAnimation(c, R.anim.zoom); |
109 |
116 |
|
|
110 |
117 |
|
image.startAnimation(aAnimation); |
|
118 |
+ |
|
111 |
119 |
|
if (haveScrolled == false) { |
112 |
|
- |
loadingAll.setVisibility(View.GONE); |
|
120 |
+ |
|
113 |
121 |
|
ObjectAnimator objectAnimator = ObjectAnimator.ofInt(((ScrollView) getActivity().findViewById(R.id.scrollView)), "scrollY", 0, ((ScrollView) getActivity().findViewById(R.id.scrollView)).getBottom()).setDuration(500); |
114 |
122 |
|
objectAnimator.start(); |
115 |
123 |
|
// ((ScrollView)getActivity().findViewById(R.id.scrollView)).fullScroll(ScrollView.FOCUS_DOWN); |
|
@@ -163,6 +171,14 @@ |
163 |
171 |
|
obj.put("length", "10"); |
164 |
172 |
|
|
165 |
173 |
|
final JSONObject resp = HttpClient.SendHttpPostAsync(EndPoint.MAIN_END_POINT + "/get_commenti.php", obj); |
|
174 |
+ |
getActivity().runOnUiThread(new Runnable() { |
|
175 |
+ |
@Override |
|
176 |
+ |
public void run() { |
|
177 |
+ |
|
|
178 |
+ |
|
|
179 |
+ |
loadingAll.setVisibility(View.GONE); |
|
180 |
+ |
} |
|
181 |
+ |
}); |
166 |
182 |
|
if(resp.getString("count").equals("0")){ |
167 |
183 |
|
getActivity().runOnUiThread(new Runnable() { |
168 |
184 |
|
@Override |