I think that if you're worried about the soft keyboard covering your 
buttons, it'd be best to move from a dialog to a full screen activity.  
What I do to get around the soft keyboard covering my buttons at the bottom 
of an activity is to put all of the content inside of a ScrollView except 
for the bottom buttons.  That way when the soft keyboard collapses part of 
the layout, it (as far as I can tell from my own test devices) doesn't 
cover the action buttons.  You can also use an ActionBar button for the 
save action and use the back button as cancel (probably a better design 
than mine).  The Google apps usually have a checkbox in the ActionBar for 
Save and consider that back button as the intention to cancel the action.

On Friday, April 4, 2014 5:59:43 AM UTC-7, Simon Giddings wrote:
>
> I am working on an application where the user can create a list of items 
> (songs).
> The user can also add a text block to the list - text to be read as an 
> introduction to the next sequence of songs, for example.
>
> It is with this "text editer" activity that I am having trouble deciding 
> where to put things.
> I am displaying it as a dialog and have therefore placed "cancel" and "ok" 
> buttons at the bottom of the layout.
> However, this means that they are hidden by the virtual keyboard when the 
> focus is on the edittext widget.
>
> In addition, I wanted to add the ability to paste text copied from 
> elsewhere - another app, a web page.
>
> After having looked in the design guides ... I am no further forward.
>
> Should I rather be placing the cancel and ok buttons at the top of the 
> layout ?
> Should this rather be a full screen activity where I use the action bar to 
> place a paste button ?
> If I do this, should the cancel and ok buttons also be in the action bar ?
>
> I hope someone can advise me with this as I am stuck at this point.
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to