<View
android:layout_width="match_parent"
android:layout_height="12dp"
android:orientation="horizontal" />
What is android:orientation="horizontal"
in the above xml?
The Android-Studio quick tip shows it is orientation constant, which is not very helpful.
there is no use for orientation attribute in View, orientation is only required for Linear layout or other parent layouts
android:orientation
is only relevant in a ViewGroup
where its children are organized consecutively such as a LinearLayout
, so in your case it's absolutely useless.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With