Android Studio – How to center a textView ui element?
I want to put the textView with the text in the center horizontal. and when I added the line: textView.gravity = Gravity.CENTER_HORIZONTAL I didn't see the text "Milliseconds" but even with this line the text and the numbers are too…