- 博客(4)
- 收藏
- 关注
原创 Android 使用广播发送消息
1.activity_main.xml<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" ...
2020-12-16 16:02:35 729
原创 Android MPAndroidChart柱形图2
1.先导入依赖allprojects { repositories { google() jcenter() maven { url "https://jitpack.io" } }}dependencies { ...... implementation 'com.github.PhilJay:MPAndroidChart:v3.0.2'}2.布局文件<?xml version="1.0..
2020-12-04 17:22:33 428
原创 Android 快速实现夜间模式
1.让应用继承DayNight主题<resources> <style name="AppTheme" parent="Theme.AppCompat.DayNight.DarkActionBar"> <item name="colorPrimary">@color/colorPrimary</item> <item name="colorPrimaryDark">@color/colorPrima..
2020-12-02 14:15:59 668 1
原创 Android 扩大按钮的点击范围
public static void setTouchDelegate(final View view, final int expandTouchWidth) { final View parentView = (View) view.getParent(); parentView.post(new Runnable() { @Override public void run() { ...
2020-12-02 11:32:19 1080
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人