2025年04月28日15:26:37 下拉刷新隐藏加载框
下拉刷新隐藏加载框
| | |
| | | protected void onPostExecute(Void aVoid) { |
| | | // 执行任务(如更新UI、跳转等) |
| | | viewBinding.messageSrl.endRefreshing(); |
| | | loadNextPageMessageList(true, 1, mDeviceTypeFilterKye, mDeviceTypeFilterValue, mTypeFilterKye, mTypeFilterValue, mTimeTypeFilterKye, mTimeTypeFilterValue, true); |
| | | loadNextPageMessageList(false, 1, mDeviceTypeFilterKye, mDeviceTypeFilterValue, mTypeFilterKye, mTypeFilterValue, mTimeTypeFilterKye, mTimeTypeFilterValue, true); |
| | | |
| | | } |
| | | }.execute(); |
| | |
| | | @Override |
| | | public void run() { |
| | | viewBinding.listSrl.endRefreshing(); |
| | | loadNextPageMessageList(true, 1, viewBinding.messageSearchEt.getText().toString(), true); |
| | | loadNextPageMessageList(false, 1, viewBinding.messageSearchEt.getText().toString(), true); |
| | | } |
| | | }; |
| | | // 延迟 5 秒执行 |
| | |
| | | @Override |
| | | public void run() { |
| | | viewBinding.messageContentSrl.endRefreshing(); |
| | | loadNextPageMessageList(1, true, mDeviceTypeFilterKye, mDeviceTypeFilterValue, mTypeFilterKye, mTypeFilterValue, mTimeTypeFilterKye, mTimeTypeFilterValue); |
| | | loadNextPageMessageList(1, false, mDeviceTypeFilterKye, mDeviceTypeFilterValue, mTypeFilterKye, mTypeFilterValue, mTimeTypeFilterKye, mTimeTypeFilterValue); |
| | | } |
| | | }; |
| | | // 延迟 5 秒执行 |
| | |
| | | @Override |
| | | public void run() { |
| | | viewBinding.fragmentHouseSrl.endRefreshing(); |
| | | downReadData(true); |
| | | downReadData(false); |
| | | } |
| | | }; |
| | | // 延迟 5 秒执行 |
| | |
| | | public void run() { |
| | | viewBinding.fragmentHouseSrl.endRefreshing(); |
| | | HdlResidenceLogic.getInstance().clearHouseList(); |
| | | downReadData(true); |
| | | downReadData(false); |
| | | } |
| | | }; |
| | | // 延迟 5 秒执行 |
| | |
| | | @Override |
| | | public void run() { |
| | | viewBinding.listSrl.endRefreshing(); |
| | | loadNextPageDeviceList(true, 1, true); |
| | | loadNextPageDeviceList(false, 1, true); |
| | | } |
| | | }; |
| | | // 延迟 5 秒执行 |
| | |
| | | // 执行任务(如更新UI、跳转等) |
| | | viewBinding.fragmentHouseSrl.endRefreshing(); |
| | | //加载最新数据完成 |
| | | loadNextPageHouseList(true, key, value, installedCapacityMinValue, installedCapacityMaxValue, screeningConditionStatus, powerStationStatusValue, 1, true); |
| | | loadNextPageHouseList(false, key, value, installedCapacityMinValue, installedCapacityMaxValue, screeningConditionStatus, powerStationStatusValue, 1, true); |
| | | getStatusOverview(); |
| | | } |
| | | }.execute(); |
| | |
| | | @Override |
| | | protected void onPostExecute(Void aVoid) { |
| | | viewBinding.fragmentDeviceSrl.endRefreshing(); |
| | | loadNextPageDeviceList(true, 1, true); |
| | | loadNextPageDeviceList(false, 1, true); |
| | | } |
| | | }.execute(); |
| | | } |
| | |
| | | @Override |
| | | public void run() { |
| | | viewBinding.listSrl.endRefreshing(); |
| | | loadNextPageHouseList(true, 1, true); |
| | | loadNextPageHouseList(false, 1, true); |
| | | } |
| | | }; |
| | | // 延迟 5 秒执行 |
| | |
| | | // intent.setPackage("com.hdl.photovoltaic");
|
| | | // intent.setAction("UniappService.ACTION");
|
| | | // context.bindService(intent, stringservice, Context.BIND_AUTO_CREATE);
|
| | |
|
| | | return splashView;
|
| | | }
|
| | |
|
| | | /**
|
| | | * 关闭当前应用进程
|
| | | *
|
| | | * @param context
|
| | | */
|
| | | public void killProcessByPackName(Context context) {
|
| | | if (context == null) {
|
| | | return;
|
| | | }
|
| | | final ActivityManager am = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);
|
| | | List<ActivityManager.RunningAppProcessInfo> procList = am.getRunningAppProcesses();
|
| | | for (ActivityManager.RunningAppProcessInfo proc : procList) {
|
| | | if (proc.processName != null && proc.processName.equals(context.getPackageName())) {
|
| | | android.os.Process.killProcess(proc.pid);
|
| | | break;
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | static ServiceConnection stringservice = new ServiceConnection() {
|
| | | private WeakReference<Context> contextWeakReference;
|
| | |
| | | <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| | | xmlns:app="http://schemas.android.com/apk/res-auto" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="@dimen/dp_127"> |
| | | android:layout_height="@dimen/dp_110"> |
| | | |
| | | <!-- <ImageView--> |
| | | <!-- android:id="@+id/message_search_iv"--> |