Android Labels or Bubbles in EditText

前端 未结 8 1703
北恋
北恋 2020-12-02 04:47

\"enterCan someone please point me in the right direction how to do those bubbles or labels in

8条回答
  •  悲哀的现实
    2020-12-02 05:38

    To set the circle icon in the left of the EditText you can change the leftDrawable.

    You can do it on the layout xml file android:drawableRight="@drawable/search_icon" or programmatically using the setCompoundDrawablesWithIntrinsicBounds function.

    If you also want to give the bubble style, you must change the backgroud drawable by a 9-patch that have the style. here you have a tutorial for a 9-patch bubble for google maps.

    Hope it helped! :)

提交回复
热议问题