Is there a way to align the selected item to the right?
Jamiek94 opened this issue · comments
You could try textAlignment attribute DropDown textAlignment="right"
.
For more information, the container used to set your text ui is a Label so use one of the TextAlignment valid alignment https://docs.nativescript.org/api-reference/classes/ui_label.label#textalignment
The textAlignment didn't work for me. I had to set the gravity;
const dropdown = this.page.getViewById<DropDown>("countryId");
dropdown.nativeView.setGravity(8388613); // means gravity END.