@@ -89,12 +89,14 @@ public View getView(int position, View convertView, ViewGroup parent) {
89
89
descriptionField .setInputType (InputType .TYPE_CLASS_TEXT | InputType .TYPE_TEXT_FLAG_MULTI_LINE );
90
90
descriptionField .setMinLines (1 );
91
91
descriptionField .setHint (R .string .uv_idea_description_hint );
92
+ title .setLabelFor (descriptionField .getId ());
92
93
} else if (type == CATEGORY ) {
93
94
view = inflater .inflate (R .layout .uv_select_field_item , null );
94
95
TextView title = (TextView ) view .findViewById (R .id .uv_header_text );
95
96
categorySelect = (Spinner ) view .findViewById (R .id .uv_select_field );
96
97
categorySelect .setAdapter (new SpinnerAdapter <Category >(context , Session .getInstance ().getForum ().getCategories ()));
97
98
title .setText (R .string .uv_category );
99
+ title .setLabelFor (categorySelect .getId ());
98
100
} else if (type == HELP ) {
99
101
view = inflater .inflate (R .layout .uv_idea_help_item , null );
100
102
} else if (type == TEXT_HEADING ) {
@@ -153,4 +155,12 @@ protected String getSubmitString() {
153
155
return context .getString (R .string .uv_submit_idea );
154
156
}
155
157
158
+ @ Override
159
+ public void onChildViewAdded (View parent , View child ) {
160
+ if (state == State .DETAILS && descriptionField != null )
161
+ descriptionField .requestFocus ();
162
+ else
163
+ super .onChildViewAdded (parent , child );
164
+ }
165
+
156
166
}
0 commit comments