Hello,

I have the following problem:
my layout includes SurfaceView (custom view with
com.components.game.MyGameView) and a RelativeLayout which includes
EditText view:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
        xmlns:android="http://schemas.android.com/apk/res/android";
        android:layout_width="fill_parent"
        android:layout_height="fill_parent">

        <com.components.game.MyGameView
                android:id="@+id/game_id"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent" />

        <RelativeLayout
                android:id="@+id/TextLayout"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:visibility="invisible"
                android:layout_alignParentBottom="true">
                <Button
                        android:id="@+id/TextOkButton"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="OK"
                        android:layout_alignParentRight="true">
                </Button>
                <EditText
                        android:id="@+id/TextEditText"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:singleLine="true"
                        android:maxLength="80"
                        android:layout_toLeftOf="@+id/TextOkButton"
                        android:focusable="true"
                        android:focusableInTouchMode="true">
                </EditText>
        </RelativeLayout>

</RelativeLayout>

I want to be able to turn "TextLayout" visibility ON from the screen
onTouch. I do get an event and I use Handler to call:
findViewById(R.id.TextLayout).setVisibility(VISIBLE)

the problem is that the TextLayout is NOT being shown (stays
INVISIBLE) but it does get an event when pressing on the area of the
EditText - it functions like it VISIBLE while staying INVISIBLE.

this problem only happens on SDK 2.3 and upper.
anyone has an idea how to solve this?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to