xml - Android focus from one LinearLayout to another LinearLayout on next pressing next button -
what required change focus edittext1 linearlayout1 , linearlayout1 linearlayout2 , linearlayout2 edittext2
i not sure valid focus 1 linearlayout linearlayout
following xml file:
<scrollview android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_gravity="center" android:scrollbars="none" > <linearlayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical" > <linearlayout android:id="@+id/ll_welcome_txt" android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="center_vertical" android:orientation="vertical" > <edittext android:id="@+id/editshowername" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginleft="15dp" android:layout_marginright="15dp" android:hint="ghost event name" android:inputtype="text|textcapwords|textautocorrect|textautocomplete" > </edittext> </linearlayout> <linearlayout android:layout_width="wrap_content" android:layout_height="125dp" android:layout_gravity="center_horizontal" android:layout_margintop="12dp" > <kankan.wheel.widget.wheelview android:id="@+id/month" android:layout_width="120dip" android:layout_height="fill_parent" /> <kankan.wheel.widget.wheelview android:id="@+id/day" android:layout_width="50dp" android:layout_height="fill_parent" /> <kankan.wheel.widget.wheelview android:id="@+id/year" android:layout_width="wrap_content" android:layout_height="fill_parent" /> </linearlayout> <linearlayout android:layout_width="wrap_content" android:layout_height="125dp" android:layout_gravity="center_horizontal" android:layout_margintop="12dp" > <kankan.wheel.widget.wheelview android:id="@+id/wv_hours" android:layout_width="40dip" android:layout_height="fill_parent" /> <kankan.wheel.widget.wheelview android:id="@+id/wv_minutes" android:layout_width="40dip" android:layout_height="fill_parent" /> <kankan.wheel.widget.wheelview android:id="@+id/wv_am_pm" android:layout_width="wrap_content" android:layout_height="fill_parent" /> </linearlayout> <edittext android:id="@+id/editdurationhours" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_margin="5dp" android:layout_weight=".5" android:hint="hours" android:singleline="true" /> </linearlayout> </scrollview> here able focus edittext linearlayout using android:imeoptions="actionnext" edittext attritube not supported linearlayout..
so how can move focus 1 linear linear layout on pressing next button of device keyboard.any kind of suggestion appreciate.thanks in advance
in experience, needed both these lines focus work (especially linearlayouts).
<linearlayout ... android:clickable="true" android:focusable="true" />
Comments
Post a Comment