This screen contains button. When we click it we go to second screen.
Second screen:
Using xml Syntax Highlighting
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="horizontal"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent">
- <ImageButton
- android:id="@+id/button_1"
- android:focusableInTouchMode="true"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:src="@drawable/calc_0_f"/>
- <ImageButton android:id="@+id/button_2" ... />
- <ImageButton android:id="@+id/button_3" ... />
- <ImageButton android:id="@+id/button_4" ... />
- </LinearLayout >
Parsed in 0.002 seconds, using GeSHi 1.0.8.4
onCreate#
Using java Syntax Highlighting
- findViewById(R.id.button_3).requestFocus();
Parsed in 0.030 seconds, using GeSHi 1.0.8.4
When I click the left button then the focus moves to R.id.button_1 but it should be moved to R.id.button_2.
PS: when i launch second screen directly the focus work as expected.
Thanks in advance!




