Label in a editbox in android

前端 未结 9 2291
渐次进展
渐次进展 2020-12-14 10:41

My question is, how to put a label in a editBox in android ?

Like for example, i want to put \"To:\" in editbox of a contact picke

9条回答
  •  既然无缘
    2020-12-14 11:22

    In android the label is known as TextView:

    
    
                
    
                
            
    

    EditText has no label so you need both. Thankfully ViewGroups make this relatively painless for the developer. The EditText uses fill_parent attribute so is presented tight to the "To: " label.

提交回复
热议问题