TextBox Inside TabHost isn't clickable
Posted
by
agam360
on Stack Overflow
See other posts from Stack Overflow
or by agam360
Published on 2012-03-31T17:26:01Z
Indexed on
2012/03/31
17:29 UTC
Read the original article
Hit count: 471
Here is my code:(main.xml -layout)
<TabHost
android:id="@android:id/tabhost"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<LinearLayout
android:id="@+id/linearLayout2"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
>
<TabWidget
android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
</TabWidget>
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<MultiAutoCompleteTextView
android:id="@+id/txtCode"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="0.25"
android:capitalize="none"
android:focusable="true"
android:focusableInTouchMode="false"
android:gravity="top|left"
android:text="@string/strtxtCode"
android:textSize="26dp"
android:textStyle="bold"
android:typeface="normal" />
<MultiAutoCompleteTextView
android:id="@+id/txtCodeHTML"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="0.25"
android:capitalize="none"
android:focusable="true"
android:focusableInTouchMode="false"
android:gravity="top|left"
android:text="@string/strtxtCode2"
android:textSize="26dp"
android:textStyle="bold"
android:typeface="normal" />
</FrameLayout>
</LinearLayout>
</TabHost>
When I try to click(touch) the text-box, it does nothing.
What should I do in order to fix this?
© Stack Overflow or respective owner