开发者

How can i create a sliding layout above the preview of Camera?

I am making a project using a camera and I wan开发者_如何学Pythonted to have an extra button that i must be seen in sliding drawer. I tried it but the screen divides into two, the preview of camera and the place of sliding drawer when open.

My question is how I make may preview of camera serves as background or below the sliding drawer so it will occupy the whole screen? Thank you. Advices, links and tutorial are so much appreciated. :)


You have to put the camera preview and the sliding drawer in a relative layout. This way they will overlap and you will get the effect you are looking for. If you put them in a linear layout for example then the preview will shrink when the drawer is opened.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜