android studio
家琪v
这个作者很懒,什么都没留下…
展开
-
Android 移动版问卷调查
用android studio 实现上图的内容,首先是设计界面,线性布局用LinearLayout,布局中有android:orientation属性控制排列方向,horizontal为水平,vertical为垂直方向;第一题为单选题,用RadioGroup和RadioButton结合使用,第二题为多选题,使用CheckBox按钮;两个普通Button按钮;三个文本框,第一第二个显示问题,第三...原创 2019-03-20 19:59:44 · 2384 阅读 · 1 评论 -
Android 简单计算器实现
初学android,仅能实现一些较为简单的功能,下面代码能实现加减乘除和清除功能,但是不能实现多位数的计算。 界面布置activity_main.xml: <?xml version="1.0" encoding="utf-8"?> <GridLayout xmlns:android="http://schemas.android.com/apk/res/andr...原创 2019-03-17 20:22:34 · 340 阅读 · 0 评论 -
Android 消息对话框的应用
一种是发出提示信息的普通对话框,另一种是用用户登录对话框 设计用户布局 <?xml version="1.0" encoding="utf-8" ?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent...原创 2019-03-31 12:02:57 · 519 阅读 · 0 评论 -
Android 进度,日期,时间对话框实现
界面设计xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:la...原创 2019-03-31 12:15:16 · 315 阅读 · 0 评论 -
Android 手写字体识别
首先在res文件夹下新建一个raw文件,将字体库gestures复制到项目res/raw下 activity_main.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:...原创 2019-04-08 01:05:47 · 2743 阅读 · 2 评论 -
Android 照片涂鸦4-5
设计布局文件 activiy_main.xml <?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-au...原创 2019-04-09 18:45:47 · 294 阅读 · 0 评论