I want to create a gap between two children of linearLayout.
I don't want to use margin or padding, as this will not scale properly
when I switch to landscape.
I prefer using weight. But then, how to create a dummy (gap only) view in between them?
by the way, what happens if I don't create a landscape xml and
change the device orientation from portrait to landscape?
UPDATE 1
I have tried:
<LinearLayout
android:id="@+id/layout_information"
android:layout_width="0dp"
android:layout_height="fill_parent"
android:layout_weight="0.47"
android:orientation="vertical"
android:gravity="center"
>
<TextView
android:id="@+id/text_view_destination"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="\@ Home in"
android:textColor="@color/solid_white"
android:textSize="19sp"
android:textStyle="bold" />
<View
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0.2"/>
<TextView
android:id="@+id/text_view_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="40dp"
android:textColor="@color/solid_white"
android:textSize="25sp"
android:textStyle="normal" />
</LinearLayout>
but then
I get warning about nested weighting performance.
I get runtime error when drawing my gadget