Fix call button size

This commit is contained in:
Margaux Clerc 2016-03-02 17:34:24 +01:00
parent 2f174922b8
commit 917b5eb329
5 changed files with 17 additions and 17 deletions

View file

@ -266,7 +266,7 @@
android:id="@+id/video" android:id="@+id/video"
android:src="@drawable/camera_default" android:src="@drawable/camera_default"
android:background="@drawable/button_background" android:background="@drawable/button_background"
android:padding="22dp" android:padding="20dp"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"/> android:layout_height="match_parent"/>
@ -285,7 +285,7 @@
android:id="@+id/micro" android:id="@+id/micro"
android:src="@drawable/micro_default" android:src="@drawable/micro_default"
android:background="@drawable/button_background" android:background="@drawable/button_background"
android:padding="15dp" android:padding="10dp"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" /> android:layout_weight="1" />
@ -304,7 +304,7 @@
android:src="@drawable/routes_default" android:src="@drawable/routes_default"
android:background="@drawable/button_background" android:background="@drawable/button_background"
android:visibility="gone" android:visibility="gone"
android:padding="20dp" android:padding="15dp"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_weight="1" /> android:layout_weight="1" />
@ -346,7 +346,7 @@
android:id="@+id/route_bluetooth" android:id="@+id/route_bluetooth"
android:src="@drawable/route_bluetooth" android:src="@drawable/route_bluetooth"
android:background="@drawable/button_background" android:background="@drawable/button_background"
android:padding="20dp" android:padding="15dp"
android:visibility="invisible" android:visibility="invisible"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -356,7 +356,7 @@
android:id="@+id/add_call" android:id="@+id/add_call"
android:src="@drawable/options_add_call" android:src="@drawable/options_add_call"
android:background="@drawable/button_background" android:background="@drawable/button_background"
android:padding="20dp" android:padding="15dp"
android:visibility="invisible" android:visibility="invisible"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -387,7 +387,7 @@
android:id="@+id/route_earpiece" android:id="@+id/route_earpiece"
android:src="@drawable/route_earpiece" android:src="@drawable/route_earpiece"
android:background="@drawable/button_background" android:background="@drawable/button_background"
android:padding="20dp" android:padding="15dp"
android:visibility="invisible" android:visibility="invisible"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -397,7 +397,7 @@
android:id="@+id/transfer" android:id="@+id/transfer"
android:src="@drawable/options_transfer_call" android:src="@drawable/options_transfer_call"
android:background="@drawable/button_background" android:background="@drawable/button_background"
android:padding="20dp" android:padding="15dp"
android:visibility="invisible" android:visibility="invisible"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -428,7 +428,7 @@
android:src="@drawable/route_speaker" android:src="@drawable/route_speaker"
android:background="@drawable/button_background" android:background="@drawable/button_background"
android:visibility="invisible" android:visibility="invisible"
android:padding="20dp" android:padding="15dp"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1.4"/> android:layout_weight="1.4"/>
@ -438,7 +438,7 @@
android:src="@drawable/options_start_conference" android:src="@drawable/options_start_conference"
android:background="@drawable/button_background" android:background="@drawable/button_background"
android:visibility="invisible" android:visibility="invisible"
android:padding="20dp" android:padding="15dp"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1.4"/> android:layout_weight="1.4"/>

View file

@ -33,9 +33,9 @@
android:id="@+id/contact_detail" android:id="@+id/contact_detail"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_below="@id/top_bar"
android:paddingTop="10dp" android:paddingTop="10dp"
android:layout_above="@+id/menu"> android:layout_above="@+id/menu"
android:layout_below="@+id/top_bar">
<LinearLayout <LinearLayout
android:orientation="horizontal" android:orientation="horizontal"

View file

@ -228,7 +228,7 @@
android:id="@+id/micro" android:id="@+id/micro"
android:src="@drawable/micro_default" android:src="@drawable/micro_default"
android:background="@drawable/button_background" android:background="@drawable/button_background"
android:padding="12dp" android:padding="10dp"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" /> android:layout_weight="1" />
@ -247,7 +247,7 @@
android:src="@drawable/routes_default" android:src="@drawable/routes_default"
android:background="@drawable/button_background" android:background="@drawable/button_background"
android:visibility="gone" android:visibility="gone"
android:padding="20dp" android:padding="15dp"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_weight="1" /> android:layout_weight="1" />

View file

@ -108,7 +108,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:padding="12dp"/> android:padding="10dp"/>
<ImageView <ImageView
android:id="@+id/speaker" android:id="@+id/speaker"

View file

@ -1170,9 +1170,9 @@ public class CallActivity extends Activity implements OnClickListener, SensorEve
private void hideOrDisplayAudioRoutes() private void hideOrDisplayAudioRoutes()
{ {
if (routeSpeaker.getVisibility() == View.VISIBLE) { if (routeSpeaker.getVisibility() == View.VISIBLE) {
routeSpeaker.setVisibility(View.GONE); routeSpeaker.setVisibility(View.INVISIBLE);
routeBluetooth.setVisibility(View.GONE); routeBluetooth.setVisibility(View.INVISIBLE);
routeEarpiece.setVisibility(View.GONE); routeEarpiece.setVisibility(View.INVISIBLE);
} else { } else {
routeSpeaker.setVisibility(View.VISIBLE); routeSpeaker.setVisibility(View.VISIBLE);
routeBluetooth.setVisibility(View.VISIBLE); routeBluetooth.setVisibility(View.VISIBLE);