摘要: 报错信息:The location function has been stopped because you do not agree with the privacy compliance policy. Please recheck the setAgreePrivacy interface 阅读全文
posted @ 2022-03-22 10:10 碎月 阅读(2425) 评论(1) 推荐(1) 编辑
摘要: Spinner左边有边距是因为item布局里自带了边距,所以只需要在getView里获取到item布局然后移除掉边距即可,字体大小也是如此。 @Override public View getView(int position, View convertView, ViewGroup parent) 阅读全文
posted @ 2022-03-19 17:42 碎月 阅读(330) 评论(0) 推荐(0) 编辑
摘要: 需要继承AppCompatActivity 在Toolbar增加属性 app:popupTheme="@style/Theme.AppCompat.Light" app:theme="@style/ThemeOverlay.AppCompat.Dark" 效果: 阅读全文
posted @ 2022-03-11 15:39 碎月 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 在项目根目录配置一个.prettierrc文件,属性printWidth为其设置每行最大换行字数。 效果前: 效果后: 阅读全文
posted @ 2022-03-11 15:34 碎月 阅读(3960) 评论(0) 推荐(0) 编辑
摘要: stretchColumns表示拉伸某一列的宽度,用型号*表示拉伸全部。 layout_span表示该控件占多少列,如果不需要自适应宽度而是固定他的宽度,则把宽度设为0dp即可 <TableLayout xmlns:android="http://schemas.android.com/apk/re 阅读全文
posted @ 2022-03-10 18:15 碎月 阅读(103) 评论(0) 推荐(0) 编辑
摘要: TableLayout是Android表格布局,可用于制作表格 TableLayout里面的每一个子View都为单行显示,其中TableRow为其子控件 TableLayout有三个属性: collapseColumns(隐藏某一列,隐藏多列用" , "符号分割,若隐藏所有列则用" * "符号) s 阅读全文
posted @ 2022-03-10 17:56 碎月 阅读(839) 评论(0) 推荐(0) 编辑