What I think you want to do is have the camera preview in the background and a layout on top with all your buttons etc. I'm assuming this is some sort of AR app To achieve this, make your preview and put it in as the background as you have done, now just make another layout to sit on top of this layout. Make it's background transparent and put all your items on that Since you say you have the Camera done fine, I'll describe the second layout Set background of this view to be transparent using android:background="@android:color/transparent So, now you can see the camera. Great!
Simply add your buttons etc. As normal onto this view and you will create the effect you're looking for EDIT Just to clarify, the second layout (the one with the buttons) would be a child of the camera preview EDIT:2 Haven't got the Android SDK with me right now, but I'll take a stab at this anyways All I did was make the Absolute inside your Camera preview layout transparent. Try that code? Xml version="1.0" encoding="utf-8"?
> The app I'm describing has the Camera preview in the linear layout. You put the absolute inside it as it's child. Set it's background to transparent so it's background is now the camera preview.
After doing all of this you append your buttons etc. To the absolute layout creating the effect I've linked in the comments below.
What I think you want to do is have the camera preview in the background and a layout on top with all your buttons etc. I'm assuming this is some sort of AR app. To achieve this, make your preview and put it in as the background as you have done, now just make another layout to sit on top of this layout. Make it's background transparent and put all your items on that.
Since you say you have the Camera done fine, I'll describe the second layout. Set background of this view to be transparent using android:background="@android:color/transparent" So, now you can see the camera. Great!
Simply add your buttons etc. As normal onto this view and you will create the effect you're looking for. EDIT Just to clarify, the second layout (the one with the buttons) would be a child of the camera preview. EDIT:2 Haven't got the Android SDK with me right now, but I'll take a stab at this anyways... All I did was make the Absolute inside your Camera preview layout transparent.
Try that code. EDIT3 Just some further clarification. The app I'm describing has the Camera preview in the linear layout.
You put the absolute inside it as it's child. Set it's background to transparent so it's background is now the camera preview. After doing all of this you append your buttons etc. To the absolute layout creating the effect I've linked in the comments below.
Doesn't it have the preview under it. I thought the preview was going to parent and the buttons the children. This seems to be the opposite?
No? – Peter Mar 26 at 1:27 You want to create some sort of effect like this: upload.wikimedia.Org/wikipedia/commons/7/73/Wikitude. Jpg no?
Where you have the Camera under and you can draw your elements over it.By doing this you have the Camera preview in the LinearLayout and when you set the absolute to being transparent the "background" becomes the camera preview and your button's and rendered on top of the camera. – Aidanc Mar 26 at 1:29 Yes thats exactly what I'm looking to do. I'm going to try to make it work now and get back to you, thanks for all your help!
– Peter Mar 26 at 1:30 No problem, I'll be around for the next while. If you have any further difficulties let me know! It'd be nice to know you got it sorted in the end too!
:) – Aidanc Mar 26 at 1:32.
What I think you want to do is have the camera preview in the background and a layout on top with all your buttons etc. I'm assuming this is some sort of AR app. To achieve this, make your preview and put it in as the background as you have done, now just make another layout to sit on top of this layout. Make it's background transparent and put all your items on that.
Since you say you have the Camera done fine, I'll describe the second layout. So, now you can see the camera. Simply add your buttons etc. as normal onto this view and you will create the effect you're looking for.
EDIT Just to clarify, the second layout (the one with the buttons) would be a child of the camera preview. All I did was make the Absolute inside your Camera preview layout transparent. Try that code.
Just some further clarification. The app I'm describing has the Camera preview in the linear layout. You put the absolute inside it as it's child.
Set it's background to transparent so it's background is now the camera preview. After doing all of this you append your buttons etc. to the absolute layout creating the effect I've linked in the comments below.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.