[android-developers] Re: Emnulator window issue

2014-09-06 Thread Sheharyar Naseer
I'm not sure I understand your problem, can you post screenshots?

On Monday, September 1, 2014 10:20:47 PM UTC+5, dashman wrote:
>
> I created a new emulator.
>
> Defined it as a standard phone - nexus 4.
>
> When the Window is displayed - it's in portrait orientation (i.e. the 
> frame)
>
> But the contents of the window (i.e. the emulated screen is landscape - 
> rotated 90 deg. to the right.
>
> i..e if I turn my head right 90 deg - then that would be a standard 
> landscape display - i.e. the Window frame + content.
>
>
> If I press Ctrl+F12 to switch orientation - the frame + contents is 
> landscape - that's normal and expected.
>
> Cntrl+F12 again - frame portrait (correct) but the contents are rotated 90 
> (i.e. the title bar is vertical on the right side of the frame)
>
>
> Any help?
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
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 android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Buttons Not Displayed on Copy/Paste Action Bar Associated With A TextView in Dialog

2014-09-06 Thread Sheharyar Naseer
Are you using ActionbarSherlock by any chance? 
It seems to be a bug in the framework, the workaround for which is to 
manually set the theme again, preferably in the onCreateDialog method.

See Solution on Stackoverflow 


Sample code (uses DialogFragments):

@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
//get the parent activity context and set it's theme again.
Context ctx = getActivity();
ctx.setTheme(android.R.style.Theme_Holo_Light);
AlertDialog.Builder builder = new AlertDialog.Builder(ctx);
LayoutInflater inflater = (LayoutInflater) 
ctx.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View view = inflater.inflate(R.layout.your_dialog_layout, null, false);
builder.setView(view);

//your other code for the dialog

//

return builder.create();




 



-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
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 android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.