摘要: Tint:将非透明的像素点渲染成指定的颜色 <ImageView android:layout_marginTop="10dp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src= 阅读全文
posted @ 2023-08-31 15:50 remix_alone 阅读(40) 评论(0) 推荐(0)
摘要: 效果图: 效果图 布局文件: 添加 android:fitsSystemWindows="true" 父布局文件添加属性 注册清单: 整个布局都顶上去 AndroidManifest.xml 添加 android:windowSoftInputMode="adjustResize|stateHidd 阅读全文
posted @ 2023-08-31 15:34 remix_alone 阅读(28) 评论(0) 推荐(0)
摘要: 垂直:ScrollView 横向:HorizontalScrollView ScrollView外层搭配RelativeLayout更灵活: 让ScrollView能Height=“match_parent”同时,above底部布局从而不会覆盖底部 <?xml version="1.0" encod 阅读全文
posted @ 2023-08-31 15:31 remix_alone 阅读(31) 评论(0) 推荐(0)
摘要: 自定义圆形图片 package com.example.mybabytracker.util; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapShader; 阅读全文
posted @ 2023-08-31 15:23 remix_alone 阅读(9) 评论(0) 推荐(0)
摘要: SwitchMaterial:开关选择器布局: <com.google.android.material.switchmaterial.SwitchMaterial android:id="@+id/switch_time" android:layout_width="wrap_content" a 阅读全文
posted @ 2023-08-31 15:21 remix_alone 阅读(274) 评论(0) 推荐(0)
摘要: LinearProgressIndicator: 条状加载进度条 <!-- Linear progress indicator 不确定指示器:android:indeterminate="true"进度条背景色:app:trackColor进度条颜色:app:indicatorColor --> < 阅读全文
posted @ 2023-08-31 14:58 remix_alone 阅读(118) 评论(0) 推荐(0)
摘要: 地址: implementation 'com.yanzhenjie.recyclerview:x:1.3.2' 使用: 1.SwipeRecyclerView继承于RecyclerView,设置Adapter和基础操作与RecyclerView一致 2. 侧滑菜单 分为:大菜单,左右区域菜单,小菜 阅读全文
posted @ 2023-08-31 14:24 remix_alone 阅读(541) 评论(0) 推荐(0)