会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
only_books
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
下一页
2024年4月28日
在fragment中使用ViewPager切换无法显示fragment
摘要: 解决办法: 不要使用getSupportFragmentManager() 如果是在Activity中嵌套Fragment上面的这个写法是正确的,但是如果是在Fragment中嵌套Fragment的话,如果按照上面这样写的话,在切换Fragment的时候Fragment不显示。 把适配器改为 Fra
阅读全文
posted @ 2024-04-28 09:26 only_books
阅读(81)
评论(0)
推荐(0)
2024年4月25日
android NestedScrollView和ListView冲突问题
摘要: listview显示不全 需要重写listview public class MyListView extends ListView { public MyListView(Context context, AttributeSet attrs) { super(context, attrs); }
阅读全文
posted @ 2024-04-25 09:05 only_books
阅读(50)
评论(0)
推荐(0)
2023年7月24日
Preprocessor dependency "sass" not found. Did you install it?
摘要: npm install sass
阅读全文
posted @ 2023-07-24 16:16 only_books
阅读(232)
评论(0)
推荐(0)
2023年7月22日
vue data() should return an object.
摘要: 小白,return后面的{ 不能换行 return{ msg:"111" } 误写为 return { msg:"111" }
阅读全文
posted @ 2023-07-22 23:05 only_books
阅读(22)
评论(0)
推荐(0)
2023年2月8日
友盟一键登录上方显示view
摘要: 点击自定义控件弹窗addAuthRegisterXmlConfig方法里面onclick回调 移除view ((ViewGroup) v.getRootView()).removeView();注意移除的是自定义layout里面的根目录(如RelativeLayout)
阅读全文
posted @ 2023-02-08 11:32 only_books
阅读(142)
评论(0)
推荐(0)
2023年1月31日
dialog 没有居中或者显示不全(小米手机)
摘要: 解决办法 Window window =dialog.getWindow();// window.setGravity(Gravity.CENTER); WindowManager.LayoutParams layoutParams = window.getAttributes(); layoutP
阅读全文
posted @ 2023-01-31 13:16 only_books
阅读(450)
评论(0)
推荐(0)
2022年10月27日
傻瓜式android studio升级方式
摘要: 使用 ToolBox 下载地址https://www.jetbrains.com/toolbox-app/ 参考:https://blog.csdn.net/qq_29752857/article/details/107052986
阅读全文
posted @ 2022-10-27 09:16 only_books
阅读(61)
评论(0)
推荐(0)
2022年8月24日
Android获取控件的高度一直为0,以及获取控件是否可见一直不正确
摘要: 原因是在onCreate或其他方法中直接获取属性是无效的。 重载activity的onWindowFocusChanged方法,可在其中获取控件的宽和高 参考https://blog.51cto.com/u_15242344/2842086
阅读全文
posted @ 2022-08-24 11:47 only_books
阅读(196)
评论(0)
推荐(0)
2022年8月9日
This problem might be caused by incorrect configuration of the daemon.
摘要: FAILURE: Build failed with an exception. * What went wrong:Unable to start the daemon process.This problem might be caused by incorrect configuration
阅读全文
posted @ 2022-08-09 10:40 only_books
阅读(1324)
评论(0)
推荐(0)
2022年2月23日
JSONOBJECT 对象为NULL
摘要: 用jsonObject.isNull判断 参考https://www.cnblogs.com/guangchuantang/p/12326728.html
阅读全文
posted @ 2022-02-23 16:04 only_books
阅读(223)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
下一页
公告