
Android开发
文章平均质量分 58
Android Studio开发
徐为波
知识在于运用,知识积累!
展开
-
Android Studio基础项目-两个Activity的Intent跳转与传值,并onActivityResult回传一个/多个值,与回传消息内容。
Android Studio基础项目-两个Activity的Intent跳转与传值,并onActivityResult回传一个值。内容如图:代码接该章节:https://blog.youkuaiyun.com/xwbk12/article/details/116561412?spm=1001.2014.3001.5501第一步:在MainActivty.java第二步:重新方法第三步:打印回传数据值信息MainActivty.java的代码内容:package com.xw原创 2021-05-09 14:37:07 · 1747 阅读 · 3 评论 -
Android Studio基础项目-两个Activity的Intent传值自定义类数据(如数据库数据读取)。
Android Studio基础项目-两个Activity的Intent基本传值/Bundle传值/Intent传值自定义类数据。接本节https://blog.youkuaiyun.com/xwbk12/article/details/116090792?spm=1001.2014.3001.5501步骤一:创建自定义类文件创建自定义类User.class,并把这个类文件放到model下...原创 2021-05-09 10:30:46 · 1175 阅读 · 2 评论 -
Android Studio基础项目-两个Activity的Intent基本传值。配置运行安卓版本,去除深蓝色按钮,全屏展示APP运行。
Android Studio基础-Intent基本传值环境准备,新建空的ACTIVTY。配置运行安卓版本,去除深颜色按钮,全屏展示APP运行。Theme.MaterialComponents.DayNight.Bridge全屏 android:theme="@style/Theme.Design.NoActionBar"第一步:设置两个布局XML进行跳转<?xml version="1.0" encoding="utf-8"?><LinearLa原创 2021-04-24 14:49:08 · 728 阅读 · 2 评论 -
更改默认安卓按钮、文本框等的深蓝色背景
更改默认安卓按钮、文本框等的深蓝色背景(https://blog.youkuaiyun.com/try17875864815/article/details/110409078)转载 2021-04-24 11:15:29 · 347 阅读 · 1 评论 -
Android Studio基础项目-布局XML设置的实战-全屏显示登录界面,去除按钮深颜色
Android Studio基础-布局XML设置的实战-登录界面原创 2021-04-24 10:55:11 · 513 阅读 · 2 评论 -
Android Studio基础-Activity生命周期与多个Activity跳转
Android Studio基础-Activity原创 2021-04-21 19:49:24 · 1597 阅读 · 1 评论 -
Android Studio基础RecyclerView上下滑动鼠标的使用,兼容/版本报错处理
Android Studio基础RecyclerView为什么要使用RecyclerView,因为ListView当有大量图片、声音、视频等资料使用时,会出现非常非常高的延时,影响使用。因此RecyclerView这类第三方的控件就出现的。需要到Gradle配置文件导入V7模块。...原创 2021-04-18 12:58:37 · 962 阅读 · 2 评论 -
Android基础项目 Xposed HOOK MAC地址与详细的hook入门
Android Xposed HOOK MAC地址目标是:自编写一个APP验证是否HOOK到本安卓机系统层的MAC地址。环境设备:已经ROOT的Android 5系统,Xposed2.7.apk(https://links.jianshu.com/go?to=https%3A%2F%2Frepo.xposed.info%2Fmodule%2Fde.robv.android.xposed.installer),Android Studio...原创 2021-04-01 09:42:56 · 1007 阅读 · 0 评论 -
Android Studio基础ListView之BaseAdapter
Android Studio基础ListView之BaseAdapter完成的样式的如下:第一步:布局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原创 2021-03-30 22:24:54 · 1649 阅读 · 0 评论 -
Android Studio基础ListView之ArrayAdapter
Android Studio基础ListView之ArrayAdapter第一步:在布局xml中设置ListView<?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:to原创 2021-03-30 21:19:49 · 1056 阅读 · 0 评论 -
Android Studio基础ListView之SimpleAdapter
Android Studio基础ListView之SimpleAdapterListView、数据源(数组或集合)、单元格布局、数据适配器的关系图,当中数字1、2、3、4、5(代码调用)为5的步骤实现。第一步:在布局xml中设置ListView...原创 2021-03-25 10:08:53 · 1329 阅读 · 0 评论 -
Android Studio基础使用自定义对话框
Android Studio基础使用自定义对话框兼容低版本的APP运行第一步:新建新的空白activity,布局XML设置如下该APP的启动界面activity_main.xml<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.and原创 2021-03-24 22:04:50 · 2361 阅读 · 2 评论 -
Android Studio基础使用多选对话框AlertDialog
Android Studio基础使用多选对话框AlertDialog第一步:在布局中定义唯一的ID值<?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_paren原创 2021-03-22 16:41:13 · 4101 阅读 · 1 评论 -
Android Studio基础使用单选对话框AlertDialog
Android Studio基础使用单选对话框AlertDialog(继承上一节的代码)第一步:在布局xml定义ID值<?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="ma原创 2021-03-22 15:22:50 · 4188 阅读 · 0 评论 -
Android Studio基础对话框AlertDialog最基本的使用
Android Studio基础对话框AlertDialog使用原创 2021-03-22 11:08:43 · 1719 阅读 · 1 评论 -
新建layou.xml与LayoutActivity.java,并使用新的LayoutActivity.java启动APP
Android Studio基础AlertDialog使用eeee原创 2021-03-22 10:13:32 · 440 阅读 · 1 评论 -
Android Studio基础Toast信息
Android Studio基础Toast信息Toash弹出信息是给用户看的,Logcat信息是开发相关人员查看。原创 2021-03-21 21:28:39 · 557 阅读 · 1 评论 -
Android Studio基础复选框CheckBox
Android Studio基础复选框CheckBox原创 2021-03-21 19:46:02 · 7343 阅读 · 1 评论 -
Android Studio基础单选按钮RadioButton
Android Studio基础单选按钮RadioButton1、单选按钮RadioButton:多个只能选择一个,必须结合RadioGroup控件使用,才能实现单选的特性。第一种情况:没有结合RadioGroup控件使用,默认平行布局第二种情况:结合RadioGroup控件平行布局第三种情况:结合RadioGroup控件垂直布局<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:andro原创 2021-03-21 18:51:41 · 10638 阅读 · 0 评论 -
Android Studio基础ImageView使用
Android Studio基础ImageView使用知识点1:<ImageView android:layout_width="match_parent" android:layout_height="wrap_content" />在ImageView中“match_parent”是占满宽度/高度,“wrap_content”是自适应宽度/高度。知识点2:图片属性:background(宽度或高可以被单独拉伸)、src(宽度或高必须同时缩放.原创 2021-03-21 12:13:36 · 4417 阅读 · 0 评论 -
Android Studio基础输入文本框EditText
Android Studio基础输入文本框EditText1、提示文本框、输入文本框,在布局xml编写<EditText android:layout_width="wrap_content" android:layout_height="wrap_content" android:hint="提示内容" android:textColorHint="@android:color/holo_red_dark" android:text="输入的内容原创 2021-03-21 10:21:41 · 9136 阅读 · 1 评论 -
Android Studio 基础按钮使用
Android Studio 基础按钮使用按钮使用线性的垂直布局1、简单按钮。第一步: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:layout_wid原创 2021-03-20 19:26:31 · 7101 阅读 · 2 评论 -
android studio 基础TextView使用
android studio 基础TextView使用1、直接在代码中写2、在项目的values目录下strings中写入代码中调用<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="right" android:textSize="30sp" android:text="原创 2021-03-20 12:30:39 · 4166 阅读 · 0 评论 -
android studio 多种布局设置
1、颜色使用方式:1)自己直接写颜色值(16进制)。2)使用项目自带的代码调用方式<?xml version="1.0" encoding="utf-8"?><FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://sc原创 2021-03-20 12:01:57 · 2567 阅读 · 1 评论 -
android studio 项目布局
1、约束布局(android studio新建项目默认进入)原创 2021-03-20 08:59:07 · 2374 阅读 · 6 评论