摘要:
String value_review = value.replace("\\","");value_review=value_review.substring(value.indexOf("{"), value_review.lastIndexOf("}") + 1);进行转义 参考https:/ 阅读全文
摘要:
ViewGroup.LayoutParams layoutParams = appBarLayout.getLayoutParams();AppBarLayout.Behavior behavior = (AppBarLayout.Behavior) ((CoordinatorLayout.Layo 阅读全文
摘要:
可以改使用监听 popupWindow.setOnDismissListener(new PopupWindow.OnDismissListener() { @Override public void onDismiss() { }}); 阅读全文
摘要:
解决办法: 将版本升级到com.squareup.okhttp3:okhttp:3.9.0可以解决。 如果使用张鸿洋大神的okhttputils 改成这样就行 implementation 'com.zhy:okhttputils:2.6.2'implementation 'com.squareup 阅读全文
摘要:
private class ArticleWebViewClient extends WebViewClient { @Override public void onPageFinished(WebView view, String url) { super.onPageFinished(view, 阅读全文
摘要:
建议使用RecyclerView 阅读全文
摘要:
import android.content.Context;import android.content.res.TypedArray;import android.graphics.Canvas;import android.graphics.Paint;import android.graph 阅读全文
摘要:
public void finishActivity (int requestCode) Since: API Level 1Force finish another activity that you had previously started with startActivityForResu 阅读全文
摘要:
Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag 我在LinkMovementMethod onClick事件中点击跳转新的activity 一直闪 阅读全文
摘要:
//存储public static void saveObjectsToFile(List<? extends Serializable> objects, String filename) throws IOException { File file1 = BaseApplication.getI 阅读全文