Pārlūkot izejas kodu

323232

味魔方Android
fyf pirms 1 gada
vecāks
revīzija
91b9013442
2 mainītis faili ar 20 papildinājumiem un 22 dzēšanām
  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 Parādīt failu

@@ -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 Parādīt failu

@@ -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>

Notiek ielāde…
Atcelt
Saglabāt