linphone-android/app/src/main/res/layout/dialer.xml
2019-03-04 21:20:02 +01:00

98 lines
3.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?attr/backgroundColor">
<RelativeLayout
android:id="@+id/dialer"
android:layout_width="300dp"
android:layout_height="460dp"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="50dp"
android:visibility="gone"/>
<RelativeLayout
android:id="@+id/address_bar"
android:layout_width="match_parent"
android:layout_height="60dp"
android:layout_alignParentTop="true"
android:background="?attr/lighToolbarBackgroundColor">
<org.linphone.views.EraseButton
android:id="@+id/erase"
android:layout_width="40dp"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:contentDescription="@string/content_description_backspace"
android:src="@drawable/backspace" />
<org.linphone.views.AddressText
android:id="@+id/address"
style="@style/numpad_composed_number_font"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_centerVertical="true"
android:layout_toLeftOf="@id/erase"
android:background="@color/transparent"
android:backgroundTint="@color/transparent"
android:ellipsize="start"
android:hint="@string/address_bar_hint"
android:inputType="textEmailAddress"
android:paddingLeft="20dp"
android:paddingRight="5dp"
android:textColorHint="@color/colorE" />
</RelativeLayout>
<org.linphone.views.Numpad
android:id="@+id/numpad"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@id/controls"
android:layout_below="@id/address_bar"
android:layout_centerInParent="true"
android:padding="10dp" />
<LinearLayout
android:id="@+id/controls"
android:layout_width="match_parent"
android:layout_height="60dp"
android:layout_alignParentBottom="true">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:adjustViewBounds="true"
android:focusable="true">
<ImageView
android:id="@+id/add_contact"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:background="?attr/button_background_drawable"
android:contentDescription="@string/content_description_add_contact"
android:padding="15dp"
android:src="@drawable/contact_add" />
</RelativeLayout>
<org.linphone.views.CallButton
android:id="@+id/call"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="0.5"
android:background="@drawable/call"
android:contentDescription="@string/content_description_call"
android:padding="12dp"
android:src="@drawable/call_audio_start" />
</LinearLayout>
</RelativeLayout>