Q
添加附件图标
1
A
回答
0
该请求的一般层次结构模式是:
<FrameLayout android:width="match_parent"
android:height="match_parent">
<EditText android:width="match_parent"
android:height="match_parent" />
<ImageView android:width="wrap_content"
android:height="wrap_content"
android:margin="5dp"
android:src="@drawable/ic_attach"
android:layout_gravity="right|bottom" />
</FrameLayout>
0
在一个相对布局试试这个:
<EditText
android:id="@+id/edit_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:lines="5" />
<ImageView
android:layout_alignBottom="@+id/edit_text"
android:layout_alignRight="@+id/edit_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/attach"/>
0
我想直接的不可能的EditText但你可以为此做一些技巧。 请参阅下面的代码,它可能会帮助你。
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<EditText
android:id="@+id/editText1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="top|left"
android:minLines="10" />
<ImageView
android:id="@+id/imageView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:src="@drawable/ic_launcher" />
</RelativeLayout>
相关问题
- 1. 添加附件UpdateListItems?
- 2. 如何在JComboBox的箭头图标附近添加图标
- 3. 如何删除图标添加到图像附加
- 4. 在ASP.NET上添加附件和图片
- 5. DBContext添加/附加事件?
- 6. Broadleaf admin - 添加附加标签
- 7. 在标签中添加附加内容
- 8. jQuery附加地图标记
- 9. 附加图标链接MuPDF
- 10. mailx如何添加附件
- 11. 将附件添加到Slackbot
- 12. 添加评论附件(message_part)
- 13. 添加附件邮寄
- 14. 添加附件到订单
- 15. 添加附件到NotesDocument
- 16. 添加附件从bytearrayoutputstream
- 17. 吉拉API - 添加附件
- 18. ActionMailer - 如何添加附件?
- 19. 不能添加附件
- 20. 通过PHPMailer添加附件
- 21. mailto:无法添加附件
- 22. Trello如何添加附件
- 23. 向UITableView添加附件
- 24. 添加图标
- 25. 如何将图像视图添加为电子邮件附件?
- 26. 如何使用addon-SDK将图标添加到我的Firefox附加组件?
- 27. jquery添加类到附加图像
- 28. 在JavaScript中添加onclick事件到附加div标签
- 29. Android whatsapp附件图标
- 30. 添加附加行