Android-Bootstrap icon indicating copy to clipboard operation
Android-Bootstrap copied to clipboard

edittext with icon not working in v2.0

Open Im-PJ opened this issue 8 years ago • 3 comments

I was using bootstrapedittext and bootstrapbutton with left aligned icons using bootstrap:bb_icon_left but this doesn't work anymore. What is the equivalent of this in v2.0? couldn't find it in sample code.

Im-PJ avatar Oct 11 '15 20:10 Im-PJ

try in this syntax

app:bootstrapText="{fa_play} Weight 2 {fa_group}"

hyorkim11 avatar Oct 11 '15 23:10 hyorkim11

@hyorkim11 It doesn't work for edittext but works for buttons.

Im-PJ avatar Oct 12 '15 05:10 Im-PJ

This is a bug/oversight in BootstrapButton/EditText, it should be possible to provide left/right-aligned icons via Spans that aligns the text. EditText doesn't currently support icons, this might change when InputGroups are implemented. In the meantime you can try & emulate this by using a LinearLayout & AwesomeTextView.

jamie-beardedhen avatar Oct 13 '15 11:10 jamie-beardedhen