we only use orientation if the ViewGroup is LinearLayout.