Friday, June 14, 2013

[android-developers] UI Automator testing of AutoCompleteTextView

Hi,

I have an AutoCompleteTextView control defined as follows:

  <AutoCompleteTextView

    android:id="@+id/autocomp"

    android:layout_width="fill_parent"

    android:layout_height="wrap_content"

    android:layout_below="@+id/title_bar"

    android:layout_toLeftOf="@+id/new_user_button"

    android:background="@drawable/search_bg"

    android:paddingLeft="20dip"

    android:paddingTop="10dip"

    android:layout_margin="0dip"

    android:singleLine="true"

    android:hint="@string/user_name_hint"

    android:dropDownAnchor="@+id/autocomp"

    android:completionThreshold="2"

    android:textColor="@color/dark_text"

    android:cacheColorHint="@color/transparent"

    android:dropDownSelector="@color/white" />


I am using the uiautomatorviewer application to identify the element to be used when selecting a result from the AutoCompleteTextView, but currently I don't see anything in the view hierarchy.

I was wondering if anybody has seen a similar issue and if so is there a solution to this?

Many thanks for your help in advance.

Alan

--
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate