how to add an icon in textfield
@Mansoor_Sadiq the easiest way would be to use the ‘background’ property.
Upload the icon into the assets manager
Select the text field
Set the size/position of the icon
in px from left (or right) so it doesn’t move side to side if field size changes
and 50% top so it’s always in the middle vertically.
Select ‘no repeat’ (tile section of background)
- Add the appropriate amount of padding in the field to prevent text from overlapping the icon. (background left/right offset you set previously + size of icon + couple more px)
Test and done.