I solved a similar issue by using PopupWindow
. PopupWindow
can be constructed with any layout of your choosing, such as one you inflate from xml. That layout can have the android:rotation
tags.
In my case I used
new PopupWindow(popupContent, LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT);
where popupContent
is the layout I inflated from xml.
PopupWindow docs: http://developer.android.com/reference/android/widget/PopupWindow.html