E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
Drawable
android 自定义下拉框
下拉列表使用listview.二、pop弹框代码,文件名SpinerPopWindow.javaimportandroid.content.Context;importandroid.graphics.
drawable
人民的石头
·
2024-02-01 17:04
Android
android
BottomNavigationView 样式被主题覆盖怎么办
问题描述BottomNavigationView按照UI发的设计进行编辑,在单独的模块儿上显示正常,添加到主模块儿时发现样式发生改变修改app:itemIconTint="@
drawable
/icon_selector"app
Dear月
·
2024-02-01 05:18
步骤进度控件
Timeline-Viewimage.png使用步骤1.依赖compile'com.github.vipulasri:timelineview:1.0.6'2.布局引入属性默认值说明app:marker="@
drawable
Wocus
·
2024-02-01 02:45
合并代码 & AGPBI报错
合并代码之后,项目无法运行,报错如下:AGPBI:{"kind":"error","text":"error:resource
drawable
/nim_list_item_selector(akacom.rise.planner
南窗云
·
2024-02-01 01:37
Android imageView.setImageXXX() 引发的卡顿问题
使用ImageView,你可以在屏幕上显示来自不同来源的图像,比如位图文件、绘图资源
drawable
、网络来源或者相机拍摄的图片。
wk灬丨
·
2024-01-30 18:31
性能优化
android
Android修改应用程序图标和名字
修改应用图标在res/
drawable
中保存一个jpg或者png的图片文件。
起风*
·
2024-01-30 17:50
Android学习
android
移动开发
app
安卓
android
studio
Android 自定义对话框
finalAlertDialog.BuildernormalDialog=newAlertDialog.Builder(MainActivity.this);normalDialog.setIcon(R.
drawable
.icon_dial
西飘客
·
2024-01-30 00:39
android
android
Android
Drawable
(可绘制对象资源)
Drawable
:Android中是指可在屏幕上绘制的图形。
tuacy
·
2024-01-29 13:35
android自定义View中用NinePatch类画9图
图的制作在官网和其他博客中都有大量教程,最终可以制作出XXX.9.png文件没有用NinePatch:在自定义View中,直用Bitmap和画笔而不配合NinePatch类是画不9图的效果的,比如://R.
drawable
.image9Patch
HWilliamgo
·
2024-01-28 10:49
关于Material组件
:1.导入依赖:implementation'com.google.android.material:material:1.2.0'MaterialButton日常开发中,我们写布局,写圆角,通常会在
drawable
Amy木婉清
·
2024-01-28 08:36
Right
Drawable
CenterTextView
importandroid.annotation.SuppressLint;importandroid.content.Context;importandroid.graphics.Canvas;importandroid.graphics.
drawable
.
Drawable
petterzou
·
2024-01-27 12:41
十年程序员的专栏
android
java
开发语言
Android Bitmap 图片裁剪
privatevoidclipBitmap(){//创建原始位图对象BitmaporiginalImage=BitmapFactory.decodeResource(getResources(),R.
drawable
.ic_cast_background
petterzou
·
2024-01-27 12:09
android
recycleview左滑删除仿QQ微信效果
首先对应的主布局适配器子布局layout_item对应的三个backgound背景:res->
drawable
white_background,pink_background,orange_background
bbtianshi
·
2024-01-26 01:24
微信
android
android
studio
android 图片缩略图显示
//通过openRawResource获取一个inputStream对象InputStreaminputStream=getResources().openRawResource(R.
drawable
.temp
passself
·
2024-01-25 18:23
android
AlertDialog自定义样式显示圆角背景失败
在代码中添加代码:Windowwindow=alertDialog.getWindow();window.setBackground
Drawable
(newColor
Drawable
(Color.TRANSPARENT
又宠又烦的Android女
·
2024-01-25 13:43
android
Android
简单快速取消AlertDialog的白色背景框,AlertDialog设置圆角背景
解决方法:将Dialog的背景设置为透明色,代码如下:getDialog().getWindow().setBackground
Drawable
(newColor
Drawable
(Color.TRANSPARENT
Maggie-hub
·
2024-01-25 13:40
android
踩坑
java
android
Android Studio 提示Use app:
drawable
StartCompat instead of android:
drawable
Start
1.Useapp:
drawable
StartCompatinsteadofandroid:
drawable
Start在Android开发中,android:
drawable
Start和app:
drawable
StartCompat
iblade
·
2024-01-25 12:44
国际化
android
android
studio
ide
Android 水印效果
Android水印效果本文主要介绍下android中水印的实现效果.实现的方式有多种,就不一一赘述了,本文就是通过自定义
drawable
来实现水印.不多说,直接上代码吧:importandroid.content.Context
夏沫琅琊
·
2024-01-25 11:20
android
自定义view
android
SVG图片文件转换成Vector
在项目中选择要放置Vector
Drawable
的res文件夹。右击res文件夹,选择New>VectorAsset。在弹出的窗口中选择Localfile(SVG,PSD)选项。上传你的SVG文件。
烟萝
·
2024-01-25 10:02
图像处理
android
studio
Android 不同分辨率下的
Drawable
尺寸资源设置
参考链接:https://developer.android.com/guide/practices/screens_support?hl=zh-cn启动器图标36x36(0.75x)用于低密度48x48(1.0x基线)用于中密度72x72(1.5x)用于高密度96x96(2.0x)用于超高密度144x144(3.0x)用于超超高密度192x192(4.0x)用于超超超高密度(仅限启动器图标;请参
全球顶尖伪极客
·
2024-01-22 17:58
ImageView-scaleType-各种不同效果解析
,你将了解到:1、ImageView如何确定view的尺寸2、ImageView"adjustViewBounds"怎么用3、ImageView"scaleType"理解与运用4、ImageView和
Drawable
小鱼人爱编程
·
2024-01-22 04:56
Android 获取指定显示区域的图像(Bitmap)并进行缩放
1、直接获取ImageView上的图像Bitmap图形数据val
drawable
=binding.imageView.
drawable
valbitmap
Drawable
=
drawable
asBitmap
Drawable
清朝公主大清正黄旗
·
2024-01-21 20:54
Android开发——添加图片
1、首先选择一张需要的图片,通过左侧的ResourceManage选择“+”并选择Import
Drawable
s选择一张图片并调整以下两个内容这两个内容的作用借用谷歌官方的Android开发教程的内容:
努力编程的阿曼
·
2024-01-21 06:47
Android
开发
Android SVG 转 Bitmap
/***SVG转Bitmap*@paramcontext上下文*@param
drawable
IdSVG资源*@return*/publicstaticBitmapgetBitmapFromVector
Drawable
SONGSONG3000
·
2024-01-20 12:06
看EditText是如何改变光标的颜色的?
解决办法找了很久发现没有直接修改颜色的属性,只有一个android:textCursor
Drawable
属性。参考网上的办法可以通过这个来修改光标颜色。
fearlazy
·
2024-01-20 10:48
Android Matrix绘制Paint
Drawable
设置BitmapShader,手指触点为圆心scale放大原图,Kotlin(二)
AndroidMatrix绘制Paint
Drawable
设置BitmapShader,手指触点为圆心scale放大原图,Kotlin(二)在AndroidMatrix绘制Paint
Drawable
设置BitmapShader
zhangphil
·
2024-01-20 10:25
Android
kotlin
android
kotlin
解决App启动时黑白屏问题
定义替换的背景
Drawable
资源文件在
drawable
下创建一个layer-list单独定义Activity特有的预加载的样式这里定义的样式是将要配置到对应的Activity上的。
mall寶珼_c57e
·
2024-01-19 23:21
android实战之添加图标到项目中
实现1.androidstudio,
drawable
右键---new----->vectorasset,选择本地下载的资源。点击next。完成
sccd2009
·
2024-01-19 16:05
android
Android Matrix绘制Paint
Drawable
设置BitmapShader,手指触点为圆心scale放大原图,Kotlin
AndroidMatrix绘制Paint
Drawable
设置BitmapShader,手指触点为圆心scale放大原图,Kotlin在Android基于Matrix绘制Paint
Drawable
设置BitmapShader
zhangphil
·
2024-01-18 10:05
Android
kotlin
android
kotlin
23.实战演练--个人主页
@color/white25sp@
drawable
/btn_bg_selector20dp20dp20dp18sp@
drawable
/edit_text_bg10dp50dpLoginTest北京上海天津深圳广州福建江苏浙江江西湖北
jerry9590
·
2024-01-18 04:18
Android
android
App启动页优化
和服务器配置的广告图app启动方式冷启动:应用尚未运行,系统创建进程并初始化应用热启动:应用已经运行但是在后台挂起,从后台恢复应用冷启动问题优化点:从创建进程到第一个页面会有白屏或黑屏解决:给第一个页面设置主题@
drawable
Neo_duan
·
2024-01-18 01:37
2018-03-20
建立一个layer_list,是在
drawable
文件夹下,新建一个
drawable
ableResourcefile,起一个名字为aaa.xml。
安多人
·
2024-01-16 15:10
【Android】Android
Drawable
与Bitmap互转
Drawable
转成Bitmap方法一:创建空Bitmap并用canvas绘制privateBitmap
drawable
ToBitamp(
Drawable
drawable
){//声明将要创建的bitmapBitmapbitmap
devnn
·
2024-01-16 08:20
Android
android
Android基于Matrix绘制Paint
Drawable
设置BitmapShader,以手指触点为中心显示原图的圆切图,Kotlin(4)
Android基于Matrix绘制Paint
Drawable
设置BitmapShader,以手指触点为中心显示原图的圆切图,Kotlin(4)这篇Android基于Matrix绘制Paint
Drawable
zhangphil
·
2024-01-16 03:07
Android
kotlin
android
kotlin
view -draw过程
1.view中包含的绘制元素.view背景,任何view都有背景,可以是图片.色值或者
drawable
资源视图本身内容.在ondraw中绘制渐变边框,本质是一个shader对象滚动条,紧紧显示滚动的状态
刘佳阔
·
2024-01-15 20:59
Android基于Matrix绘制Paint
Drawable
设置BitmapShader,以手指触点为中心显示原图像圆图,Kotlin(2)
Android基于Matrix绘制Paint
Drawable
设置BitmapShader,以手指触点为中心显示原图像圆图,Kotlin(2)在https://zhangphil.blog.csdn.net
zhangphil
·
2024-01-15 03:25
Android
kotlin
android
kotlin
Android基于Matrix绘制Paint
Drawable
设置BitmapShader,以手指触点为中心显示原图像圆图,Kotlin(3)
Android基于Matrix绘制Paint
Drawable
设置BitmapShader,以手指触点为中心显示原图像圆图,Kotlin(3)在Android基于Matrix绘制Paint
Drawable
zhangphil
·
2024-01-15 03:23
Android
kotlin
android
kotlin
性能优化系列——布局优化
布局优化选择合适的布局使用include标签来共享布局使用ViewStub标签来实现布局的延迟加载merge标签的使用布局中背景颜色的设置要慎重尽量使用Compound
Drawable
使用Lint检测这一次我们来说说有关布局优化的问题
青春-梦
·
2024-01-14 18:03
优化
优化
Android
Glide中使用自定义ImageView,网络图片加载不出来的问题
解决方法:添加.asBitmap()原因:Gilde获取资源为
Drawable
,添加.asBitmap()获取资源变为Bitmap//不加.asBitmap()调用的方法imageView.setImage
Drawable
强大帅
·
2024-01-14 07:06
【Android开发】不同Activity之间的数据回传实例(二)星座测算游戏
二、代码实现1.资源准备将项目所需要的12张星座图片以及2张背景图片导入程序的
drawable
-hdpi文件夹中(默认情况下程序中没有
drawable
-
Monkey_Jun
·
2024-01-12 12:16
期末复习
android
游戏
java
【Android开发】不同Activity之间的数据回传实例(一)摘桃子游戏
点击退出桃园会返回首页,首页桃子数会根据点击的桃子数动态增加二、代码实现1.资源准备将项目所需要的图片bg.png、monkey.png、btn_peach.png、peach_pic.png导入程序的
drawable
hdpi
Monkey_Jun
·
2024-01-12 12:16
期末复习
android
游戏
java
Android基于Matrix绘制Paint
Drawable
设置BitmapShader,以手指触点为中心显示原图像圆图,Kotlin
Android基于Matrix绘制Paint
Drawable
设置BitmapShader,以手指触点为中心显示原图像圆图,Kotlin手指在上面的图上移动,“剪切”出上面图中以手指触点为中心的图(半径图
zhangphil
·
2024-01-12 01:48
kotlin
Android
android
kotlin
用 Xml 写 Shape
Drawable
太繁琐了, so...
so,
Drawable
Builderiscomming...源码地址该Builder类主要提供语义化的API进行快捷的Shape创建操作。通过语义化的API创建shape
drawable
。
大侠咕咚
·
2024-01-11 02:57
Android通知---创建通知(附加代码)
创建基本通知NotificationCompat.Builderbuilder=newNotificationCompat.Builder(this,"channel_id").setSmallIcon(R.
drawable
.notification_icon
宇宙老魔女
·
2024-01-11 00:46
Android12
系统定制开发
Android
android
Android 13 移除下拉栏中的设置入口
修改首先找到了对应的资源文件路径:vendor/mediatek/proprietary/packages/apps/SystemUI/res/
drawable
/ic_settin
不太正常的移动开发工程师
·
2024-01-10 16:23
Android
13
android
Android加载png图片时出错
有错误提示:“ERROR:FailureprocessingPNGimageD:\workspace\2DCodePolling\res\
drawable
\launcher_icon.png”错误原因:
爱吃青草的牛
·
2024-01-10 10:00
Android
关于/drawabe/selector.xml文件中使用颜色
当在中使用颜色资源的时候,还是要使用android:
drawable
="@color/guide_prompt_btn_normal_color"/>,然后里面使用@color/xx,否则找不到资源
使劲挤海绵
·
2024-01-09 22:32
13.正确使用Android中的资源Res
(1).String,StringArray的使用StringArray(2).Color的使用(3).Dimen(尺寸)的使用(4).如何写一个
drawable
作为背景(5).如何写一个可以改变的
drawable
jerry9590
·
2024-01-09 21:48
Android
android
android-studio
android
studio
Android studio SeekBar应用设计
一、xml布局文件:1)、默认状态的2)、改变颜色的:3)、改变滑块的
drawable
<SeekBarandroid:id="@+id/seekBar5"android:layout_margin
colin工作室
·
2024-01-09 16:15
android
android
studio
android
ide
ProgressBar颜色设置
stylesstyles.xml@color/colorAccentProgressBar控件//layout_xml中ProgressBar的颜色设置.mMusicLoading.getIndeterminate
Drawable
钰大人
·
2024-01-09 02:34
上一页
1
2
3
4
5
6
7
8
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他