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