android
sophieLV1993
java 前端 Giser
展开
-
Android Studio创建安卓项目
使用AndroidStudio创建安卓项目 1.打开as,选择创建新项目 2.创建项目 注意需要在工作空间将项目名称补全,否则会创建在上一级目录中,点击finish即可原创 2021-01-24 09:47:51 · 277 阅读 · 0 评论 -
Android-Button控件监听器三种方式实现点击事件
通过三中方式构建监听器,实现button控件点击事件。 一、 成员内部类方式 1.activity_btn1.xml页面布局文件如下 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="m原创 2020-10-06 20:33:51 · 875 阅读 · 0 评论 -
Android-点击Button获取表单数据(方式一:onClick属性绑定)
Android中点击Button控件获取表单数据样例 xml表单页面布局文件 activity_login.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_pa原创 2020-10-05 22:39:44 · 679 阅读 · 0 评论 -
Android-通过TextView控件实现跑马灯效果
TextView实现跑马灯效果 xml文件中声明属性,使TextView获取焦点 核心属性:singleLine,ellipsize,focusable,focusableInTouchMode <TextView android:id="@+id/text_marquee" android:layout_width="wrap_content" android:layout_height="wrap_content"原创 2020-10-05 20:40:25 · 151 阅读 · 0 评论