From 1bb5af5a3e723f5137ffee94d1c321834c100f79 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Thu, 31 Jul 2014 11:51:01 +0200 Subject: [PATCH] Improved menu bar when used with holo light theme --- res/layout/main.xml | 24 ++++++++++++----------- res/layout/menu_about_chat_button.xml | 2 +- res/layout/menu_about_settings_button.xml | 2 +- res/layout/menu_contact_button.xml | 7 ++++--- res/layout/menu_settings_button.xml | 7 ++++--- 5 files changed, 23 insertions(+), 19 deletions(-) diff --git a/res/layout/main.xml b/res/layout/main.xml index 5eb79e93f..5505806df 100644 --- a/res/layout/main.xml +++ b/res/layout/main.xml @@ -15,7 +15,7 @@ + android:layout_weight="1" + android:adjustViewBounds="true"> @@ -117,9 +118,9 @@ + android:layout_weight="1" + android:adjustViewBounds="true"> diff --git a/res/layout/menu_about_chat_button.xml b/res/layout/menu_about_chat_button.xml index 13c061450..f2cd20b3c 100644 --- a/res/layout/menu_about_chat_button.xml +++ b/res/layout/menu_about_chat_button.xml @@ -4,7 +4,7 @@ android:visibility="gone" xmlns:android="http://schemas.android.com/apk/res/android" android:layout_weight="0.2" - android:layout_width="wrap_content" + android:layout_width="0dp" android:layout_height="wrap_content"> + android:layout_weight="1" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:adjustViewBounds="true"> + android:layout_weight="1" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:adjustViewBounds="true">