try
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" > <TextView
android:id="@+id/notice_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:textColor="@color/content_text_color"
android:textSize="14sp" /> <ImageView
android:id="@+id/notice_attachment"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:src="@drawable/attachment" />
</LinearLayout>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" > <TextView
android:id="@+id/notice_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:textColor="@color/content_text_color"
android:textSize="14sp" /> <ImageView
android:id="@+id/notice_attachment"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:src="@drawable/attachment" />
</LinearLayout>
解决方案 »
- 在程序中获取文件权限信息 但文件名字中有空格 怎么处理
- gridview垂直滚动条问题
- 求助:哪位大侠知道Android1.6版本中在哪个地方启动pppd进程的
- Android程序的自动更新功能
- fakecamera求教
- 中科创达这公司如何
- android中的Html加载问题
- Activity onStop自动执行!!!!!!请教各位!!!
- Java 专利侵权案:甲骨文赢得对谷歌的上诉将引发什么问题??
- activity跳转后第二个activity,actionbar显示不全
- 我在Android2.2下开发的APP,用户说在他4.2的手机上打不开,可能是什么原因?
- android关于soap协议问题
最后用SpannableString ImageSpan解决的,还是谢谢你
这个我知道,试过了,但图标不是显示在文字结尾,而都是显示在最右边最后用SpannableString ImageSpan解决的,还是谢谢你