Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1092933
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T23:45:22+00:00 2026-05-16T23:45:22+00:00

I am trying to merge two examples from the ApiDemos so one overlay over

  • 0

I am trying to merge two examples from the ApiDemos so one overlay over the other.
1. CameraPreview.java
2. TranslucentGLSurfaceViewActivity.java

I guess GLSurfaceView is not really necessary, I saw demos that uses a GL layer as a Camera PreviewCallback, but since I am such a noob at OpenGL, I am kind of lost. Can someone points me toward the light (figuratively speaking)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T23:45:23+00:00Added an answer on May 16, 2026 at 11:45 pm

    Instead of using the setContentView function only use the addContentView function. If you create both views in code you can just pass them as an argument. If a view is created in an xml file, create a View object by inflating the xml with:

     View.inflate(this, R.layout.XMLname, null);
    

    Then you can just add both views and you are done. The trick here is however to add them in the right order. If I recall correctly, even though the logical order might be to first add the camera preview and then the GL surfacview, you need to do it the other way around. In case I am mistaking here, it should be easy to find out the correct order with your two possible options.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to merge two main menus together, but am having problems getting the
What I am trying to achieve is to merge three strings. Two are provided
I am trying to create a new array from two current arrays. Tried array_merge,
I'm trying to merge two branches together using mercurial and there are some conflicts.
I'm trying to merge these two object but not totally sure how.. Can you
I am trying to merge multiple excel files using DataTable.Merge() option For Each fileName
I'm trying to use svnmerge.py to merge some files. Under the hood it uses
Trying to find some simple SQL Server PIVOT examples. Most of the examples that
I've been jumping from C# to Java an awful lot and the differences between
I'm trying to count up ip addresses found in a log file on two

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.