Fix nested weight in landscape

This commit is contained in:
PavelRatushny 2017-11-02 16:24:57 +02:00
parent 19eab475e1
commit f6f2805915

View file

@ -155,44 +155,51 @@
</android.support.v4.widget.NestedScrollView>
<LinearLayout
<FrameLayout
android:layout_weight="0.45"
android:id="@+id/keyboard_layout"
android:layout_width="0dp"
android:layout_height="match_parent"
android:orientation="vertical">
android:layout_height="match_parent">
<GridView
android:id="@+id/keyboard_grid_view"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:layout_height="match_parent"
android:layout_marginBottom="53dp"
android:background="?attr/dashboard_divider"
android:horizontalSpacing="1dp"
android:numColumns="4"
android:stretchMode="columnWidth"
android:verticalSpacing="1dp"/>
<View
android:id="@+id/keyboard_divider"
<LinearLayout
android:orientation="vertical"
android:layout_gravity="bottom"
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/keyboard_item_add_button_bg_pressed"/>
android:layout_height="wrap_content">
<android.support.v7.widget.AppCompatTextView
android:background="@drawable/keyboard_item_add_button_bg"
android:id="@+id/add_marker_button"
android:layout_width="match_parent"
android:layout_height="52dp"
android:ellipsize="end"
android:gravity="center"
android:maxLines="1"
android:text="@string/shared_string_add"
android:textAllCaps="true"
android:textColor="@color/keyboard_item_add_button_text_color"
android:textSize="@dimen/default_list_text_size"/>
<View
android:id="@+id/keyboard_divider"
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/keyboard_item_add_button_bg_pressed"/>
</LinearLayout>
<android.support.v7.widget.AppCompatTextView
android:background="@drawable/keyboard_item_add_button_bg"
android:id="@+id/add_marker_button"
android:layout_width="match_parent"
android:layout_height="52dp"
android:ellipsize="end"
android:gravity="center"
android:maxLines="1"
android:text="@string/shared_string_add"
android:textAllCaps="true"
android:textColor="@color/keyboard_item_add_button_text_color"
android:textSize="@dimen/default_list_text_size"/>
</LinearLayout>
</FrameLayout>
</LinearLayout>