Set LayoutDirection (RTL) for api lower than 17

后端 未结 2 1933
不思量自难忘°
不思量自难忘° 2020-12-14 15:32

I am going to build a Persian app (RTL). my app includes a ListView and a Navigation Drawer .

I added in Manifest in application tag

2条回答
  •  被撕碎了的回忆
    2020-12-14 16:26

    use ViewCompat from android.support.v4.view.ViewCompat !

    like this :

    ViewCompat.setLayoutDirection (View yourView, int layoutDirection)
    

    layoutDirection is a constant from ViewCompat class

提交回复
热议问题