EditTag icon indicating copy to clipboard operation
EditTag copied to clipboard

how to set hint in input layout programmatically?

Open khizar-lango opened this issue 7 years ago • 4 comments

how to set hint in input layout pro programmatically i need to set hint in two different fragments using same layout how can i do this. Please guide thanks

khizar-lango avatar Sep 08 '17 13:09 khizar-lango

you can extend a method in EditTag.class to get the private variable "editText", then set the hint.

qiugang avatar Sep 10 '17 16:09 qiugang

Ok will try thanks

khizar-lango avatar Sep 11 '17 06:09 khizar-lango

@qiugang how can we access private member in extended class ( child class ). EditTag class should have getter function for editText

khizarhayat avatar Sep 15 '17 06:09 khizarhayat

set id to MEditText in xml and findviewbyid in activity, then set the hint

Eklett avatar Oct 20 '17 07:10 Eklett