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
layoutpara
Android WMS——客户端输入事件处理(十九)
源码位置:/frameworks/base/core/java/android/view/ViewRootImpl.javapublicvoidsetView(Viewview,WindowManager.
LayoutPara
c小旭
·
2023-11-22 15:54
Android
WMS
android
WMS
点击显示popupWindow背景切换透明,popupWindow消失背景恢复
WindowManager.LayoutParamslp=getWindow().getAttributes();lp.alpha=bgAlpha;//0.0-1.0getWindow().addFlags(WindowManager.
LayoutPara
嘉平ing
·
2023-09-24 21:09
GSL MEM ERROR: kgsl_sharedmem_alloc ioctl failed.应用闪退问题修复
比如:Window:运行时对窗口设置flag使其使用硬件加速window.setFlags(WindowManager.
LayoutPara
ChrisZhao520
·
2022-12-06 14:03
android
Android View滑动的实现分析示例
scrollBy5.Scroller实现View滑动有很多种方法,这篇帖子介绍6中滑动的方法,分别是:layout()、offsetLeftAndRight()、offsetTopAndBottom()、
LayoutPara
·
2022-08-02 18:17
设置控件在父布局中的相对位置遇到的坑
timerLl是一个LinerLayout,它的父布局是RelativeLayout最一开始的做法是RelativeLayout.LayoutParamslp=(RelativeLayout.
LayoutPara
JJD0501
·
2022-02-18 11:15
android顶部状态栏透明化,并释放空间
WindowManager.LayoutParamslocalLayoutParams=mActivity.getWindow().getAttributes();localLayoutParams.flags=(WindowManager.
LayoutPara
lemon15588
·
2020-09-14 19:00
理解Window和WindowManager
mFloatingButton.setText("button");WindowManager.LayoutParamslayoutParams=newWindowManager.LayoutParams(WindowManager.
LayoutPara
孟凡勇
·
2020-09-11 10:51
Android
源码分析
Android软键盘弹出,布局没有上移的解决办法
android:windowSoftInputMode="adjustResize|stateHidden"3)或者getWindow().setSoftInputMode(WindowManager.
LayoutPara
潇曜
·
2020-08-21 05:42
android
Android 悬浮小窗口关键代码
mButton=newButton(this);mButton.setText("悬浮窗");layoutParams=newWindowManager.LayoutParams(WindowManager.
LayoutPara
小缘宝
·
2020-08-19 00:09
代码创建Android布局
LinearLayout.LayoutParamstvParam=newLinearLayout.
LayoutPara
STF雪枫
·
2020-08-03 12:48
Android
使用xml和java代码混合控制UI界面
importandroid.os.Bundle;importandroid.app.Activity;importandroid.view.Menu;importandroid.view.ViewGroup.
LayoutPara
修炼中的菜鸟
·
2020-08-03 08:20
Android
设置PopupWindow的背景色
PopupWindow的背景publicstaticvoidsetBackgroundAlpha(AppCompatActivityactivity,floatbgAlpha){WindowManager.
LayoutPara
页子
·
2020-08-03 03:05
Android 软件盘弹出时把顶部局顶上去的解决方法
android:windowSoftInputMode="adjustResize|stateHidden"3)或者getWindow().setSoftInputMode(WindowManager.
LayoutPara
xxb52306
·
2020-08-01 07:45
Android Studio中隐藏状态栏、标题栏实现全屏的方式
Window.FEATURE_NO_TITLE);getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.
LayoutPara
Exception灬
·
2020-07-31 17:06
Android基础
Java动态设置ImageView的setPadding无效,解决办法
Scdzyx.this);img.setPadding(left,top,right,bottom);解决办法:LinearLayout.LayoutParamsparams=newLinearLayout.
LayoutPara
家有睿少
·
2020-07-11 09:52
java
Android
android application 屏幕解锁和亮屏
Activity的window设置FlaggetWindow().setFlags(WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD,WindowManager.
LayoutPara
shutcec
·
2020-06-26 10:05
android应用
实现沉浸式(透明)状态栏方法_封装成工具类
mActivity.getWindow().addFlags(WindowManager.
LayoutPara
阳光的nick_lxz
·
2020-02-14 02:46
透明状态栏和透明
Translucentstatusbarwindow.setFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS,WindowManager.
LayoutPara
liguiyun
·
2019-11-04 03:22
Android顶部状态栏透明化并释放空间的两种实现方法
WindowManager.LayoutParamslocalLayoutParams=mActivity.getWindow().getAttributes();localLayoutParams.flags=(WindowManager.
LayoutPara
lemon15588
·
2017-03-03 11:19
addroid 自定义布局
RelativeLayout.LayoutParamsrelLayoutParams=newRelativeLayout.LayoutParams(LayoutParams.WRAP_CONTENT,
LayoutPara
knight_black_bob
·
2016-10-14 18:00
android
自定义
布局
java.lang.ClassCastException: android.widget.RelativeLayout$LayoutParams cannot be cast to android.widget.AbsListView$
LayoutPara
今天在用listView时遇到这个问题。网络一些解释1.java.lang.ClassCastException:android.widget.RelativeLayout$LayoutParamscannotbecasttoandroid.widget.AbsListView$LayoutParamsFrameLayout的父控件是一个LinearLayout控件,问题出在,LinearLayo
god2030
·
2016-04-13 09:00
View加载详解(二)
DecorView的测量规格,跟踪代码进入getRootMeasureSpec()/***Figuresoutthemeasurespecfortherootviewinawindowbasedonit's*
layoutpara
qq_26685493
·
2016-04-06 19:00
Android LayoutInflater的到View后丢失LayoutParam信息的问题
于是我猜测,是不是因为inflate时得到的view丢失了xml文件中的
layoutpara
nnmmbb
·
2015-08-26 17:00
Android强制设置横屏或竖屏
Window.FEATURE_NO_TITLE);//隐藏标题 getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.
LayoutPara
技术人
·
2015-03-18 10:46
android
Android强制设置横屏或竖屏
Window.FEATURE_NO_TITLE);//隐藏标题 getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.
LayoutPara
技术人
·
2015-03-18 10:46
android
Android开发之ListView+EditText-要命的焦点和软键盘问题解决办法
fillParentLayoutParams = new LinearLayout.LayoutParams( LinearLayout.LayoutParams.FILL_PARENT, LinearLayout.
LayoutPara
yolinfeng
·
2015-03-10 00:00
Android自定义ViewGroup中LayoutParam的应用
extendsViewGroup{ privateintmWidth; privateintmHeight; publicstaticclassLayoutParamsextendsViewGroup.
LayoutPara
frog_lightdesk
·
2014-12-18 08:00
android
编程回忆之Android回忆(Android的强制横屏,竖屏,长亮)
Window.FEATURE_NO_TITLE);//隐藏标题 getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.
LayoutPara
stop_pig
·
2014-02-28 16:00
android
竖屏
横屏
长亮
android.widget.LinearLayout$LayoutParams cannot be cast to android.widget.RelativeLayout$
LayoutPara
上面是布局文件,我要早代码中重新设置ImageView的宽度,用以下方法:LayoutParamslayoutParams=(LayoutParams)iv_move.getLayoutParams(); layoutParams.width=move_width; iv_move.setLayoutParams(layoutParams);运行的时候会报错: Causedby:java
taotao19880301
·
2014-01-07 18:00
android
LinearLayout
LayoutParams
Android 悬浮窗体问题
WindowManagerwm=getWindow().getWindowManager();TextViewbb=newTextView();WindowManager.
LayoutPara
wangbole
·
2013-01-23 19:00
手机属性设置(全屏、横竖屏)
Window.FEATURE_NO_TITLE);//隐藏标题 getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.
LayoutPara
a1031359915
·
2013-01-14 09:00
android界面研究 :Activity的Title设置
Theme.NoTitleBar.Fullscreen"2.实现单个activity全屏requestWindowFeature(Window.FEATURE_NO_TITLE);getWindow().setFlags(WindowManager.
LayoutPara
jdsjlzx
·
2012-06-27 16:00
android
layout
扩展
android全屏,去掉title栏的办法
Theme.NoTitleBar.Fullscreen"2.实现单个activity全屏requestWindowFeature(Window.FEATURE_NO_TITLE);getWindow().setFlags(WindowManager.
LayoutPara
laohuang1122
·
2012-06-18 11:00
java
c
android
layout
扩展
android全屏,去掉title栏的办法
Theme.NoTitleBar.Fullscreen"2.实现单个activity全屏requestWindowFeature(Window.FEATURE_NO_TITLE);getWindow().setFlags(WindowManager.
LayoutPara
mengweiqi33
·
2012-06-08 10:00
android编程之代码布局(常见错误)
是组件在父类中重复加载了相同的组件例如:TextViewmTextView=newTextView(this); mTextView.setText("helloworld"); LinearLayout.
LayoutPara
xyz_fly
·
2012-04-25 17:00
编程
android
android在代码里设置margin
我们发现android.view.ViewGroup.MarginLayoutParams有个方法setMargins(left,top,right,bottom).其直接的子类有:FrameLayout.
LayoutPara
agods
·
2012-03-19 17:00
java
download
button
Android强制设置横屏或竖屏
Window.FEATURE_NO_TITLE);//隐藏标题 getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.
LayoutPara
AlexMichel
·
2011-10-30 00:51
android
移动开发
职场
休闲
Android 强制设置横屏或竖屏 设置全屏
Window.FEATURE_NO_TITLE);//隐藏标题 getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.
LayoutPara
lwuit
·
2011-09-19 10:00
java
android
user
application
action
encoding
Android 强制设置横屏或竖屏 设置全屏
myview)调用之前添加下面代码requestWindowFeature(Window.FEATURE_NO_TITLE);//隐藏标题getWindow().setFlags(WindowManager.
LayoutPara
aben_2005
·
2011-08-09 11:00
java
android
user
application
action
encoding
上一页
1
下一页
按字母分类:
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
其他