
安卓移动互联网
文章平均质量分 55
Scean周
这个作者很懒,什么都没留下…
展开
-
Android 搜索内容保存历史记录
Android 搜索内容保存历史记录一、界面布局主界面布局 activity_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-auto" xmlns:tools="http://schem原创 2021-05-17 14:25:27 · 853 阅读 · 0 评论 -
Android 从Activity中往ViewPager里的fragment传递数据
Android 从Activity中往ViewPager里的fragment传递数据1.界面展示2.界面布局activity_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-auto"原创 2021-05-06 11:52:34 · 1228 阅读 · 0 评论 -
Android 欢迎页实现
Android 欢迎页实现1.界面展示2.界面布局<?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"原创 2021-05-06 11:14:14 · 166 阅读 · 1 评论 -
Android 列表布局切换网格布局
Android 列表布局切换网格布局1.界面布局原创 2021-05-06 10:19:56 · 630 阅读 · 0 评论 -
Android RecycleView搜索列表内容(OkHttp网络请求)
Android RecycleView搜索列表内容(OkHttp网络请求)1.添加网络权限<uses-permission android:name="android.permission.INTERNET"/>2.导入第三方库 implementation 'com.android.support:design:28.0.0' implementation 'com.android.support:support-v4:28.0.0' implementatio原创 2021-05-05 22:38:00 · 887 阅读 · 6 评论 -
Android 使用RecycleView列表实现加载更多
Android 使用RecycleView列表实现加载更多1.界面布局<?xml version="1.0" encoding="utf-8"?><FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" andr原创 2021-05-05 21:31:49 · 1401 阅读 · 2 评论 -
Android 界面左右滑动切换
Android 界面左右滑动切换1.界面布局<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientat原创 2021-05-05 11:56:06 · 8382 阅读 · 4 评论 -
Android 头像上传至服务器 (OkHttpClient请求)
Android 头像上传至服务器 (OkHttpClient请求)1.导入本章内容要使用的第三方库 implementation 'com.squareup.okhttp3:okhttp:3.12.1' debugImplementation 'com.squareup.okhttp3:logging-interceptor:3.12.1' implementation 'com.google.code.gson:gson:2.8.5' implementation 'com.g原创 2021-05-04 20:54:01 · 1744 阅读 · 6 评论 -
Android 使用腾讯sdk播放视频
Android 使用腾讯sdk播放视频1.下载官方sdk[https://x5.tencent.com/tbs/sdk.html]点击链接下载拿到需要使用到的文件将文件放在指定的位置如何在build.gradle文件输入下面的代码导入jar包implementation fileTree(dir: 'libs', include: ['*.jar'])导包成功,该jar文件出现一个三角形2.创建MyApplication.class文件输入以下语法package com原创 2021-04-25 20:50:31 · 6168 阅读 · 0 评论 -
Android 调用手机摄像头拍照并显示在当前界面
Android 调用手机摄像头拍照并显示在当前界面第一步:安卓界面布局<?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.co原创 2020-11-18 13:59:01 · 2054 阅读 · 1 评论 -
Android 五种常用的对话框
Android 五种常用的对话框第一步:安卓界面布局添加5个按钮,点击可显示不同的对话框效果布局代码:<?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://原创 2020-11-18 10:14:55 · 1322 阅读 · 0 评论 -
Android 常用的两种(ProgressBar)和(SeekBar)的使用
Android 常用的两种(ProgressBar)和(SeekBar)的使用第一步:安卓界面布局分别添加2个ProgressBar和1个SeekBar控件,滑动SeekBar控件,第二个ProgressBar控件也跟着滑动,添加一个文本框显示当前滑动的进度。布局代码如下<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/andr原创 2020-11-18 09:42:25 · 1095 阅读 · 0 评论 -
Android Studio怎么打包成APK并在真机调试
Android Studio怎么打包成APK首先,我们在Android studio上方的工具栏找到build,点击查看bulid工具。如下第二:在bulid工具栏的下拉栏,我们可以找到Generate Signed Bundle or APK,点击进入该设置。第三:选择APK之后按下Next。因为我们是没有密钥的(身份证)所以我们要去生成一个密钥,所以这里我们选择 Create new…点击文件夹图标,进行下面页面。在这里选择你自己存放的位置,创建一个空文件夹出现这种问题,原创 2020-10-16 18:07:36 · 4923 阅读 · 3 评论 -
Android 使用RecycleView实现图片的水平滑动
Android 使用RecycleView实现图片的水平滑动第一步:首先在布局中添加一个RecycleView控件,在添加之前需要找到build.gradle文件进行第三方插件的下载,代码如下: implementation 'com.android.support:design:28.0.0' implementation 'com.android.support:support-v4:28.0.0' implementation 'com.android.support:app原创 2020-10-12 22:11:39 · 1262 阅读 · 1 评论 -
使用Android Studio上传自己的项目至GitHub仓库中
使用Android Studio上传自己的项目至GitHub仓库中第一步:下载Git软件点击下载并安装在电脑上,这一步很简单,不过多介绍。第二步:打开Android Studio找到 File -> Settings -> Git安装好Git软件后,找到文件夹下的git.ext这个程序,点击Test,跳出提示版本的提示框,证明测试成功。第二步:打开Android Studio找到 File -> Settings -> GitHub在操作这一步之前需要先去github原创 2020-10-07 11:01:07 · 1734 阅读 · 3 评论 -
Android 制作一款短视频app软件可在线观看(视频实时更新)
Android 制作一款短视频app软件可在线观看(视频实时更新)第一步:完成界面的设计界面布局采用LinearLayout,添加TextView控件显示标题,添加4个Button按钮可切换不同的短视频内容,在添加一个RecyclerView控件来显示内容。添加RecyclerView控件时需要下载第三方库,代码如下: //noinspection GradleCompatible implementation 'com.android.support:design:28.0.0'原创 2020-10-06 21:34:27 · 2654 阅读 · 0 评论 -
Android 电影排行榜app制作(可加入观看清单保存)
Android 电影排行榜app制作(可加入观看清单保存)第一步:在xml文件上进行主界面的布局采用LinearLayout布局,添加ImageView控件(电影小图标)实现跳转到观看清单的页面,在添加ImageView控件(向下和向下的图标)来实现列表的倒序和正序,之后添加RecycleView控件使内容在列表上显示,并使用SwipeRefreshLayout控件,下拉列表实现数据的更新,在添加按钮来实现喜欢的电影点击加入我们的观看清单。注:在使用RecycleView时需要下载第三方库,找到bui原创 2020-10-06 17:06:05 · 3995 阅读 · 3 评论 -
Android 车辆定制软件(车辆定制完成后将信息传至服务器)
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:layout_width="match_pare原创 2020-10-10 16:58:46 · 249 阅读 · 0 评论 -
Android 车辆出售软件(数据实时更新)
Android 车辆出售软件(数据实时更新)第一步:在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-auto" xmlns:tools="http://schemas.an原创 2020-10-09 10:38:54 · 388 阅读 · 0 评论 -
Android 对话框、进度条、定时器
Android 对话框、进度条、定时器第一步:在xml文件上界面布局采用LinearLayout布局,并添加ImageView控件显示一张图片,当进度条走到0%时图片出现感叹号。点击图片弹出对话框,点击修复按钮。使进度条走到100%,感叹号消失。代码如下:<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"原创 2020-10-04 22:19:50 · 564 阅读 · 0 评论 -
Android 3种数据保存(SharedPreferences存储 内部文件存储 数据库存储)
Android 3种数据保存(SharedPreferences存储 内部文件存储 数据库存储)第一步:在xml文件上界面布局这边采用LinearLayour布局,添加3个按钮来实现界面的跳转,代码如下:<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schema原创 2020-10-04 20:24:53 · 2650 阅读 · 4 评论 -
Android 数据传递(Intent、Bundle、Serializable、Parcelable等)
Android 数据的传递(Intent、Bundle、Serializable、Parcelable等)第一步:在xml文件上界面布局这边采用LinearLayour布局,添加6个按钮来实现界面的跳转和相关功能的实现,代码如下:<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="ht原创 2020-10-04 13:13:20 · 1161 阅读 · 0 评论 -
Android 使用Webview控件来实现【数据图表(HTML+JS)】的显示
Android 使用Webview控件来实现【数据图表(HTML+JS)】的显示首先在xml文件上界面布局这边采用LinearLayour布局,首先添加一个webview控件来显示不同的数据图表,第二添加3个button控件来切换不同的数据图表代码如下:<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"原创 2020-10-04 09:59:18 · 683 阅读 · 0 评论 -
Android 微博实时热点获取(GET)网络请求
Android 微博实时热点获取(GET)网络请求首先在xml文件上界面布局这边采用LinearLayour布局,首先添加TextView控件来显示标题,第二采用RecyclerView列表控件来实现内容的显示,第三添加SwipeRefreshLayout控件实现内容的刷新。在添加RecyclerView列表控件时,需要在Build.gradle文件中下载 implementation 'com.android.support:design:28.0.0' implementation原创 2020-10-03 22:45:50 · 573 阅读 · 0 评论 -
Android 输入手机号码(GET网络请求)查询手机号码归属地
Android 输入手机号码(GET网络请求)查询手机号码归属地首先在xml文件上界面布局采用LinearLayout来布局界面,并添加一个按钮点击来进行获取信息,在添加一个EditText来输入我们要进行查询的手机号码,最后添加一个TextView控件来显示手机归属地信息<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/andr原创 2020-10-03 11:16:09 · 901 阅读 · 0 评论 -
Android 输入英语单词实现(post网络请求)在线翻译,支持多种语言翻译
输入英语单词,实现post网络请求在线翻译首先在xml文件上界面布局采用LinearLayout来布局界面,并添加一个按钮来进行网络请求翻译,在添加一个EditText来输入我们要进行翻译的英语单词,最后添加一个TextView控件来显示翻译结果<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns原创 2020-09-30 15:16:47 · 1268 阅读 · 2 评论 -
Android 点击按钮网络请求(post) 加载图片并显示在界面上
Android 点击按钮网络请求(post) 加载图片并显示在界面上首先在xml文件上界面布采用LinearLayout来布局界面,并添加一个按钮来进行网络请求,在添加一个ImageView来显示我们网络请求使获取的图片。下面为界面布局代码...原创 2020-09-25 18:39:35 · 2781 阅读 · 0 评论