社区
Android
帖子详情
TextView放在ImageView下部(是imageview里面),大家是怎么做的
ihrthk
博客专家认证
2012-06-05 11:49:20
如题
...全文
696
9
打赏
收藏
TextView放在ImageView下部(是imageview里面),大家是怎么做的
如题
复制链接
扫一扫
分享
转发到动态
举报
AI
作业
写回复
配置赞助广告
用AI写文章
9 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
jefferyyangkai
2012-06-07
打赏
举报
回复
对,RelativeLayout也可以,我只是随便写了个布局。推荐用RelativeLayout
jordankan
2012-06-06
打赏
举报
回复
FrameLayout和RelativeLayout
ibb-yes
2012-06-06
打赏
举报
回复
为什么有这样的需求呢 ! 你直接给TextView设置一个背景就好了
ihrthk
2012-06-06
打赏
举报
回复
[Quote=引用 3 楼 的回复:]
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView android:id="@+id/online_num"
android:layout_width="match_parent"
android:layout_hei……
[/Quote]
不错,是一种很好的方法。还有没有别的方法呢?
life02
2012-06-06
打赏
举报
回复
Lz的需求说的不明确
Aria_zuo
2012-06-06
打赏
举报
回复
[Quote=引用 3 楼 的回复:]
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView android:id="@+id/online_num"
android:lay……
[/Quote]
+1
用FrameLayout就可以了~
Aria_zuo
2012-06-06
打赏
举报
回复
你是要重叠的那种效果吗?textview重叠在imageview上面?
jefferyyangkai
2012-06-06
打赏
举报
回复
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView android:id="@+id/online_num"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingTop="2px"
android:paddingBottom="2px"
android:paddingLeft="2px"
android:paddingRight="2px">
</FrameLayout>
鄙人姓胡
2012-06-06
打赏
举报
回复
需求确实有点怪,楼主用画布画上去吧,这样也还比较简单
Java版水果管理系统源码-ConstraintDemo:ConstraintLayout的演示
Java版水果管理系统源码 ConstraintLayout,让布局更优雅。 一、为什么要用ConstraintLayout 上图是网易100分的选课首页,在Banner图的
下部
是推荐类目模块,其中数学、语言、小低和小高分别是推荐类目Item。可见每个类目的子类目个数是不确定的,根据个数的不同,子类目的排列方式也不一样。 现在我们来实现Item的布局。如果用LinearLayout、RelativeLayout和FrameLayout去实现Item布局,我目前想到的最低也需要两层布局。如下所示:
<
ImageView
> <
TextView
>
<
TextView
> <
TextView
> <
TextView
>
<
TextView
> <
TextView
>
可以发现没有一种布局容器是可以单靠自己搞定这个布局的,需要嵌套不同布局。这样布局层级增加,布局计算时间也加长了。这些都是传统布局存在的问题,概括
Android实现长图展开与收起效果
主要为大家详细介绍了Android实现长图展开与收起效果,具有一定的参考价值,感兴趣的小伙伴们可以参考一下
Android实现可滑动的自定义日历控件
主要为大家详细介绍了Android实现可滑动的自定义日历控件,具有一定的参考价值,感兴趣的小伙伴们可以参考一下
android为
ImageView
使用蒙层
在android中使用ColorFilter为
ImageView
使用蒙层
Android
80,472
社区成员
91,391
社区内容
发帖
与我相关
我的任务
Android
移动平台 Android
复制链接
扫一扫
分享
社区描述
移动平台 Android
android
android-studio
androidx
技术论坛(原bbs)
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章