33问答网
所有问题
android编程,用Imageview为界面添加了一张jpg图片为界面,请问如何在图片上添加一个
如题所述
举报该问题
推荐答案 2017-09-03
imageView上好像是不好添加组件吧。。。你一定需要一个imageView吗?如果不一定,其实可以不添加ImageView,直接在你的布局里设置背景图片为本来ImageView中要添加的图片,然后再在该布局上添加Button
温馨提示:答案为网友推荐,仅供参考
当前网址:
http://33.wendadaohang.com/zd/R4BWdccWcc55WcRWdBP.html
相似回答
android
studio Listview
如何
让文字覆盖
在图片上
答:
这个应该是布局的问题吧
,使用
相对布局,先定义图片(
imageview
),然后再定义文字(textview)<
ImageView
android
:layout_width="fill_parent"android:layout_height="fill_parent"android:src="@drawable/home2"/> <TextView android:layout_width="wrap_content"android:layout_height="wrap_content"androi...
如何在ImageView上添加
文字
答:
ImageView
中是不能写文字的 如果说你单单的只是向实现 文字覆盖图片的这个需求的话 你可以考虑使用帧布局。运行结果是字符串覆盖
在图片上
复制内容到剪贴板 代码:<?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:
android
="http://schemas.android.com/apk/res/android"android:layout_w...
安卓 编程如何
为一个
图片
加上透明度和平移两个动画
答:
Duration[long] 属性为动画持续时间 时间以毫秒为单位 fillAfter [boolean] 当设置为true ,该动画转化在动画结束后被应用 fillBefore[boolean] 当设置为true ,该动画转化在动画开始前被应用 interpolator 指定一个动画的插入器 有一些常见的插入器accelerate_decelerate_interpolator加速-减速 动画插入器accelerate_interpola...
大家正在搜
android 动态添加view
android cardview
android自定义view流程
android view绘制流程
android自定义view面试
android textview
android动态创建view
outline android
EV3内置编程port view
相关问题
android编程,用Imageview为界面添加了一张jp...
android怎么给imageview添加一个背景图
android 怎么再背景图片上添加图片
安卓在java代码中怎么添加imageView图片
android 编程怎样在图片里添加Button按钮。
android 界面中,点击一张图片,怎样使得界面上这张图片...
Android开发,怎么在imageview的上覆盖一个按钮
android设计中,从一张图片上截取一部分,如何作为背景放...