add a Dialpad Close button at the ongoing calls dialpad
This commit is contained in:
parent
20a082bb7c
commit
1792c2daa0
2 changed files with 19 additions and 1 deletions
|
@ -111,6 +111,10 @@ class CallActivity : SimpleActivity() {
|
|||
toggleDialpadVisibility()
|
||||
}
|
||||
|
||||
dialpad_close.setOnClickListener {
|
||||
dialpad_wrapper.beGone()
|
||||
}
|
||||
|
||||
call_end.setOnClickListener {
|
||||
endCall()
|
||||
}
|
||||
|
|
|
@ -171,12 +171,26 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:layout_above="@+id/dialpad_include"
|
||||
android:layout_marginStart="@dimen/dialpad_button_size"
|
||||
android:layout_marginEnd="@dimen/dialpad_button_size"
|
||||
android:layout_marginEnd="@dimen/medium_margin"
|
||||
android:layout_toStartOf="@+id/dialpad_close"
|
||||
android:gravity="center"
|
||||
android:inputType="phone"
|
||||
android:textCursorDrawable="@null"
|
||||
android:textSize="@dimen/dialpad_text_size" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/dialpad_close"
|
||||
android:layout_width="@dimen/normal_icon_size"
|
||||
android:layout_height="@dimen/normal_icon_size"
|
||||
android:layout_alignTop="@+id/dialpad_input"
|
||||
android:layout_alignBottom="@+id/dialpad_input"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginEnd="@dimen/activity_margin"
|
||||
android:background="?attr/selectableItemBackgroundBorderless"
|
||||
android:padding="@dimen/medium_margin"
|
||||
android:src="@drawable/ic_cross_vector" />
|
||||
|
||||
<include
|
||||
android:id="@+id/dialpad_include"
|
||||
layout="@layout/dialpad" />
|
||||
|
|
Loading…
Reference in a new issue