摘要: 这里写了一个小的试验,记录一下。 实现点绿色按钮加一,点红色按钮减一的功能。 activity_main.xml中作了修改 <?xml version="1.0" encoding="utf-8"?> <layout xmlns:android="http://schemas.android.com 阅读全文
posted @ 2020-03-02 22:07 ziyuliu 阅读(398) 评论(0) 推荐(0) 编辑
摘要: 转https://www.jianshu.com/p/f2a5a012ee4d 阅读全文
posted @ 2020-03-02 11:33 ziyuliu 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 方法一:在AndroidManifest.xml中配置 假设不想让软件在横竖屏之间切换,最简单的办法就是在项目的AndroidManifest.xml中找到你所指定的activity中加上android:screenOrientation属性。他有下面几个參数: "unspecified":默认值 阅读全文
posted @ 2020-03-02 11:29 ziyuliu 阅读(3891) 评论(0) 推荐(0) 编辑