From 7fbff71ed6899880abb8f4dcfe8bc206da7187aa Mon Sep 17 00:00:00 2001 From: AndyScherzinger Date: Thu, 14 Jun 2018 21:26:54 +0200 Subject: [PATCH] revamp call notification screen with dark theme and constraint layout --- app/build.gradle | 2 + .../layout/controller_call_notification.xml | 90 ++++++++++--------- app/src/main/res/values/colors.xml | 1 + app/src/main/res/values/dimens.xml | 1 + app/src/main/res/values/strings.xml | 2 +- 5 files changed, 53 insertions(+), 43 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 0342379a8..4a3640387 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -79,6 +79,8 @@ dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation "com.android.support:appcompat-v7:${supportLibraryVersion}" implementation "com.android.support:design:${supportLibraryVersion}" + implementation 'com.android.support.constraint:constraint-layout:1.1.1' + implementation 'com.android.support:multidex:1.0.3' diff --git a/app/src/main/res/layout/controller_call_notification.xml b/app/src/main/res/layout/controller_call_notification.xml index e8171245f..cbc797b60 100644 --- a/app/src/main/res/layout/controller_call_notification.xml +++ b/app/src/main/res/layout/controller_call_notification.xml @@ -18,84 +18,90 @@ ~ You should have received a copy of the GNU General Public License ~ along with this program. If not, see . --> - - - + - - + android:textColor="@color/white30" + android:textSize="16sp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" /> + android:textColor="@color/white" + android:textSize="28sp" + app:layout_constraintTop_toBottomOf="@+id/incomingCallTextView" + tools:text="Victor Gregorius Magnus" /> + + app:frontImage="@drawable/ic_mic_white_24px" + app:layout_anchorGravity="top|center" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0.129" + app:layout_constraintStart_toStartOf="parent" /> + app:frontImage="@drawable/ic_videocam_white_24px" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0.5" + app:layout_constraintStart_toStartOf="parent" /> + app:frontImage="@drawable/ic_call_end_white_24px" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0.87" + app:layout_constraintStart_toStartOf="parent" /> - - \ No newline at end of file + diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index c7412376a..a9d3cb3e2 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -17,5 +17,6 @@ #E8E8E8 #757575 #D5D5D5 + #e9ffffff diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml index 75461c897..f1d21de80 100644 --- a/app/src/main/res/values/dimens.xml +++ b/app/src/main/res/values/dimens.xml @@ -16,6 +16,7 @@ 8dp 40dp 80dp + 180dp 20dp 14sp diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 2264ae148..66f9cbe45 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -113,7 +113,7 @@ Open settings - Incoming call + Incoming call from Guest New public conversation Public conversations let you invite people from outside through a