㈠ android java 文字图片混排
首先,你的会android的 线性布局Linearlayout 方便排版,ScrollView 布局时可以滑动的!
你的知道listview 可以输出循环,但是在ScrollView 中需要重写。
还是参考代码吧
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical "> //vertical 是垂直,horizontal 是水平
<ImageView
android:id="@+id/photo1"
android:layout_width="55dp"
android:layout_height="55dp"
android:layout_margin="5dp"
android:src="@drawable/plan1"/>
<TextView
android:id="@+id/title1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="训练须知"
android:textSize="25dp"
android:textColor="@color/cbrown"
android:layout_gravity="center"
android:layout_marginLeft="10dp"/>
</LinearLayout>
㈡ 有什么软件可以做这种图上带字的,功能强大点的并且支持安卓系统的
文字的话在任何可支持后期的设备上作图软件都可以的,关键是要有齐全的设计字体包或者有你想要的字体!电脑做是最佳的选择,我电脑自己安装的字体包就好几个G了。
㈢ android 中写入几个图片 点击图片后有相应的文字介绍该图片 该怎么写急急。。。。。。。
你想要什么效果呢。。。如果是随便,就弄个textview组件setText就行了。
如果想要弹出效果就用builder。具体代码如下:
Builder builder=new AlertDialog.Builder(this);
builder.setMessage("这个图片OOXXXXX");
builder.setPositiveButton("确定", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int whichButton) {
dialog.cancel();
}
}).create().show();
把这段代码放进放图片的view的点击事件内就ok了。
点击事件不用我说了吧。。。。on什么什么的。。。自己看相应的需求选择监听事件吧。
㈣ android怎样实现在图片上任意位置添加文字 要代码 急求。。
android在图片上任意位置添加文字,可以使用canvas类进行操作,实例如下:
@Override
protectedvoidonDraw(Canvascanvas)
{
super.onDraw(canvas);
canvas.drawBitmap(m_LogInBmp,null,m_LogIndst,m_txBackPaint);
floattleft=m_LogIndst.left+(m_LogIndst.right-m_LogIndst.left-FontWidth*m_TextLogIn.length())/2;
floatttop=m_LogIndst.top+(m_LogIndst.bottom-m_LogIndst.top-FontHeight)/2+FontHeight;
canvas.drawText(m_TextLogIn,tleft,ttop,mLogInPaint);
}
㈤ 手机上有没有软件可以给图片添加文字
1、ypic
《Typic》是一款帮助你把图片和文字结合起来的App。相比其他同类App,Typic最突出的特点是上手非常容易:将图文合成的操作分步完成,新用户可以专注于当前的操作,不会被其他功能分心。
2、美图秀秀
美图秀秀是2008年10月8日由厦门美图科技有限公司研发、推出的一款免费图片处理的软件,有iPhone版、Android版、PC版、Windows Phone版、iPad版及网页版,致力于为全球用户提供专业智能的拍照、修图服务。
3、天天P图
天天P图为全能实用美图类App,由腾讯出品。包括美化图片、自然美妆、疯狂变妆、魔法抠图等七个模块。简单实用的图片编辑功能,让手机也可轻松制作单反级效果;多款新潮妆容,瞬间打造出精致美颜。
4、玩图
玩图是一款APP,可以让用户制作GIF动画, 还能加滤镜和动态相框, 让呆板的照片瞬间跃然纸上, 让你显得很酷, 与众不同。并且能一键分享到新浪微博, 腾讯微博,人人网3大社区。
5、简图安卓版
简图是一款非常好用的图片处理app,在发送朋友圈的时候总觉得图片太单调无法表达内心的意思,下载简图安卓版app可以为你的图片加上心情文字,操作简单傻瓜式一键操作,打造你的文艺范图片。
㈥ Android如何在Html中插入图片和文字
android在html插入图片和文字的方式如下:
叫前端工程师,设计好html界面,里面已经插入了图片和文字。
将所有的html文件和css文件放到android工程的asserts文件夹下,在代码中就可以加载文件夹下的所有html文件。
㈦ android 图片上加文字 并且文字的中心点和图片一致怎么做
他这个图片是.9的图片
设置图片 android:layout_gravity="center_horizontal"
你的文字也需要居中对齐
㈧ android在一张图片相应位置显示字的布局
1、在一张图片的任意位置显示文字,使用RelativeLayout布局,俗称相对布局,是在Android开发中使用得最多的一种布局方式,比如在图片的下边栏显示一行文字,代码如下:
<ImageView
android:id="@+id/imageview_001"
android:layout_width="match_parent"
android:layout_height="120dp"
android:layout_alignParentTop="true"
android:src="@drawable/ic_launcher"
/>
<TextView
android:layout_width="match_parent"
android:layout_height="20dp"
android:layout_marginTop="100dp"
/>
更多Android例子,网络一下就知道了,平时也做点学习,TeachCourse比较适合初学者,谢谢采纳!
㈨ android 安卓 类似ONE卡片页(包含图片文字等)怎么实现
Android5.0中向我们介绍了一个全新的控件–CardView,从本质上看,可以将CardView看做是FrameLayout在自身之上添加了圆角和阴影效果。请注意:CardView被包装为一种布局,并且经常在ListView和RecyclerView的Item布局中,作为一种容器使用。
下面例子来源于android学习手册, android学习手册包含9个章节,108个例子,源码文档随便看,例子都是可交互,可运行,源码采用android studio目录结构,高亮显示代码,文档都采用文档结构图显示,可以快速定位。360手机助手中下载,排在第四个。
CardView应该被使用在显示层次性的内容时;在显示列表或网格时更应该被选择,因为这些边缘可以使得用户更容易去区分这些内容。
使用CardView
首先,假设你的布局如同下面的形式:
<FrameLayout xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content"> <!-- Main Content View --> <RelativeLayout> ... </RelativeLayout> </FrameLayout>
为了使用上面的布局方式来创建一个卡片,首先你需要导入支持的依赖库(android-support-v7-cardview的jar包)在你的build.gradle文件中。
dependencies { ... compile 'com.android.support:cardview-v7:21.0.2' }
现在将FrameLayout替换为CardView,
<android.support.v7.widget.CardView xmlns:card_view="http://schemas.android.com/apk/res-auto" xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content"> <!-- Main Content View --> <RelativeLayout> ... </RelativeLayout> </android.support.v7.widget.CardView>
就是这样!使用依赖库能够保证你的程序稳定的兼容之前的版本;尽管在AndroidL和之前的Android版本中对其处理方式有所不同。
㈩ 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"
android:text="这是一个测试数据"
/>
向这样文字就在图片上面