adding a hangup button to the dialer
This commit is contained in:
parent
099d7b6644
commit
d6e8769205
|
@ -25,6 +25,8 @@ class DialerActivity : SimpleActivity() {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
dialer_hangup_button.setOnClickListener { finish() }
|
||||
}
|
||||
|
||||
override fun onResume() {
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 408 B |
Binary file not shown.
After Width: | Height: | Size: 507 B |
Binary file not shown.
After Width: | Height: | Size: 722 B |
Binary file not shown.
After Width: | Height: | Size: 929 B |
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="oval">
|
||||
|
||||
<solid
|
||||
android:color="@color/theme_dark_red_primary_color"/>
|
||||
|
||||
</shape>
|
|
@ -47,4 +47,17 @@
|
|||
app:layout_constraintTop_toBottomOf="@+id/callee_big_name_number"
|
||||
tools:text="123 456 789"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/dialer_hangup_button"
|
||||
android:layout_width="@dimen/dialer_hangup_button_size"
|
||||
android:layout_height="@dimen/dialer_hangup_button_size"
|
||||
android:layout_marginBottom="@dimen/dialer_bottom_margin"
|
||||
android:background="@drawable/circle_red_background"
|
||||
android:elevation="@dimen/medium_margin"
|
||||
android:padding="@dimen/activity_margin"
|
||||
android:src="@drawable/ic_phone_down"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"/>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
|
|
@ -7,7 +7,9 @@
|
|||
<dimen name="contact_item_with_number_height">56dp</dimen>
|
||||
<dimen name="create_new_contact_height">68dp</dimen>
|
||||
<dimen name="dialpad_button_size">60dp</dimen>
|
||||
<dimen name="dialer_top_margin">150dp</dimen>
|
||||
<dimen name="dialer_hangup_button_size">70dp</dimen>
|
||||
<dimen name="dialer_top_margin">140dp</dimen>
|
||||
<dimen name="dialer_bottom_margin">40dp</dimen>
|
||||
|
||||
<dimen name="dialpad_text_size">34sp</dimen>
|
||||
</resources>
|
||||
|
|
Loading…
Reference in New Issue