android-xml
NextFocusDown doesn’t work with AutoCompleteTextView
add this to your AutoCompleteTextView android:imeOptions=”actionNext” and it should work.
Gradient Radius as percentage of screen size
From what I´ve tested, the % does work, but not as you expected. First of all android:gradientRadius=”50″ seems to take the value as pixels 50px android:gradientRadius=”50%” is converted as if 50% = 0.5 px, try android:gradientRadius=”5000%” and you will see a 50px radius. Using %p has a similar result. Obviously this is something I hope … Read more
Using an array reference as an XML attribute for custom android view
Just going to piggyback off your question here, since your post shows up first if you google something like “array reference XML attribute custom view”, so someone might find this helpful. If you want your custom view to reference an array of strings, you can use Android’s existing android:entries XML attribute, instead of creating a … Read more
Heterogeneous GridLayout
The issue you are facing is due to inappropriate use of the GridLayout. The GridLayout is made to show its children in a grid and you are trying to override that without extending the GridLayout. While what you want may be accomplished in code (utilizing numcolumns and columnsize), it will not be useful for multiple … Read more
How to align CheckBox to the top of its description in Android
android:gravity=”top” will fix the problem: <CheckBox android:id=”@+id/register_checkbox” android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:text=”@string/register_hint” android:gravity=”top”/> Note that android:gravity is different than android:layout_gravity.
Eclipse Run button doesn’t work when Android xml file is selected
I think its due to some recent changes in ADT 21.1.0. Anyhow, to resolve this, you may configure the following in Eclipse: Window -> Preferences -> Run/Debug -> Launching -> (under Launch Operations) Always launch the previously launched application In case you want to open another project, then you need to revert this process as … Read more