Back to project page taxitwin-app.
The source code is released under:
GNU General Public License
If you think the Android project taxitwin-app listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package kimle.michal.android.taxitwin.view; //w w w. ja v a 2 s .c o m import android.content.Context; import android.util.AttributeSet; import android.view.View; import android.widget.AutoCompleteTextView; public class TaxiTwinAutoCompleteTextView extends AutoCompleteTextView { private View superView; public TaxiTwinAutoCompleteTextView(Context context, AttributeSet attrs) { super(context, attrs); setFocusableInTouchMode(true); setFocusable(true); setOnClickListener(new OnClickListener() { public void onClick(View v) { setCursorVisible(false); setCursorVisible(true); } }); } public void setSuperView(View view) { superView = view; } @Override public View getRootView() { if (superView == null) { View parent = this; while (parent.getParent() != null && getParent().getParent() instanceof View) { parent = (View) parent.getParent(); } return parent; } return superView; } }