全文搜索
标题搜索
全部时间
1小时内
1天内
1周内
1个月内
默认排序
按时间排序
为您找到相关结果2,285,003个

Android 五大布局方式详解_Android_脚本之家

android:orientation:可以设置布局的方向 android:gravity:用来控制组件的对齐方式 layout_weight:控制各个组件在布局中的相对大小第一个实例 ①效果图:②核心代码如下: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 main.xml <?
www.jb51.net/article/919...htm 2025-5-13

Android四大组件:Activity/Service/Broadcast/ContentProvider作用示...

Android是一种基于Linux,自由及开放源代码的操作系统,Android分为四个层,从高层到底层分别是应用程序层、应用程序框架层、系统运行库层和Linux内核层。Android有四大基本组件:Activity、Service服务、BroadcastReceiver广播接收器、Content Provider内容提供者。 一、Activity作用 Activity是Android应用程序界面的载体,负责显示和...
www.jb51.net/program/303774v...htm 2025-5-10

Android开发服务Service全面讲解_Android_脚本之家

android:textSize="25dp" /> </LinearLayout> 预览图: 3.创建MyService类 提供服务的类 需要继承Service 因为采用的是绑定服务的方式需要重写create,bind,unbind以及destory生命周期方法 创建内部对象继承Bind用于再bind生命周期中返回用于提供服务实现交互 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18...
www.jb51.net/article/2748...htm 2025-5-5

Android软键盘遮挡的四种完美解决方案_Android_脚本之家

14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 <com.jereh.overidelinearlayout.LinearLayoutView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:id="@+...
www.jb51.net/article/947...htm 2025-5-14

Android简单实现计算器功能_Android_脚本之家

本文实例为大家分享了Android简单实现计算器的具体代码,供大家参考,具体内容如下 一、UI布局及代码 页面效果 布局代码 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 ...
www.jb51.net/article/2589...htm 2025-5-17

Android 无障碍服务 performAction 调用过程分析_Android_脚本之家

这篇文章主要介绍了Android 无障碍服务 performAction 调用过程分析,无障碍服务可以模拟一些用户操作,无障碍可以处理的对象,通过类 AccessibilityNodeInfo 表示,通过无障碍服务,可以通过它的performAction方法来触发一些action+ 目录 GPT4.0+Midjourney绘画+国内大模型 会员永久免费使用!【 如果你想靠AI翻身,你先需要一个...
www.jb51.net/article/2517...htm 2022-6-16

Android中的导航navigation的使用详细步骤_Android_脚本之家

android:id="@+id/thirdFragment" android:name=".ThirdFragment" android:label="Third Fragment" tools:layout="@layout/fragment_third"/> </navigation> 4.在Activity中设置NavController:在MainActivity中设置NavController并绑定到BottomNavigationView。 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 ...
www.jb51.net/program/319021k...htm 2025-5-14

详解Android中Dialog的使用_Android_脚本之家

Android中经常要使用Dialog来实现一些提示以及一些特殊的效果,而且样式也不一样,每次都得查一大堆资料,还不一定能解决,这里总结一些常用的Dialog的实践。普通的Dialog1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 //普通的AlertDialog对话框 findViewById(R.id.btn_common).set...
www.jb51.net/article/1019...htm 2025-5-15

Android四大组件之Activity详细介绍_Android_脚本之家

android:layout_width="wrap_content" android:layout_height="wrap_content" android:onClick="MainStart2" android:text="带回调启动"/> Activity中 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 package com.example.activity_01; import android.app.Activity; import android.os.Bundle; ...
www.jb51.net/article/2332...htm 2025-5-10

Android边播放边缓存视频框架AndroidVideoCache详解_Android_脚本之家

当然,AndroidVideoCache还提供了很多的自定义规则,比如缓存文件的大小、文件的个数,以及缓存位置等。 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 private HttpProxyCacheServer newProxy() { return new HttpProxyCacheServer.Builder(this) .maxCacheSize(1024 *...
www.jb51.net/article/2622...htm 2025-5-8