- 博客(8)
- 问答 (1)
- 收藏
- 关注
原创 Service的使用
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="m.
2021-08-04 21:50:12
151
1
原创 网络加载页面使用
首先添加网络权限 <uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> 其中还得添加 <application android:usesCleartextTraffic="true" </application&g
2021-07-31 21:37:12
147
原创 霓虹灯的效果
<?xml version="1.0" encoding="utf-8"?> <FrameLayout android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent" xmlns:android="http://schemas.android.com/apk/res/android"> <!-- 依次.
2021-07-30 15:51:49
152
原创 跟随手指的小球
package com.example.shangqiuju.myapplication; import android.content.Context; import android.graphics.Canvas; import android.graphics.Paint; import android.view.View; /** * 自定义组件 * Created by shangqiuju on 2021/7/30. */ public class DrawView extends.
2021-07-30 14:45:20
162
原创 Glide
首先在bulid.gradle添加 implementation 'com.github.bumptech.glide:glide:4.8.0' 然后gradle.properties添加 android.useAndroidX=true android.enableJetifier=true 布局 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:app="http://schemas.and..
2021-07-28 22:51:24
1301
原创 ListView两种适配器的使用,ArrayAdapter与SimpleAdapter
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="m.
2021-07-18 23:41:47
241
原创 逐帧动画的使用
1.在drawable中创建一个loading.xml <?xml version="1.0" encoding="utf-8"?> <animation-list android:oneshot="true" xmlns:android="http://schemas.android.com/apk/res/android"> <item android:drawable="@drawable/one" android:duration="100"/
2021-07-14 16:41:41
218
空空如也
选餐页面后五点该怎么去实现
2021-05-18
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅