- 博客(5)
- 收藏
- 关注
原创 python流程控制
if>>> x = int(input("Please enter an integer:"))Please enter an integer:42>>> if x < 0:... x = 0... print("Negative changed to zero")... elif x == 0:... print('Zero')... elif x == 1:... print('Single')... else
2021-03-23 23:32:50
265
原创 AppBarLayout嵌套CollapsingToolbarLayout实现折叠屏去除阴影
效果图:代码:<?xml version="1.0" encoding="utf-8"?><android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.a
2021-01-22 17:35:54
1345
原创 AndroidStudio 4.1.2禁用Androidx
修改gradle.propertiesandroid.useAndroidX=false# Automatically convert third-party libraries to use AndroidXandroid.enableJetifier=false降低AndroidStudio gradle插件版本dependencies { classpath "com.android.tools.build:gradle:3.1.4" // NOT.
2021-01-22 16:49:22
1444
原创 Android 获取MimeType
public static String getMimeType(Context context, Uri uri, String filePath){ String mediaType = null; try{ MediaMetadataRetriever mmr = new MediaMetadataRetriever(); mmr.setDataSource(filePath); mediaType = mmr.extractMetadata(MediaMetadataR
2020-12-16 14:32:59
546
原创 Python简单介绍
数字除法运算 (/) 返回float类型>>> 8 / 5 1.6>>> 8 // 51>>> 7 / 51.4>>> 7 // 51>>> 8 % 53** 运算符计算乘方>>> 5 ** 225>>> 2 ** 7128=赋值>>> width = 20>>> height = 5 *
2020-12-15 21:10:36
157
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人