<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:padding="10dp">
<ListView
android:id="@+id/personLV"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />
<TextView android:id="@+id/idTV"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="1"
android:textSize="20sp"/>
<TextView android:id="@+id/nameTV"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="2"
android:text="张三"
android:textSize="20sp"/>
<TextView android:id="@+id/balanceTV"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="2"
android:text="50000"
android:textSize="20sp"/>
</LinearLayout>
分享到:
相关推荐
安卓Android源码——textView.rar
安卓Android源码——textView1.rar
安卓Android源码——textView根据长度自动换行.zip
Android源码——textView应用简单示例.zip
安卓Android源码——textView应用简单示例.zip
android 开发进阶 自定义控件 类似 TextView
a、创建一个Android项目,然后创建一个FlowLayout继承于ViewGroup: public class FlowLayout extends ViewGroup { /** 因为只在代码中直接new,所以创建这个构造方法就可以了 */ public FlowLayout(Context ...
安卓Android源码——textView显示图片的例子_TextImage.zip
这里需要在XML布局文件中为TextView设置如下几个属性。 Android:scrollbars=vertical android:scrollbarStyle=X 其中X为outsideOverlay或insideOverlay。 android:scrollbarFadeDuration=X 其中X表示滚动条从出现...
解决TextView的排版问题-自动换行
android 逐行逐字显示的textview 播放通知的字幕 逐字逐行显示。可以控制显示的次数。
移动开发技术(Android)——实验1Android开发环境搭建及简单程序实现 移动开发技术(Android)——实验1 Android开发环境搭建及简单程序实现 ⼀、实验⽬的 1.熟练掌握Android开发环境搭建步骤; 2.掌握Android应...
主要介绍了android动态布局之动态加入TextView和ListView的方法,涉及Android动态布局的实现技巧,需要的朋友可以参考下
android 设置textview中划线效果
Android TextView 去掉自适应默认的fontpadding的实现方法 最近在项目中使用textview时发现在使用Android:layout_height=”wrap_content”这个属性设置后,textview会有默认的padding,也就是fontpadding。这样就会...
Android开发教程_010_TextView的setText方法 标清
TagTextView:包含标签的TextView
我们在浏览网页时,网页的文本可以放大缩小,android两点手势,两点距离靠近时缩小,两点距离...那么若果不用android的WebView控件,单纯的TextView能否做到放大缩小呢,其实也是可以的。只要响应和处理手势事件即可。
Android自定义View来实现一个流式布局效果的TextView。
通过textview设置状态选择