mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-01-31 16:04:54 +01:00
wrapping the incoming call views into a different constraintlayout
This commit is contained in:
parent
be13659182
commit
0d78355ba7
@ -6,87 +6,93 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent">
|
android:layout_height="match_parent">
|
||||||
|
|
||||||
<ImageView
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
android:id="@+id/caller_avatar"
|
android:id="@+id/incoming_call_holder"
|
||||||
android:layout_width="@dimen/incoming_call_button_size"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/incoming_call_button_size"
|
android:layout_height="match_parent">
|
||||||
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
|
<ImageView
|
||||||
android:id="@+id/caller_name_label"
|
android:id="@+id/caller_avatar"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="@dimen/incoming_call_button_size"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="@dimen/incoming_call_button_size"
|
||||||
android:layout_marginTop="@dimen/normal_margin"
|
android:contentDescription="@string/accept"
|
||||||
android:textSize="@dimen/caller_name_text_size"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/caller_avatar"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
tools:text="Caller name" />
|
app:layout_constraintVertical_bias="0.2"
|
||||||
|
tools:src="@drawable/ic_call_accept" />
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyTextView
|
<com.simplemobiletools.commons.views.MyTextView
|
||||||
android:id="@+id/caller_number_label"
|
android:id="@+id/caller_name_label"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="@dimen/medium_margin"
|
android:layout_marginTop="@dimen/normal_margin"
|
||||||
android:alpha="0.8"
|
android:textSize="@dimen/caller_name_text_size"
|
||||||
android:textSize="@dimen/caller_number_text_size"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintTop_toBottomOf="@+id/caller_avatar"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/caller_name_label"
|
tools:text="Caller name" />
|
||||||
tools:text="123 456 789" />
|
|
||||||
|
|
||||||
<ImageView
|
<com.simplemobiletools.commons.views.MyTextView
|
||||||
android:id="@+id/call_decline"
|
android:id="@+id/caller_number_label"
|
||||||
android:layout_width="@dimen/incoming_call_button_size"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="@dimen/incoming_call_button_size"
|
android:layout_height="wrap_content"
|
||||||
android:contentDescription="@string/accept"
|
android:layout_marginTop="@dimen/medium_margin"
|
||||||
android:src="@drawable/ic_call_decline"
|
android:alpha="0.8"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
android:textSize="@dimen/caller_number_text_size"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintHorizontal_bias="0.15"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintTop_toBottomOf="@+id/caller_name_label"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
tools:text="123 456 789" />
|
||||||
app:layout_constraintVertical_bias="0.85" />
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyTextView
|
<ImageView
|
||||||
android:id="@+id/call_decline_label"
|
android:id="@+id/call_decline"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="@dimen/incoming_call_button_size"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="@dimen/incoming_call_button_size"
|
||||||
android:layout_marginTop="@dimen/normal_margin"
|
android:contentDescription="@string/accept"
|
||||||
android:text="@string/decline"
|
android:src="@drawable/ic_call_decline"
|
||||||
android:textSize="@dimen/big_text_size"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="@+id/call_decline"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="@+id/call_decline"
|
app:layout_constraintHorizontal_bias="0.15"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/call_decline" />
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
app:layout_constraintVertical_bias="0.85" />
|
||||||
|
|
||||||
<ImageView
|
<com.simplemobiletools.commons.views.MyTextView
|
||||||
android:id="@+id/call_accept"
|
android:id="@+id/call_decline_label"
|
||||||
android:layout_width="@dimen/incoming_call_button_size"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="@dimen/incoming_call_button_size"
|
android:layout_height="wrap_content"
|
||||||
android:contentDescription="@string/accept"
|
android:layout_marginTop="@dimen/normal_margin"
|
||||||
android:src="@drawable/ic_call_accept"
|
android:text="@string/decline"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
android:textSize="@dimen/big_text_size"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="@+id/call_decline"
|
||||||
app:layout_constraintHorizontal_bias="0.85"
|
app:layout_constraintStart_toStartOf="@+id/call_decline"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintTop_toBottomOf="@+id/call_decline" />
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
|
||||||
app:layout_constraintVertical_bias="0.85" />
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyTextView
|
<ImageView
|
||||||
android:id="@+id/call_accept_label"
|
android:id="@+id/call_accept"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="@dimen/incoming_call_button_size"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="@dimen/incoming_call_button_size"
|
||||||
android:layout_marginTop="@dimen/normal_margin"
|
android:contentDescription="@string/accept"
|
||||||
android:text="@string/accept"
|
android:src="@drawable/ic_call_accept"
|
||||||
android:textSize="@dimen/big_text_size"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="@+id/call_accept"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="@+id/call_accept"
|
app:layout_constraintHorizontal_bias="0.85"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/call_accept" />
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
app:layout_constraintVertical_bias="0.85" />
|
||||||
|
|
||||||
|
<com.simplemobiletools.commons.views.MyTextView
|
||||||
|
android:id="@+id/call_accept_label"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="@dimen/normal_margin"
|
||||||
|
android:text="@string/accept"
|
||||||
|
android:textSize="@dimen/big_text_size"
|
||||||
|
app:layout_constraintEnd_toEndOf="@+id/call_accept"
|
||||||
|
app:layout_constraintStart_toStartOf="@+id/call_accept"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/call_accept" />
|
||||||
|
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user