Bladeren bron

323232

味魔方Android
fyf 1 jaar geleden
bovenliggende
commit
91b9013442
2 gewijzigde bestanden met toevoegingen van 20 en 22 verwijderingen
  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 Bestand weergeven

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

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

Laden…
Annuleren
Opslaan