腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
4
回答
FrameLayout
显示
的
宽度
不正确
android
、
width
、
android-framelayout
我使用一个从
FrameLayout
继承
的
名为CustomView
的
类来包含上面的布局。public class CustomView extends
FrameLayout
然后,我将在启动时将上述布局添加到CustomView: private void initItems(){LinearLayout) rowView.findViewById(R.id.scriptframe); setUpFont(); } 最后,在我
的
活动中Line
浏览 54
提问于2019-04-29
得票数 0
2
回答
扩展最大
宽度
的
ImageView在ListView中
android
、
android-layout
、
android-imageview
为了便于讨论,我有一个ListView,它
的
项目是ImageView
的
。我希望图像缩放到ListView
的
行
的
宽度
,并保持它
的
方面比率。="match_parent" android:orientation="vertical" > </<em
浏览 4
提问于2012-09-05
得票数 4
回答已采纳
2
回答
安卓:
FrameLayout
中
的
RelativeLayout,宽高错误
android
、
android-layout
、
android-fragments
、
android-relativelayout
、
android-framelayout
我所拥有的:<
FrameLayout
xmlns:android="httpmatch_parent" android:id="@+id/comics_fragment_container"><<em
浏览 3
提问于2013-12-03
得票数 2
1
回答
Android Gridlayout没有
显示
没有任何视图
的
framelayout
android
、
android-studio
、
android-framelayout
、
android-gridlayout
我想实现一个棋盘
的
网格布局和框架。当我硬编码xml时,一切都很好。但是当我试图以编程
的
方式实现它时,所有的事情都会分崩离析。在xml中,我添加了它成了一个蓝色
的
正方形,但是当我动态地这样做时,就像除非它有一个子,否则不
显示
正方形 另外,如何动态地改变棋盘方
的
大小?看起来,网格布局
的
网格大小并不来自父网格,而来自
浏览 4
提问于2022-03-06
得票数 1
回答已采纳
1
回答
"match_parent“有时行为错误,因为Android版本为18。
android
、
android-layout
android:background="#FF8C00" android:textStyle="bold" /> android:layout_height="6dp"
浏览 0
提问于2014-01-03
得票数 3
回答已采纳
2
回答
如何将视图数组添加到布局kotlin
android
、
kotlin
、
layout
、
view
视图被添加,但没有
显示
。val container:LinearLayout=findViewById(R.id.container) var cards= arrayOfNulls<
FrameLayout
>(10) for(i in 0 until
浏览 3
提问于2022-09-23
得票数 -1
2
回答
安卓AdMob -onReceivedAd命中,但未
显示
广告
android
、
admob
我将我
的
AdMob代码实现到我
的
XML文件中,如下所示: android:layout_width="fill_parent" <
FrameLayout
;但是,什么都不
显示
。我
的
AdMo
浏览 0
提问于2011-07-05
得票数 2
回答已采纳
2
回答
在CalendarView和
FrameLayout
中使用ScrollView
android
、
xml
我正在寻找一种在CalendarView和
FrameLayout
中使用ScrollView
的
方法。我
的
第一个想法是这样
的
: .... ...</ScrollView> 但是由于某种原因,XML没有
显示
FrameLayout
。但是,ScrollView非常重要,我使用
FrameLayou
浏览 0
提问于2019-08-25
得票数 0
回答已采纳
1
回答
Admob横幅广告
显示
高度在用andengine制作
的
android游戏中
不正确
。
android
、
android-layout
、
admob
、
andengine
我已经在我
的
安卓游戏构建中实现了admob \ GoogleMobileAdSDK和andengine。广告正在加载到游戏中,但在打开应用程序后第一次没有正确
显示
。但是当我退出应用程序活动时,比如点击一个add或者进入google,然后回到应用程序,它就开始正确地
显示
它了。所以,基本上,当我打开应用程序时,广告
的
宽度
是全宽
的
,但几乎有一半高。如果点击广告,进入广告链接,然后按下“后退”按钮回到我
的
应用程序中,广告具有完全
宽度
的
全高度。
浏览 1
提问于2014-03-07
得票数 1
回答已采纳
1
回答
我如何才能使用这个背景图像
的
所有高宽比?
android
、
image
、
android-layout
、
background
、
aspect-ratio
我在一个背景中有一个像这样
的
图像:这张图片被用作我所有级别游戏
的
背景。每一层都画在蓝色
的
区域上。我想保持固定
的
纵横比
的
蓝色区域,改变大小
的
红边,以避免
显示
给用户未使用
的
像素他们
的
屏幕。所有手机
的
绿色区域必须固定为80 be。然后,我必须在我
的
布局中添加一个视图( GLSurfaceView),使其完全适合蓝色区域。因此,我
的
Android游戏
的
所有级别
浏览 2
提问于2013-10-20
得票数 0
19
回答
以编程方式获取布局
的
高度和
宽度
android
、
android-layout
我设计了一个布局,其中LinearLayout有两个子LinearLayout和
FrameLayout
,在每个子程序中我都有不同
的
视图。我只想测量
FrameLayout
的
高度和
宽度
,这样我才能达到我
的
目的。);都以0
的
形式返回值
FrameLayout
fr=(
FrameLayout
)findviewbyid(R.id.fr); hei
浏览 21
提问于2014-02-21
得票数 85
回答已采纳
2
回答
将
FrameLayout
高度与其中
的
ImageView匹配
android
、
height
、
imageview
、
android-framelayout
在我
的
布局中,我有一个包含2个ImageViews
的
FrameLayout
。一次
显示
一个ImageView,并通过3D旋转动画在ImageViews之间进行更改。> 我
的
xml
的
问题是,它在
FrameLayout
中
的
ImageView上方和下方留下了一些空白,即使我没有给它指定任何上边距或下边距/填充。我在
FrameLayout
中使用
的
ImageViews具有相同
的
高度。我希望<em
浏览 0
提问于2012-08-23
得票数 3
1
回答
以编程方式将MATCH_PARENT用于
FrameLayout
中
的
RelativeLayout
android
、
android-layout
、
android-relativelayout
、
android-framelayout
、
fill-parent
FrameLayout
正确地填充了父视图,但是里面的RelativeLayout没有
显示
出来。应该是黑色
的
,应该填充父级,但不是。奇怪
的
是,如果我以像素为单位指定
宽度
和高度,而不是使用MATCH_PARENT,就会出现RelativeLayout。
FrameLayout
时不能使用MATCH_PARENT?或者也许HorizontalScrollView只支持拥有固定
宽度
和高度
的
子代?
浏览 4
提问于2014-02-17
得票数 6
1
回答
底部导航视图中
的
视图移动到左侧
android
、
xml
、
android-fragments
、
layout
我
的
布局
宽度
也是匹配
的
,父级。当我使用
FrameLayout
时,它完全移动到左侧,看起来像一个列。attr/actionBarSize"</LinearLayout> Dashboard.xml-
FrameLayout
<
FrameLayout
xmlns:
浏览 0
提问于2018-02-23
得票数 0
1
回答
用户触摸时
的
新图像
android
、
touch-event
、
motionevent
我
的
问题是,有没有什么功能,以
显示
图像从绘图到屏幕。顺便说一下,我可以在我触摸
的
坐标上移动相同
的
图像,我只需要将新图像放置在我触摸
的
坐标上。下面是我
的
代码: protected void onCreate(Bundle savedInstanceState
浏览 2
提问于2015-12-15
得票数 0
2
回答
FrameLayout
中
的
“android:foreground”和“android:foreground”对外观有什么影响?
android
、
android-framelayout
FrameLayout
具有android:foreground、android:foregroundGravity和android:measureAllChildren属性。我尝试过这些属性,但无法弄清楚它们如何影响布局
的
外观或它们如何工作。<
FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schema
浏览 0
提问于2016-01-27
得票数 12
回答已采纳
2
回答
FrameLayout
内部RelativeLayout未
显示
java
、
android
、
android-layout
在Eclipse中
的
图形布局中,它看起来和预期
的
一样,但是,当我在一个真正
的
设备中调试时(这里是HTC VAndroid4.0.3),
FrameLayout
根本没有出现(但是它所占据
的
区域是可见
的
)。://schemas.android.com/tools"android:layout_height="130dp" > <
浏览 5
提问于2014-03-06
得票数 1
1
回答
如何避免重叠
的
TabWidget布局?
android
、
layout
、
android-layout
、
tabs
、
android-tabhost
我有这样一个TabHost/TabWidget布局:蓝色
的
盒子是一个
FrameLayout
。我
的
RelativeLayout在
FrameLayout
里面。RelativeLayout
的
宽度
/高度为fill_parent,
FrameLayout
为fill_parent
宽度
和445 to高度,因为这是从父级
的
底部到TabWidget
的
底部
的
高度。那么,如何将
Fra
浏览 0
提问于2012-03-09
得票数 0
回答已采纳
0
回答
如果parent大于650dp,则将Linearlayout
宽度
设置为650dp,否则与parent匹配
android
、
android-layout
我在
FrameLayout
中创建LinearLayout,LinearLayout需要在
FrameLayout
中居中,但LinearLayout
的
宽度
需要如下更改:如果父
FrameLayout
超过650dp如果parent
FrameLayout
小于650dp,则将Lineralyout
宽度
设置为与parent匹配。父母
的
FrameLayout
宽度
会随着方向
的
改变而改变,我试着用OnLayoutCh
浏览 3
提问于2017-12-01
得票数 1
2
回答
如何根据设备屏幕大小,16:9,1:1,3:2,2:1,4:3,按相对布局
的
百分比设置图像视图
android
、
android-imageview
、
scale
、
aspect-ratio
、
android-constraintlayout
我有一个图像视图来
显示
一个图像,我想使用以下比例(16:9,1:1,3:2:2,2:1,4:3 .I )来裁剪图像,这样用户可以通过单击按钮将图像裁剪到下面。如何根据不同屏幕大小
的
设备执行此操作。我使用以下代码片段获得设备屏幕
的
高度和
宽度
getWindowManagerheight = displaymetrics.heightPixels; int width
浏览 4
提问于2016-03-30
得票数 3
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
为什么有宽度的多段线和标注斜线会显示空心?
做一个高一致性、高性能的Flutter动态渲染,真的很难么?
Adobe Photoshop CC 2018 特别版
android 窗口绘制的一些总结
滴滴DoKit For Flutter正式开源,功能及核心实现解读
热门
标签
更多标签
云服务器
即时通信 IM
ICP备案
对象存储
实时音视频
活动推荐
运营活动
广告
关闭
领券