adding the caller photo, name and number at the call screen
This commit is contained in:
parent
2bacde210c
commit
be13659182
2 changed files with 39 additions and 1 deletions
|
@ -1,10 +1,46 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/call_holder"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/caller_avatar"
|
||||
android:layout_width="@dimen/incoming_call_button_size"
|
||||
android:layout_height="@dimen/incoming_call_button_size"
|
||||
android:contentDescription="@string/accept"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintVertical_bias="0.2"
|
||||
tools:src="@drawable/ic_call_accept" />
|
||||
|
||||
<com.simplemobiletools.commons.views.MyTextView
|
||||
android:id="@+id/caller_name_label"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/normal_margin"
|
||||
android:textSize="@dimen/caller_name_text_size"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/caller_avatar"
|
||||
tools:text="Caller name" />
|
||||
|
||||
<com.simplemobiletools.commons.views.MyTextView
|
||||
android:id="@+id/caller_number_label"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/medium_margin"
|
||||
android:alpha="0.8"
|
||||
android:textSize="@dimen/caller_number_text_size"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/caller_name_label"
|
||||
tools:text="123 456 789" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/call_decline"
|
||||
android:layout_width="@dimen/incoming_call_button_size"
|
||||
|
@ -37,7 +73,7 @@
|
|||
android:src="@drawable/ic_call_accept"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintHorizontal_bias="0.8"
|
||||
app:layout_constraintHorizontal_bias="0.85"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintVertical_bias="0.85" />
|
||||
|
|
|
@ -7,5 +7,7 @@
|
|||
<dimen name="dialpad_button_size">60dp</dimen>
|
||||
<dimen name="incoming_call_button_size">72dp</dimen>
|
||||
|
||||
<dimen name="caller_name_text_size">26sp</dimen>
|
||||
<dimen name="caller_number_text_size">20sp</dimen>
|
||||
<dimen name="dialpad_text_size">34sp</dimen>
|
||||
</resources>
|
||||
|
|
Loading…
Reference in a new issue