MCPcopy Create free account
hub / github.com/Kevinsu917/Dynamic / showInputMethod

Method showInputMethod

src/com/example/utils/MultiUtils.java:55–63  ·  view source on GitHub ↗
( Context context , View view )

Source from the content-addressed store, hash-verified

53
54 //弹出键盘
55 public static void showInputMethod( Context context , View view )
56 {
57 InputMethodManager imm = ( InputMethodManager ) context
58 .getSystemService( Context.INPUT_METHOD_SERVICE );
59 if ( imm != null )
60 {
61 imm.showSoftInput( view , 0 );
62 }
63 }
64
65 /** dip转px */
66 public static int dipToPx(Context context, int dip) {

Callers 1

onClickMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected