您的位置:首页 > 移动开发 > Android开发

android文字后跟图片的实现方法

2013-10-15 19:29 573 查看
<TextView

android:id="@+id/login_register_textview"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:layout_gravity="center"

android:layout_marginRight="5dp"

android:layout_marginTop="20dp"

android:drawableRight="@drawable/nohost_image_question"

android:gravity="center"

android:paddingBottom="10dp"

android:paddingLeft="10dp"

android:paddingTop="10dp"

android:text="@string/NOVICE_INTRO_TITLE"

android:textAppearance="?android:attr/textAppearanceLarge"

android:textColor="#F69D02" />

androi里只用一个TextView即可实现, android:drawableRight="@drawable/nohost_image_question"是设置文字右侧的图片。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: