Java Code Examples for android.view.inputmethod.EditorInfo.TYPE_TEXT_FLAG_MULTI_LINE

The following are Jave code examples for showing how to use TYPE_TEXT_FLAG_MULTI_LINE of the android.view.inputmethod.EditorInfo class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: VirtualHook   File: RemoteViewsFixer.java   View Source Code Vote up 5 votes
private boolean isSingleLine(TextView textView) {
    boolean singleLine;
    try {
        singleLine = Reflect.on(textView).get("mSingleLine");
    } catch (Exception e) {
        singleLine = (textView.getInputType() & EditorInfo.TYPE_TEXT_FLAG_MULTI_LINE) != 0;
    }
    return singleLine;
}
 
Example 2
Project: TPlayer   File: RemoteViewsFixer.java   View Source Code Vote up 5 votes
private boolean isSingleLine(TextView textView) {
    boolean singleLine;
    try {
        singleLine = Reflect.on(textView).get("mSingleLine");
    } catch (Exception e) {
        singleLine = (textView.getInputType() & EditorInfo.TYPE_TEXT_FLAG_MULTI_LINE) != 0;
    }
    return singleLine;
}
 
Example 3
Project: container   File: RemoteViewsUtils.java   View Source Code Vote up 5 votes
private boolean isSingleLine(TextView textView) {
	boolean singleLine;
	try {
		singleLine = Reflect.on(textView).get("mSingleLine");
	} catch (Exception e) {
		singleLine = (textView.getInputType() & EditorInfo.TYPE_TEXT_FLAG_MULTI_LINE) != 0;
	}
	return singleLine;
}
 
Example 4
Project: container   File: RemoteViewsFixer.java   View Source Code Vote up 5 votes
private boolean isSingleLine(TextView textView) {
	boolean singleLine;
	try {
		singleLine = Reflect.on(textView).get("mSingleLine");
	} catch (Exception e) {
		singleLine = (textView.getInputType() & EditorInfo.TYPE_TEXT_FLAG_MULTI_LINE) != 0;
	}
	return singleLine;
}