我在定製的web視圖增加了進度,但是當我滾動視圖,它導致該錯誤
這是我的onScrollChanged方法:
@Override
protected void onScrollChanged(int left, int top, int oldLeft, int oldTop) {
LayoutParams layoutParams = (LayoutParams) progressbar.getLayoutParams();
layoutParams.leftMargin = left;
layoutParams.topMargin = top;
progressbar.setLayoutParams(layoutParams);
super.onScrollChanged(left, top, oldLeft, oldTop);
}
這是我進口:
import com.fccs.library.R;
import com.fccs.library.callback.SingleButtonCallBack;
import com.fccs.library.notice.DialogUtils;
import com.tencent.smtt.export.external.interfaces.JsResult;
import com.tencent.smtt.sdk.WebSettings;
import com.tencent.smtt.sdk.WebView;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.util.AttributeSet;
import android.view.KeyEvent;
import android.view.View;
import android.widget.ProgressBar;
發佈您的進口 – johnrao07
好的,非常感謝 – Ethen