简体   繁体   中英

make the textview align vertically on the left side of the screen

I am trying to implement a listview that will be having a textview (used as a label) to fit the left side of the screen in a vertical way that will take the size of the row of the listview. check the image.

This is easily implemented in iOS. I want to have the Phonecall1 and Phonecall2 mimiced.

Many solutions on stackoverflow suggest creating a custom class and so forth.

Is there any simple way for this ?

<TextView
    android:id="@+id/textView1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignBottom="@+id/weather"
    android:background="#000000"
    android:gravity="center|left"
    android:rotation="90"
    android:text="something" />

对于API 11及更高版本,在文本视图中使用android:rotation并设置高度

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM