Java Code Examples for android.widget.TextView.getInputType()

The following are Jave code examples for showing how to use getInputType() of the android.widget.TextView 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;
}