MaterialChipsInput icon indicating copy to clipboard operation
MaterialChipsInput copied to clipboard

Prevent the focus getting on start

Open mstup opened this issue 8 years ago • 7 comments

Is there any way to control the focus getting for the component on application start ? For example in demo application, let it keyboards appears after user has clicked on the component.

mstup avatar May 05 '17 20:05 mstup

Have you tried to do it by adding this on the parent layout ?

android:descendantFocusability="beforeDescendants"
android:focusableInTouchMode="true"

pchmn avatar May 09 '17 13:05 pchmn

It doesn't work for me.

Is there any sense in that code (I think this is root of case): https://github.com/pchmn/MaterialChipsInput/blob/master/library/src/main/java/com/pchmn/materialchips/adapter/ChipsAdapter.java#L190

mstup avatar May 09 '17 15:05 mstup

Sorry for the delay. I will look into it !

But yeah, it seems non essential

pchmn avatar May 18 '17 08:05 pchmn

Would be really helpful if you can change it/add a parameter to disable it

akuma06 avatar Jul 18 '17 23:07 akuma06

@pchmn any progress about this?

krisnamargonoo avatar Sep 06 '17 07:09 krisnamargonoo

Still no changes?

DamjanMilekic avatar Nov 30 '17 11:11 DamjanMilekic

Put this into your onCreate

chipsInput.clearFocus();

or inside onCreate and viewThreeObserver

nicolasrodf avatar Oct 09 '20 21:10 nicolasrodf