bun*_*hes 1 android button textview imagebutton
我想我可能会做一些愚蠢的事情,但我找不到答案.显然,以下事情不起作用,但我该怎么做?
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="+@id/date"
android:text="+@id/heading"
android:text="+@id/subheading"
android:drawableLeft="+@id/featuredimage"
/>
Run Code Online (Sandbox Code Playgroud)
我基本上是制作一篇文章按钮来代表一篇博客文章.我尝试将文本视图放在里面,但它错误地列出了结束标记并引发了错误.
创建其中一个按钮的最佳方法是什么?
不要使用Button.
使用线性/相对布局,具有以下属性:
android:clickable="true"
Run Code Online (Sandbox Code Playgroud)
在此布局中添加所有TextView或您想要的任何其他内容.
| 归档时间: |
|
| 查看次数: |
1520 次 |
| 最近记录: |