腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(419)
视频
沙龙
1
回答
不
能将
com.google.android.material.appbar.AppBarLayout
$
LayoutParams
转
换为
androidx.coordinatorlayout.widget.CoordinatorLayout
$
LayoutParams
、
、
下面是XML: <
androidx.coordinatorlayout.widget.CoordinatorLayout
android:layout_width="match_parent" <
com.google.android.material
浏览 123
提问于2021-11-06
得票数 0
5
回答
隐藏AppBarLayout并将其空间分配给其余视图
、
、
、
所以我称之为: AppBarLayout.
LayoutParams
p = (AppBarLayout.
LayoutParams
浏览 0
提问于2015-06-16
得票数 24
3
回答
CollapsingToolbarLayout和NestedScrollView
不
工作
、
、
、
我试图用一个CollapsingToolbarLayout实现NestedScrollView,它在NestedScrollView底部显示NestedScrollView中的TextView,不允许、滚动或折叠工具栏。我已经让它与RecyclerView一起工作,而不是NestedScrollView。当我删除app:layout_behavior="@string/appbar_scrolling_view_behavior时,工具栏会折叠,但NestedScrollView不低于AppBarLayout。有什么解决办法或建议来解决这个问题吗?<android.su
浏览 6
提问于2015-07-04
得票数 11
回答已采纳
3
回答
使用更改后的默认语言的webview
、
、
、
、
我的应用程序默认语言是西班牙语(es)。我介绍了XML中的webview。在这一变化之前,语言是西班牙语。在添加webview之后,它将自动显示英语。我如何解决这个问题或问题?WebSettings webSettings = myWebView.getSettings();webSettings.setUserAgentString(String.valueOf(Locale.SPANISH)); android:id="@+i
浏览 0
提问于2019-09-05
得票数 1
回答已采纳
3
回答
不
能将
ClassCastException查看组$
LayoutParams
转
换为
ViewPager$
LayoutParams
、
img.setLayoutParams(new
LayoutParams
(
LayoutParams
.MATCH_PARENT, 100));09-02 14:25:35.326: E/AndroidRuntime(5187): java.lang.ClassCastException: android.view.ViewGroup$
LayoutParams
cannot be cast to android.support.v4.view.
浏览 4
提问于2013-09-02
得票数 17
回答已采纳
1
回答
无法在片段标记上设置`app:layout_behavior`
、
、
、
我将它包含在我的AppBarLayout下面,并将app:layout_behaviour标记添加到其中: <
com.google.android.material.appbar.AppBarLayout
-- ... --> android:id="@+id/somefragment/tabLayout" app:layout
浏览 27
提问于2020-04-11
得票数 0
回答已采纳
1
回答
Android -不移动内容的全屏
、
、
、
、
),我能够启用/禁用全屏: getWindow().addFlags(WindowManager.
LayoutParams
.FLAG_FULLSCREENView.GONE); }).start(); getWindow().clearFlags(WindowManager.
LayoutParams
.FLAG_FULLSCREEN
浏览 4
提问于2020-07-09
得票数 4
回答已采纳
1
回答
一键隐藏AppBarLayout和BottomNavigationView
、
、
> xmlns:android="http://schemas.android.com/apkschemas.android.com/tools" android:layout_height="match_parent" <
com.google.
浏览 19
提问于2018-12-26
得票数 0
1
回答
动态设置边距
、
、
、
super.onAttachedToWindow(); WindowManager.
LayoutParams
newLayoutParams = (WindowManager.
LayoutParams
) view.getLayoutParams(); }); setContentView
浏览 23
提问于2021-05-17
得票数 1
1
回答
layoutParams
是在父视图上而不是视图本身上点的吗?
、
、
在动态更新视图的
layoutParams
时,我遇到了一个问题。
layoutParams
as ConstraintLayout.
LayoutParams
board!!.
layoutParams
=
layoutParams
调试生成后出现此错误时,它将失败: 不
能将
androidx.constraintlayout.widget.ConstraintLay
浏览 4
提问于2021-03-04
得票数 1
回答已采纳
2
回答
不
能将
android.support.constraint.ConstraintLayout$
LayoutParams
转
换为
android.widget.LinearLayout$
LayoutParams
我在跟踪错误 android.support.constraint.ConstraintLayout$
LayoutParams
java.lang.ClassCastException:不
能将
android.widget.LinearLayout$
LayoutParams
转
换为
android.widget.LinearLayout$
LayoutParams
浏览 2
提问于2019-10-09
得票数 1
2
回答
Android Java to Mono C# - MapView.
LayoutParams
、
、
、
、
Mono for Android C#集成开发环境中似乎没有以下MapView.
LayoutParams
:
LayoutParams
.WRAP_CONTENT,
LayoutParams
.WRAP_CONTENT, point, params
浏览 0
提问于2012-05-28
得票数 0
回答已采纳
1
回答
将视图从一个GroPoint移到另一个
、
、
、
我的MapView包含由addView()使用
LayoutParams
添加的子视图:Point p1 = mapView.ge
浏览 0
提问于2012-11-21
得票数 0
回答已采纳
1
回答
不
能将
android.view.ViewGroup$
LayoutParams
转
换为
android.widget.LinearLayout$
LayoutParams
、
当我做以下事情时,我会有例外:但是当我换到new LinearLayout.
LayoutParams
的时候,这没什么。如果LinearLayout.
LayoutParams
是ViewGroup.
LayoutParams
的孩子,那我为什么不能投?
浏览 2
提问于2019-07-03
得票数 0
回答已采纳
1
回答
在创建导航抽屉时获取classCastExcption
获取classCastException: 不
能将
android.widget.FrameLayout$
LayoutParams
强制转
换为
android.support.v4.widget.DrawerLayout$
LayoutParams
浏览 0
提问于2016-10-20
得票数 0
1
回答
如何在MainActivity.java中改变布局值?
、
、
relativelayout2=findViewById(R.id.relativeLayout2);但如何将其转
换为
不同的价值呢
浏览 6
提问于2022-12-04
得票数 0
2
回答
不
能将
android.widget.FrameLayout$
LayoutParams
转
换为
android.widget.AbsListView$
LayoutParams
、
、
、
、
如果你能建议我如何对工作进行编码,我就会全神贯注: java.lang.ClassCastException: android.widget.FrameLayout$
LayoutParams
cannot be cast to android.widget.AbsListView$
LayoutParams
{
浏览 4
提问于2015-07-22
得票数 2
回答已采纳
3
回答
不
能将
android.widget.AbsoluteLayout$
LayoutParams
转
换为
android.widget.FrameLayout$
LayoutParams
onScrollChanged方法:protected void onScrollChanged(int left, int top, int oldLeft, int oldTop) {
layoutParams
.leftMargin = left;
layoutParams
.topMar
浏览 0
提问于2016-06-13
得票数 0
4
回答
不
能将
android.widget.RelativeLayout$
LayoutParams
转
换为
android.widget.AbsListView$
LayoutParams
、
、
be.mabolifting.maboserve, PID: 15941E/AndroidRuntime(15941): at android.widget.ListView.setupChild
浏览 3
提问于2014-11-19
得票数 8
回答已采纳
1
回答
不
能将
Java.lang.classcastexception linearlayout.
layoutParams
转
换为
framelayout.
layoutparams
、
、
、
DisplayMetrics(); mLinearLayout.setLayoutParam
浏览 1
提问于2014-09-18
得票数 0
回答已采纳
点击加载更多
热门
标签
更多标签
云服务器
ICP备案
对象存储
云直播
实时音视频
活动推荐
运营活动
广告
关闭
领券