夜间模式暗黑模式
字体
阴影
滤镜
圆角
主题色

标签:android

40 篇文章

resId转Uri
Resources resources = context.getResources(); Uri uri = new Uri.Builder() .scheme(ContentResolver.SCHEME_ANDROID_RESOURCE) .authority(resources.getResourcePackageName(resource…
支付宝禁止截屏
Activity.getWindow().addFlags(WindowManager.LayoutParams. FLAG_SECURE);只要把当前Activity设置成安全的就可以禁止截屏录屏操作。
自定义View保持文字居中
此时我是相对于整个View居中所以就谢了getWidth()/2``canvas.drawText("this is a test", getWidth() / 2, baseLineY, textPaint); Y轴居中要给予baseLine,这个baseLine的概念就是字符串字的最底部.如果此值传入getHeight()/2的话那么baseL…
Open jdk && oracle jdk 共存切换
sudo update-alternatives --config java然后提示 There are 2 choices for the alternative java (providing /usr/bin/java). Selection Path Priority Status -----------------------------…
Glide 圆角 & 圆形
和centerCrop() 冲突``` public class GlideRoundTransform extends BitmapTransformation { private static float radius = 0f; public GlideRoundTransform(Context context) { this(contex…
乐视手机不打log
后来发现,只能打Log.i()和Log.e()开启的方法是*#*#76937#*#* 华为是*#*#2846579#*#* vivo*#*#112#*#*
常用端口
代理服务器常用以下端口: 1. HTTP协议代理服务器常用端口号:80/8080/3128/8081/9080 2. SOCKS代理协议服务器常用端口号:1080 3. FTP(文件传输)协议代理服务器常用端口号:21 4. Telnet(远程登录)协议代理服务器常用端口:23 HTTP服务器,默认的端口号为80/tcp(木马Executor开放此…