Преглед на файлове

323232

味魔方Android
fyf преди 1 година
родител
ревизия
91b9013442
променени са 2 файла, в които са добавени 20 реда и са изтрити 22 реда
  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 Целия файл

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

ThreadManager.Get().StartLong("刷新显示主页面", true, new IThread() {
new Thread(new Runnable() {
@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
public void onDestroy() {


+ 9
- 9
app/src/main/res/layout/item/layout/item_right_lc.xml Целия файл

@@ -3,14 +3,14 @@
android:orientation="vertical"
xmlns:android="http://schemas.android.com/apk/res/android"
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_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>

Зареждане…
Отказ
Запис