Posts

Showing posts with the label Hide

Bootstrap 4 Responsive Utilities Visible / Hidden Xs Sm Lg Not Working

Answer : With Bootstrap 4 .hidden-* classes were completely removed (yes, they were replaced by hidden-*-* but those classes are also gone from v4 alphas). Starting with v4-beta, you can combine .d-*-none and .d-*-block classes to achieve the same result. visible-* was removed as well; instead of using explicit .visible-* classes, make the element visible by not hiding it (again, use combinations of .d-none .d-md-block). Here is the working example: <div class="col d-none d-sm-block"> <span class="vcard"> … </span> </div> <div class="col d-none d-xl-block"> <div class="d-none d-md-block"> … </div> <div class="d-none d-sm-block"> … </div> </div> class="hidden-xs" becomes class="d-none d-sm-block" (or d-none d-sm-inline-block ) ... <span class="d-none d-sm-inline...

Android Hide Keyboard Not Working - Cannot Hide Soft Keyboard

Answer : Changing HIDE_IMPLICIT_ONLY to 0 did it (after I changed to hideSoftInputFromWindow() from of hideSoftInputFromInputMethod() ). However I'm not sure why HIDE_IMPLICIT_ONLY isn't working since I am not explicitly opening the keyboard with a long press on Menu. Another option to prevent it from activity in AndroidManifest.xml file android:windowSoftInputMode="stateAlwaysHidden" - This method will prevent loading/showing keyboard when the activity is loaded. But when you click the editable component like edittext the keyboard will open. perfect for my requirement. <activity android:name=".Name" android:label="@string/app_name" android:windowSoftInputMode="stateAlwaysHidden"> 1.first bind your edit text token with keyboard and open i.e inputMethodManager.showSoftInput(_edittext, 0); //here _edittext is instance of view 2.keyboard will get hidden automatically if the edit...