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
Nullable
android四种不同的事件实现
importandroid.view.View;importandroid.widget.Button;importandroid.widget.Toast;importandroidx.annotation.
Nullable
Alex_designer
·
2020-08-03 10:58
Android
event
android
事件模块
按键事件
LiveDataBus
LiveDataBus.get().with("key_test",String.class).observe(this,newObserver(){@OverridepublicvoidonChanged(@
Nullable
Strings
平心静气Thinkle
·
2020-08-03 09:52
Android
PDA
AndroidTV
Focus
SnapHelper 源码解析
1.attachToRecyclerViewSnapHelper使用入口:attachToRecyclerView(),代码如下:publicvoidattachToRecyclerView(@
Nullable
RecyclerViewrecyclerView
han_gao
·
2020-08-03 09:35
源码
android
controller的几个实例
publicActionResultIndex(stringid,
Nullable
other){this.ViewData["Other"]=other;returnView();}上面中的id变量是在
xuqianghit
·
2020-08-03 08:27
ASP.Net
and
MVC
通过LiveData 构建新的事件总线LiveDataEventBus代替EventBus,RxBus
Android开发,个人使用框架基于LiveData+ViewModel>mCacheBus;privateLiveDataEventBus(){mCacheBus=newArrayMapwith(@
Nullable
Stringkey
weixin_34357962
·
2020-08-03 07:00
Activity竟然有两个onCreate方法,可别用错了
1publicclassHomeDetailActivity{23@Override4protectedvoidonCreate(@
Nullable
BundlesavedInstanceState){5super.onCreate
weixin_33895475
·
2020-08-03 06:46
关于tabbarViewController的左右滑动切换
而在iOS7.0以后,苹果在UITabBarControllerDelegate中增加了下面两个代理方法:-(
nullable
id)tab
weixin_30763397
·
2020-08-03 06:01
自定义空心矩形
publicclassTestViewextendsView{publicTestView(Contextcontext){super(context);}publicTestView(Contextcontext,@
Nullable
AttributeSetattrs
wei844067872
·
2020-08-03 06:11
bitmap
android
android之自定义view、添加自定义属性
res/values下创建atts.xml--声明给那个view添加自定义属性,4.实现这个构造方法,在这里面吧属性解析出来:publicAutodefineButton(Contextcontext,@
Nullable
Attr
liyubao160
·
2020-08-03 05:26
android
WebView加载本地html文件
图片等允许使用jswebsettings.setJavaScriptEnabled(true);加载本地文件wvContent.setWebViewClient(newWebViewClient(){@
Nullable
路和远方
·
2020-08-03 04:11
Android
Android EditText与GridLayout实现表格效果
DouYinWu-master案例集合.zip效果图:1.主函数布局:2.主函数代码:importandroid.os.Bundle;importandroid.support.annotation.
Nullable
冰糖葫芦三剑客
·
2020-08-03 04:22
EditText
静态Fragment
fragmentone的代码和fragmenttwo的代码一样,只是布局不同:publicclassfragmentoneextendsFragment{@
Nullable
@OverridepublicViewonCreat
sdRPF
·
2020-08-03 04:18
Android控件
fragment
布局
对自定义View的小补充 -- 其构造方法调用的时间
Contextcontext){super(context);initScroller();}//在XML中不使用自定义属性的时候调用publicDemoImageView(Contextcontext,@
Nullable
AttributeSetattrs
堕落超越天使
·
2020-08-03 02:42
Android
GridLayoutManager+SnapHelper简单实现横向分页
importandroid.graphics.PointF;importandroid.support.annotation.NonNull;importandroid.support.annotation.
Nullable
Miyukii
·
2020-08-03 02:29
iOS字符串编码
GitHub地址URL编码api接口文档,iOS7及以上可用:-(
nullable
NSString*)stringByAddingPercentEncodingWithAllowedCharacters
谷歌架构师
·
2020-08-03 02:46
iOS
Android自定义View
privatePaintpaint;publicLineView(Contextcontext){super(context);init();}publicLineView(Contextcontext,@
Nullable
AttributeSetatt
U_笑谈人生
·
2020-08-03 01:01
android Textview 循环滚动效果
widget.AppCompatTextViewimplementsView.OnClickListener{publicMyView(Contextcontext){super(context);initView();}publicMyView(Contextcontext,@
Nullable
Attribute
哈哈123zxc
·
2020-08-03 01:33
Android中简单实现跑马灯效果(从右往左滚动)
packagecom.example.administrator.testall.horse_lamp;importandroid.graphics.Color;importandroid.os.Bundle;importandroid.support.annotation.
Nullable
彼岸彼此
·
2020-08-02 23:50
android开发
spark sql 源码学习Dataset(三)structField、structType、schame
1、structField源码结构:caseclassStructField(name:String,dataType:DataType,
nullable
:Boolean=true,metadata:Metadata
baiwacuan6352
·
2020-08-02 23:10
简单的接口传值
此方法可以实现加减购物车//自定义接口packagecom.example.jiekou;importandroid.content.Context;importandroid.support.annotation.
Nullable
Ren15306
·
2020-08-02 22:16
DialogFragment使用
1.布局中设置padding如何不设置会被覆盖无法显示圆角publicViewonCreateView(LayoutInflaterinflater,@
Nullable
ViewGroupcontainer
Otldan
·
2020-08-02 22:24
android
pg 堆内元组 HOT(Heap Only Tuple)
测试表结构如下:testdb=#\dtblTable"public.tbl"Column|Type|Collation|
Nullable
|Default--------+---------+------
Hehuyi_In
·
2020-08-02 21:51
自定义seekbar仿开关,滑到最右边,自动回到左边
importstaticandroid.content.ContentValues.TAG;importandroid.app.Activity;importandroid.os.Bundle;importandroid.support.annotation.
Nullable
不万能的小叮当
·
2020-08-02 20:10
oracle修改字段名
oracle修改字段名,在oracle9i以后altertable[表名]renamecolumn旧的字段名to新的字段名;测试:descTBL_MENU;NameType
Nullable
DefaultComments
yanleigis
·
2020-08-02 19:12
oracle
ContentProvider+ContentResolver实现应用程序内的数据共享
privateSQLiteDatabasesqLiteDatabase;@OverridepublicbooleanonCreate(){Log.i("test","onCreate");returnfalse;}@
Nullable
漫不_经心
·
2020-08-02 18:58
学习
kotlin 异常错误汇总
常见异常1.Not
nullable
valuerequiredtocallan‘iterator()’methodonfor-looprange这个错误的原因是for迭代中的数组不可以为null解决办法使用
HappyerMano
·
2020-08-01 13:02
kotlin
java
c# 泛型 类型参数上的限制(where T:class,new())
以下为MSDN上的解释:约束描述whereT:struct此类型参数必须是值类型,除了
Nullable
类型的所有类型都可以。whereT:class此类型参数必须是引用类型。
-似曾相识燕归来
·
2020-08-01 12:01
c#
【安卓】Navigation导航返回后重复执行onCreateView的解决办法
@
Nullable
@OverridepublicViewonCreateView(@NonNullLayoutInflaterinflater,@
Nullable
ViewGroupcontainer,@
fanqi987
·
2020-08-01 12:08
安卓
Android框架组件--Lifecycle的使用
2.一个常见的开发例子publicclassTestActivityextendsActivity{@OverrideprotectedvoidonCreate(@
Nullable
BundlesavedInstanceStat
Mr Cui
·
2020-08-01 11:28
android基础总结
spring源码中doCreateBean创建bean时使用的PostProcessor说明
bean实例化是使用的PostProcessor//执行创建beandoCreateBean(finalStringbeanName,finalRootBeanDefinitionmbd,final@
Nullable
Object
笨笨的小吴
·
2020-08-01 11:12
spring
SDWebImage-存储图片到磁盘和内存过程
-(void)storeImage:(
nullable
UIImage*)image imageData:(
nullable
NSData*)imageData forKey
rv0p111
·
2020-08-01 11:52
框架分析
iOS:如何访问一个对象的私有属性?(二)
2、通过C方法获取对象的成员变量(ivar)class_getInstanceVariable(Class_
Nullable
cls,constchar*_Nonnullname);两个参数依次:1:被访问的实例对象
last_one
·
2020-08-01 10:23
CollectionUtils
packagecom.ding.util;importorg.springframework.lang.
Nullable
;importorg.springframework.util.ObjectUtils
hy.ding
·
2020-08-01 06:36
Java
将数据库查询得到的值转换为指定的运行时对象,包括
Nullable
将数据库查询得到的值转换为指定的运行时对象,包括
Nullable
publicT[]ExecuteArray(GSQLCommandScriptgsql,objectparas=null){using(DbDataReaderreader
howay!
·
2020-08-01 05:20
自定义宽高比例的ImageView
publicclassScaleImageViewextendsandroid.support.v7.widget.AppCompatImageView{privatefloatscaleValue;publicScaleImageView(Contextcontext,@
Nullable
AttributeSetattrs
JIN哥
·
2020-08-01 05:17
Android
iOS关于加载图片的几种方式选择
大家都知道创建UIImage常用以下几种方式+(
nullable
UIImage*)imageNamed:(NSString*)name;//loadfrommainbundle#if__has_include
Crazy_bananas
·
2020-08-01 02:38
iOS
UI
【Kotlin 1.4】使用listOfNotNull()创建对象
listOfNotNullIfyouwanttostoresome
nullable
valuesinanon-
nullable
list(orset),youdon’thavetonull-checkmanually.Instead
fundroid_方卓
·
2020-08-01 02:07
Kotlin
kotlin
listOf
listOfNotNull
Android自定义View--时钟
importandroid.graphics.Color;importandroid.graphics.Paint;importandroid.os.Handler;importandroid.support.annotation.
Nullable
Gson_main
·
2020-08-01 01:16
Android
mysql表结构导出成Excel格式带备注
第一步SQL查询表结构(备注信息)SELECTCOLUMN_NAME列名,COLUMN_TYPE数据类型,DATA_TYPE字段类型,CHARACTER_MAXIMUM_LENGTH长度,IS_
NULLABLE
爱吃鱼油
·
2020-08-01 01:21
mysql
Android中javax annotation
Nullable
找不到的解决方案
在某些Android开源库中有时会遇到下面的引用找不到的问题:importjavax.annotation.Nonnull;importjavax.annotation.
Nullable
;其实Android
冬瓜去哪儿
·
2020-08-01 01:13
Android
android
常见问题集锦
Android 中设置Clickable 无效问题记录
view.isClickable=false设置完成后,发现还是有无效问题;后查看view的setOnClickListener发现问题所在:publicvoidsetOnClickListener(@
Nullable
OnClickListenerl
sunlit_6
·
2020-08-01 00:15
自定义view音乐播放
1.MyViewpackagecom.example.zhoukao3;importandroid.content.Context;importandroid.support.annotation.
Nullable
sui_yz
·
2020-08-01 00:32
MVP如何使用basefragment
创建抽象类之后继承V4Fragment之后重写onCreateViewpublicabstractclassBaseFragextendsFragment{@
Nullable
@OverridepublicViewonCreateView
stray_Programmer
·
2020-08-01 00:52
fragment
Activity与Fragment通信
BundlepublicclassFragmentActivity1extendsActivity{publicStringproductId;@OverrideprotectedvoidonCreate(@
Nullable
Bundlesaved
meStronger
·
2020-07-31 23:18
事件学习笔记
处理事件的对象叫@“响应者对象”事件可以分为3大类型.1.触摸事件2.加速计事件3.远程控制事件//触摸事件-(void)touchesBegan:(NSSet*)toucheswithEvent:(
nullable
UIEvent
Sniper_Zheng
·
2020-07-31 23:54
底部弹出的DialogFragment(与dialog用法相似,是Fragment) 带输入法软键盘可以将其顶上去
transparenttrue0.4publicclassLocationDialogFragmentextendsDialogFragment{@OverridepublicvoidonCreate(@
Nullable
B
小丁丁铛
·
2020-07-31 23:16
自定义控件
使用CAGradientLayer实现颜色渐变折线图
属性说明CAGradientLayer共有5个主要属性:/*CGColorRef对象数组,定义了每个渐变区间的渐变色*/@property(
nullable
,copy)NSArray*col
iCodingBoy
·
2020-07-31 22:06
CAKeyframeAnimation
*/@property(
nullable
,copy)NSArra
Jackson_Chan
·
2020-07-31 22:24
Fragment中toolbar添加Menu
内容分享一下:一、如下,,想必这个样子的都搞过了,,,,@OverridepublicvoidonCreate(@
Nullable
B
茄子凉心
·
2020-07-31 20:10
Fragment
RecyclerView横向和竖向滑动冲突
importandroid.content.Context;importandroid.support.annotation.
Nullable
;importandroid.support.v4.view.MotionEventCompat
二度看风景
·
2020-07-31 19:40
Android高级UI绘制
上一页
29
30
31
32
33
34
35
36
下一页
按字母分类:
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
其他