Improved dialer layout

This commit is contained in:
Sylvain Berfini 2014-07-15 17:10:20 +02:00
parent 5a32346d2c
commit c66d9328fd

View file

@ -1,59 +1,65 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="@drawable/background" android:background="@drawable/background">
android:orientation="vertical">
<org.linphone.ui.AddressText <org.linphone.ui.AddressText
android:id="@+id/Adress" android:id="@+id/Adress"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="wrap_content"
android:layout_weight="0.4"
android:textColor="@android:color/white" android:textColor="@android:color/white"
android:background="@drawable/dialer_address_background" android:background="@drawable/dialer_address_background"
android:inputType="textEmailAddress" android:inputType="textEmailAddress"
android:hint="@string/addressHint" android:hint="@string/addressHint"
android:paddingLeft="20dp" android:paddingLeft="20dp"
android:paddingRight="20dp" android:paddingRight="20dp"
android:layout_gravity="center" /> android:layout_gravity="center"
android:layout_alignParentTop="true"
<org.linphone.ui.Numpad android:layout_centerHorizontal="true"/>
android:id="@+id/Dialer"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="0.15" />
<LinearLayout <LinearLayout
android:id="@+id/controls"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="wrap_content">
android:layout_weight="0.4" >
<ImageView <ImageView
android:contentDescription="@string/content_description_add_contact" android:contentDescription="@string/content_description_add_contact"
android:id="@+id/addContact" android:id="@+id/addContact"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="wrap_content"
android:layout_weight="1" android:adjustViewBounds="true"
android:scaleType="fitXY" android:scaleType="fitXY"
android:layout_weight="1"
android:src="@drawable/add_contact" /> android:src="@drawable/add_contact" />
<org.linphone.ui.CallButton <org.linphone.ui.CallButton
android:id="@+id/Call" android:id="@+id/Call"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="wrap_content"
android:layout_weight="1" android:adjustViewBounds="true"
android:scaleType="fitXY" android:scaleType="fitXY"
android:layout_weight="1"
android:src="@drawable/call" /> android:src="@drawable/call" />
<org.linphone.ui.EraseButton <org.linphone.ui.EraseButton
android:id="@+id/Erase" android:id="@+id/Erase"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="wrap_content"
android:layout_weight="1" android:adjustViewBounds="true"
android:scaleType="fitXY" android:scaleType="fitXY"
android:layout_weight="1"
android:src="@drawable/backspace" /> android:src="@drawable/backspace" />
</LinearLayout> </LinearLayout>
</LinearLayout> <org.linphone.ui.Numpad
android:id="@+id/Dialer"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@id/controls"
android:layout_below="@id/Adress" />
</RelativeLayout>