How To Change The Direction Of A Popup Menu Item From Right To Left?
I know this question was asked many times and I used many solutions but it doesn't work for me . I want to change the direction of my Menu to rtl using a Popup but It doesn't work
Solution 1:
I found a solution .
Making my own style like this
<style name="menuStyle">
<item name="android:layoutDirection">rtl</item>
</style>
Then add this code
Context myContext = new ContextThemeWrapper(MainActivity.this,R.style.menuStyle);
PopupMenu popupMenu = new PopupMenu(myContext , myView);
Post a Comment for "How To Change The Direction Of A Popup Menu Item From Right To Left?"