I want to change menu item align to the right. With bellow code, change it to the center but I don't know how to change it to gen right align. There is no Layout.Alignment.ALIGN_RIGHT, how can I handle it?
@Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.home, menu);
int possition=0;
MenuItem item= menu.getItem(possition);
SpannableString s=new SpannableString(item.getTitle());
s.setSpan(new AlignmentSpan.Standard(Layout.Alignment.ALIGN_CENTER),0,s.length(),0);
item.setTitle(s);
return true;
}