解决方案 »
- 如何用显示listview点击后的单选背景效果
- 关于view下面的invalidate函数
- 请问各位大侠,关于Intent使用问题
- 有人做过android下的库吗?
- Android 监控短信发送
- The content of the adapter has changed but ListView did not receive ...
- 安卓与远程数据的传送
- Android JUnit单元测试的疑问
- 如何将SQLSERVER中的image类型的图片放到安卓端的LISTVIEW
- ListView遇到多个editview的棘手问题
- android,xmpp注册的时候怎么同时创建VCard
- 如何下载android SDK?
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ImageView
android:id="@+id/iv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/ic_launcher"
android:layout_alignParentRight="true"
/>
<TextView
android:layout_toLeftOf="@id/iv"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:singleLine="true"
android:ellipsize="end"
android:text="我我 我我 我我我我我我 我我我我我我 我我我我我我 我我我我我我 我我我我我我 我我我我我我 我我我我我我 我我我我我我 我我我我我我 我我我我我我 我我我我我我 我我我我我我 我我我我我我我我"
/>
</RelativeLayout>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal" >
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:drawableRight="@drawable/ic_launcher"
android:singleLine="true"
android:ellipsize="end"
android:gravity="center"
android:text="哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈"
/>
</LinearLayout>
如果是多个imageview,或者其他的控件,就不能用这个..
android:layout_width="wrap_content"
android:layout_height="wrap_content" > <TextView
android:id="@+id/textView01"
android:layout_width="parent.width - pic.width"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:singleLine="true" /> <ImageView
android:id="@+id/imageView01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:contentDescription="@string/delete"
android:src="@drawable/ic_launcher" /></RelativeLayout>
TableLayout可以...结贴给分了...