安卓
写代码好难
这个作者很懒,什么都没留下…
展开
-
安卓第三周实验03
通过ListView与适配器ArrayAdapter的搭配使用,实现以下界面的显示效果(ListView每个子项分别包括地球、金木水火土星的图片和名称以及介绍,图片和介绍请自行查找),另外实现ListView子项的点击事件,点了之后,会出现消息提示框,提示该行星的名称。 运行截图: 首先是布局文件:activity_main.xml <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.Cons.原创 2021-10-20 15:30:06 · 989 阅读 · 0 评论 -
安卓__利用布局管理器实现计算器的样式显示
<?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" android:layout_width="ma原创 2021-09-22 15:19:38 · 208 阅读 · 0 评论