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. 添加附加行