腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
2
回答
LinearLayout
中心
、
、
我对
LinearLayout
中的对齐有一点小问题。下面是我的代码(从id,text,src中删除):<
LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="verticalandroid:layout_height="fill_par
浏览 2
提问于2010-07-26
得票数 4
1
回答
如何在Android AppCompat工具栏中将活动添加到后台堆栈中?
、
、
试图在Android中对TextView进行居中,但是当有一个视图添加到后台堆栈时,就失去了
中心
位置。似乎后项不是工具栏的一部分,这会导致问题。-- This is a centered title --> android:layout_width="fill_parent"/white" style="@style/TextAppearance.AppCompat.Widget.ActionBar.Title.
浏览 1
提问于2015-11-03
得票数 2
回答已采纳
1
回答
如何在TextView中使用
LinearLayout
中的属性重力
、
、
、
、
A:
LinearLayout
,orientation=HORIZONTAL,重力,A=顶部,
中心
或底部。B:
LinearLayout
\ orientation=VERTICAL,重力B=左,
中心
或右。C: TextViewA.setGravity(重力A);结果重力:
浏览 0
提问于2018-05-10
得票数 0
2
回答
Android ImageView按重量大小,而不是以父
LinearLayout
为
中心
、
、
为了满足条件1,我创建了一个容器
LinearLayout
(水平方向),设置它的weightSum = 1,然后用我想要的百分比(比如0.5 )嵌入我的ImageView。这行得通!布局文件: android:orientation>在我看来,这是一个丑
浏览 0
提问于2013-08-29
得票数 8
回答已采纳
1
回答
当我将ImageView的可见性设置为
LinearLayout
时,它的一个子级仍然存在,另一个则在android中运行。
、
、
、
它有一个ImageView,它被约束到父( top和start)和一个
LinearLayout
,它被约束到这个ImageView(从上到上,从开始到结束,从下到下)。layout_constraintStart_toStartOf="parent" android:layout_height=&q
浏览 1
提问于2020-09-13
得票数 1
回答已采纳
1
回答
Android -布局不对中
、
、
、
我很困惑,这应该是
中心
,但事实并非如此。public void addTableImage(String imageName,
LinearLayout
L){ ImageView newImage = new ImageView(
浏览 4
提问于2014-01-08
得票数 0
回答已采纳
1
回答
虚拟键盘出现时调整组件
、
、
、
、
> android:layout_width="match_parent" android:orientation="vertical" > <
LinearLayout
浏览 1
提问于2014-02-28
得票数 1
1
回答
线性布局中图像的
中心
化
、
<
LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="0dp"
浏览 2
提问于2014-01-25
得票数 1
回答已采纳
5
回答
LinearLayout
内部的
中心
对准
、
、
、
我需要把我的信息和时间与屏幕的
中心
对齐。我的代码 android:layout_width=android:textSize="@dimen/system_msg_text_size
浏览 6
提问于2014-06-23
得票数 1
回答已采纳
3
回答
LinearLayout
中的
中心
按钮
、
>android:layout_width="fill_parent"android:orientation="vertical" > android
浏览 0
提问于2013-07-07
得票数 16
回答已采纳
1
回答
如何在相对布局内垂直和水平地将线性布局
中心
化
、
我试着在一个相对的布局中,以垂直和水平的
中心
,一个线性的布局。 android:layout_height="match_parent" > android:textSize="20dp&qu
浏览 2
提问于2015-12-25
得票数 2
回答已采纳
1
回答
根
LinearLayout
不表示
中心
、
、
> xmlns:tools="http://schemas.android.com
浏览 2
提问于2015-10-30
得票数 0
回答已采纳
5
回答
安卓-
LinearLayout
中水平居中的TextView
、
、
、
我有以下基本布局 xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" <
LinearLayo
浏览 1
提问于2011-10-05
得票数 114
回答已采纳
2
回答
如何将baselineAligned设置为false提高
LinearLayout
中的性能?
、
、
我只是在用xml构建一些UI,Lint给了我一个警告,并说要将android:baseline准直设置为false,以提高ListView的性能。布局性能:查找具有权重的LinearLayouts,您应该在其中设置android:baselineAligned="false“以获得更好的性能,还可以找到嵌套权重可能导致性能问题的情况。
浏览 1
提问于2012-02-16
得票数 228
回答已采纳
3
回答
如何滚动到HorizontalScrollView子代的
中心
?
、
、
我需要滚动到HorizontalScrollView的childView(TextView)的
中心
。我已经通过使用下面的代码获得了
中心
子视图,现在我想将箭头调整到该子视图的精确
中心
。在这里,我做的是,我拿了一个HorizontalScrollView,里面有一个LineaerLayout,在
LinearLayout
里面,我有TextViews。android:background="@drawable/mergethree2" android:scrollbar
浏览 0
提问于2012-09-14
得票数 9
回答已采纳
1
回答
用三列制作响应Gridview图像
、
、
、
、
> android:id="@+id/
linearLayout
1="center" android:textStyle="bold" > <
浏览 2
提问于2015-10-31
得票数 0
2
回答
layout_gravity与重力垂直和水平方向的差异
、
、
我有一个TextView在一个
LinearLayout
。<
LinearLayout
android:layout_height="50dp" android:text="text" android:textSize=
浏览 3
提问于2020-09-05
得票数 0
回答已采纳
2
回答
如何删除两个ImageViews之间的空间?
、
我的屏幕看起来像这样我想这样做 <
LinearLayout
android:layout_heightandroid:paddingTop="15dp" android:src="@drawable/options" /> </
LinearLayout
浏览 4
提问于2013-08-20
得票数 0
回答已采纳
2
回答
使用
Linearlayout
在屏幕
中心
设置项目
、
、
我使用
Linearlayout
作为我的根布局视图,现在我想让我的图像视图设置在我的screen.But的
中心
,因为有很多其他的项目在中,所以我很难使用“android:gravity=”
中心
“”来完成我的功能layout.xml的代码如下:<RelativeLayout/><ImageView/> </
LinearLayout
>
浏览 0
提问于2013-05-29
得票数 0
2
回答
LinearLayout
中的
中心
图像按钮
、
> xmlns:app="http://schemas.android.commatch_parent" android:layout_marginTop="1dp&qu
浏览 1
提问于2017-09-24
得票数 0
回答已采纳
点击加载更多
热门
标签
更多标签
云服务器
ICP备案
云点播
对象存储
即时通信 IM
活动推荐
运营活动
广告
关闭
领券