Log in or register to post comments

Show text over the video

April 12, 2013 - 12:36am #1

hi,

       I want to know how to add text over the video is playing. like "single tapped go web link " & " double tapped go  fullscreen mode " how to add this quote? any one can help me.

Show text over the video

February 12, 2014 - 11:45am #7

Ok, I'll take a look, thanks!

Show text over the video

February 12, 2014 - 6:27am #6

This depends on the specific LayoutParams you are using to add the TextView (see addContentView);

but this is out of scope for Vuforia, you should really look at the Android developer guide on how to best implement your desired layout.

http://developer.android.com/guide/topics/ui/declaring-layout.html

 

Show text over the video

February 12, 2014 - 4:33am #5

Hi,

I have managed to place text over the video following this example but I have problems setting the position of the text on the screen, I have two textviews but they overlap each other on the top-left corner and can't find the way to move them on each corner (righ-left) of the screen. I'm wondering if you can advise me on this issue?

Thanks in advance.

Show text over the video

April 12, 2013 - 1:53am #4

Hi,

using the ImageTargets sample as a reference, you can add a simple TextView on top of your AR view by adding some code like the following in ImageTargets.java:

in the method initApplicationAR(), at the end of the function, you can add this code:

mTextView = new TextView(this);
mTextView.setText("Hello");
mTextView.setVisibility(View.VISIBLE);
addContentView(mTextView, new LayoutParams(LayoutParams.MATCH_PARENT,
                LayoutParams.MATCH_PARENT));

then, in the updateApplicationStatus(), right after the line of code  < mUILayout.bringToFront(); >  add this line:

mTextView.bringToFront(); 

Then of course you can adjust the code to place the textView differently, for instance in the center of the screen, etc., but that's about Android programming.

Show text over the video

April 12, 2013 - 12:52am #3

Hi,

       I want to  give the notification  for user to single tap to go web double tap to play Full screen mode... whatever it is. but show the Transparenttext over the video to the user?

 

Show text over the video

April 12, 2013 - 12:45am #2

Hi, do you want to show thr Text on top of the Augmneted Reality view (i.e. when you are still seeing the target in 3D ) ?

And, does the Text label needs to be located at a specific location on the screen ?

 

Log in or register to post comments