package nl.miraclethings.tools.ui;

/**
 * Created by arjan on 20-3-16.
 */
import android.app.Activity;
import android.content.Context;
import android.view.View;
import android.view.inputmethod.InputMethodManager;

/**
 * Created by arjan on 20-3-16.
 */
public class UIUtil {

    public static void hideKeyboard(Activity context) {
        InputMethodManager imm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE);
        imm.hideSoftInputFromWindow(context.getWindow().getDecorView().getWindowToken(), 0);
    }

    public static void showKeyboard(Context context) {
        InputMethodManager imm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE);
        imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0);

    }
}

@@ -69,16 +69,56 @@
 16.%0A */%0A
+import android.annotation.SuppressLint;%0A
 import a
@@ -813,11 +813,227 @@
 ;%0A%0A    %7D
+%0A%0A    @SuppressLint(%22DefaultLocale%22)%0A    public static String resourceUriString(Context context, int resourceId) %7B%0A        return String.format(%22android.resource://%25s/%25d%22, context.getPackageName(), resourceId);%0A    %7D
 %0A%7D%0A

Add resourceUriString