It NumberPicker sitting inside 300dp high RelativeLayout. The RelativeLayout has some background to visualize space it occupies. With this layout, the NumberPicker is drawn in a way that it is missing half of the upper digit (it is drawn outside the RelativeLayout). I can only fix that by adding some top margin to NumberPicker which is a workaround. Is that a bug?
Also I have a hard time to understand np_width and np_height. Why are they another width and height attributes if we already have android:layout_width and android:layout_height?
I have this simple layout:
It NumberPicker sitting inside 300dp high RelativeLayout. The RelativeLayout has some background to visualize space it occupies. With this layout, the NumberPicker is drawn in a way that it is missing half of the upper digit (it is drawn outside the RelativeLayout). I can only fix that by adding some top margin to NumberPicker which is a workaround. Is that a bug?
Also I have a hard time to understand np_width and np_height. Why are they another width and height attributes if we already have android:layout_width and android:layout_height?