如何在android中更改listview的文本大小 [英] how to change the textsize of listview in android

查看:143
本文介绍了如何在android中更改listview的文本大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Android新手。我在Android中使用Webservice创建了Listview。在listview中,我有四列和六行。我想更改listview中列标题值的字体大小..这可能意味着。帮助我..谢谢提前..

Am New To Android . I created Listview Using Webservice in Android . In listview I have Four columns And Six Rows. i Want to change the font Size of the column header value in my listview .. iS it possible means . help me ..Thanks in Advance..

推荐答案





首先创建一个单独的布局xml Custom Listview的文件,根据您的listview行,为您的xml文件添加android视图(如TextViews,Buttons)。对于每个视图,有一个名为

android:textsize =18sp的属性。根据您的要求更改文本大小...
Hi,

First Create a separate Layout xml file for Custom Listview, based on your listview rows, add android views(like TextViews,Buttons) for your xml file. For Each view there is property called
android:textsize="18sp". Change text size according your requirement...


无法在编码中为整行设置文本大小。可以在编码或xml文件中为每个textview设置文本大小。
It is not possible to set textsize for entire row in Coding. Possible to set textsize for each textview either in coding or xml file.


这篇关于如何在android中更改listview的文本大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆