
I tried to display the text but it is displaying in wrong view. I want to display the Textview in reverse. I tried this code
String subMenuId = (String) key[position];
String subMenuName = subMenuTable.get(subMenuId);
for (int x = 0; x < subMenuName.length(); x++) {
    int splitword = subMenuName.charAt(x);
    char c = (char) splitword;
    TextView product = new TextView(con);
    product.setText(String.valueOf(c));
    product.setRotation(-90);
    holder.tv.setGravity(Gravity.CENTER_VERTICAL);
    product.setTextSize(12);
    holder.tv.setPadding(5,0,5,0);
    product.setTextColor(Color.BLACK);
    product.setTypeface(null, Typeface.BOLD);
    holder.tv.addView(product);
}
 
     
    