Please do not copy and paste example since it only illustrates the
idea.
GameView is descendant of GLSurfaceView
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<com.***.GameView
android:id="@+id/game"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<requestFocus />
</com.***.GameView>
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<RelativeLayout
android:layout_width="60px"
android:layout_height="60px"
android:gravity="center"
android:layout_alignParentRight="true"
android:focusable="false"
android:focusableInTouchMode="false">
<TextView
android:id="@+id/timer_text"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:gravity="center"
android:textSize="15px"
android:textColor="#FFFFFF"
android:focusable="false"
android:focusableInTouchMode="false"/>
</RelativeLayout>
</FrameLayout>
On 3 фев, 08:06, satish bhoyar <[email protected]> wrote:
> Thanks for the reply Nightwolf ,
> But sorry i did not understood it..
> please can u tell me clearly.
>
> thanks
> sat
>
>
>
> On Tue, Feb 2, 2010 at 11:28 AM, Nightwolf <[email protected]> wrote:
> > Try to place regular view on top of your GLSurfaceView and use
> > TextView on this regular view.
>
> > On 1 фев, 14:19, satish bhoyar <[email protected]> wrote:
> > > Hi please tell me some thing about this problem...
>
> > > thanks
>
> > > On Fri, Jan 29, 2010 at 6:49 PM, satish bhoyar <[email protected]
> > >wrote:
>
> > > > Hi all,
>
> > > > I am developing the app where I want Text on GLSurfaceView. So I am
> > using
> > > > TextView on GLSurfaceView. I m able to do that properly.
>
> > > > Now problem is I want to translate both this views (TextView &
> > > > GLSufaceView) to the position where i scroll. for this I am using the
> > > > ViewGroup & onTouch method of that i am doing it, but both doesnt seems
> > > > moving together.TextView is faster than that of GLSurfaceView.
>
> > > > I think the co-ordinate system of the ViewGroup & that of the
> > GLSurfaceView
> > > > are different so it is calculation mistake but I am not sure.
>
> > > > please help
> > > > thanks.
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]<android-developers%2bunsubs[email protected]>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en