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. 在ASP.NET上添加附件和圖片
- 4. DBContext添加/附加事件?
- 5. 添加圖標
- 6. ActionMailer - 如何添加附件?
- 7. 不能添加附件
- 8. 吉拉API - 添加附件
- 9. Trello如何添加附件
- 10. 向UITableView添加附件
- 11. 添加附件從bytearrayoutputstream
- 12. 在JavaScript中添加onclick事件到附加div標籤
- 13. Android whatsapp附件圖標
- 14. 添加附加行
- 15. Codemirror,如何添加附加組件
- 16. QueryOver - 爲Join添加附加條件
- 17. 爲MySQL查詢添加附加條件
- 18. Gmail錯誤:添加圖片附件時'cyk:無法創建本地附件'
- 19. 附加到圖像文件
- 20. 事件不附加視圖
- 21. Confluence藍圖附加組件
- 22. 將附件添加到電子郵件
- 23. 將附件添加到電子郵件
- 24. 添加附件事件Outlook AddIn
- 25. 附加標籤
- 26. 如何添加圖像作爲php HTML郵件的附件?
- 27. 添加圖片作爲附件的電子郵件
- 28. 谷歌地圖:附加折線圖標上的事件
- 29. 將附加附件添加到PouchDB文檔
- 30. 添加附件類型移動標籤在UITableViewCell