Browse Source

323232

味魔方Android
fyf 1 year ago
parent
commit
91b9013442
2 changed files with 20 additions and 22 deletions
  1. +11
    -13
      app/src/main/java/com/bonait/bnframework/modules/home/fragment/MakeGoodFragment.java
  2. +9
    -9
      app/src/main/res/layout/item/layout/item_right_lc.xml

+ 11
- 13
app/src/main/java/com/bonait/bnframework/modules/home/fragment/MakeGoodFragment.java View File

@@ -426,23 +426,21 @@ public class MakeGoodFragment extends BaseFragment {
* 实时显示线程 * 实时显示线程
*/ */
public void Run() { public void Run() {

ThreadManager.Get().StartLong("刷新显示主页面", true, new IThread() {
new Thread(new Runnable() {
@Override @Override
public void Run() throws InterruptedException {
try {
mHandler.sendEmptyMessage(0);
} catch (Exception ex) {
ToastUtils.error("异常信息:" + ex.getMessage());
public void run() {
while (true)
{
try {
mHandler.sendEmptyMessage(0);
Thread.sleep(200);
} catch (Exception ex) {
ToastUtils.error("异常信息:" + ex.getMessage());
}
} }
Thread.sleep(200);
} }
}).start();


@Override
public void RunComplete() throws InterruptedException {

}
});
} }
@Override @Override
public void onDestroy() { public void onDestroy() {


+ 9
- 9
app/src/main/res/layout/item/layout/item_right_lc.xml View File

@@ -3,14 +3,14 @@
android:orientation="vertical" android:orientation="vertical"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent">
<ScrollView
android:layout_height="wrap_content">
<!-- <ScrollView-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="match_parent">-->
<!-- -->
<!-- </ScrollView>-->
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recycler_view"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recycler_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</ScrollView>

android:layout_height="wrap_content"/>
</LinearLayout> </LinearLayout>

Loading…
Cancel
Save