I am working on an application using API 17 (4.2). In the application, I am developing a layout class, and I would like to customize it according to the direction of the layout. However, I could not find the applied layout direction in the class:
LinearLayout layout = newLayout(context);
layout.setLayoutDirection(LAYOUT_DIRECTION_RTL);
int ld = layout.getLayoutDirection();
My question is: how to adjust the direction of the layouts and get it in the class?
source
share