[android-developers] Re: Layout structure to display button over camera preview (like in stock camera app)

2015-12-19 Thread David Karr
On Friday, December 18, 2015 at 10:52:43 PM UTC-8, gjs wrote:
>
> Hi,
>
> Try a FrameLayout - 
> http://developer.android.com/reference/android/widget/FrameLayout.html
>

Ok, that's working pretty well.  One problem, however. How do I mask 
multiple "gravity" constants in the  component?  I started with "bottom" 
and wanted to make it "bottom | center_horizontal", but it barfs on that.


> Regards
>
> On Saturday, December 19, 2015 at 5:20:35 AM UTC+11, David Karr wrote:
>>
>> I'm working with a sample video capture app (
>> http://examples.javacodegeeks.com/android/core/android-video-capture-example/).
>>   
>> I've made some changes to it, but the basic structure is the same.  The 
>> layout used displays the preview in a pane on the left side of the screen, 
>> with a layout containing buttons to the right.  I really need the preview 
>> to take up the entire screen, and have the button (I'm only going to have 
>> the "Capture" button, not the "switch camera" button) display at the bottom 
>> center, just like the stock camera app.
>>
>> This is really just a layout question.  Can someone show the basic 
>> structure that would display a single button at the center of the bottom, 
>> displayed on top of the camera preview?
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/f9f5f5ec-9e09-4246-9a2c-6fbd47cf2e3d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Layout structure to display button over camera preview (like in stock camera app)

2015-12-18 Thread gjs
Hi,

Try a FrameLayout 
- http://developer.android.com/reference/android/widget/FrameLayout.html

Regards

On Saturday, December 19, 2015 at 5:20:35 AM UTC+11, David Karr wrote:
>
> I'm working with a sample video capture app (
> http://examples.javacodegeeks.com/android/core/android-video-capture-example/).
>   
> I've made some changes to it, but the basic structure is the same.  The 
> layout used displays the preview in a pane on the left side of the screen, 
> with a layout containing buttons to the right.  I really need the preview 
> to take up the entire screen, and have the button (I'm only going to have 
> the "Capture" button, not the "switch camera" button) display at the bottom 
> center, just like the stock camera app.
>
> This is really just a layout question.  Can someone show the basic 
> structure that would display a single button at the center of the bottom, 
> displayed on top of the camera preview?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/8fc10e4f-1705-40ba-a604-d105c63818a6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.