From d6e87692050f7019fb60a92c4411aeeaead72d56 Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 20 Nov 2018 13:34:22 +0100 Subject: [PATCH] adding a hangup button to the dialer --- .../contacts/pro/activities/DialerActivity.kt | 2 ++ app/src/main/res/drawable-hdpi/ic_phone_down.png | Bin 0 -> 408 bytes app/src/main/res/drawable-xhdpi/ic_phone_down.png | Bin 0 -> 507 bytes .../main/res/drawable-xxhdpi/ic_phone_down.png | Bin 0 -> 722 bytes .../main/res/drawable-xxxhdpi/ic_phone_down.png | Bin 0 -> 929 bytes .../main/res/drawable/circle_red_background.xml | 9 +++++++++ app/src/main/res/layout/activity_dialer.xml | 13 +++++++++++++ app/src/main/res/values/dimens.xml | 4 +++- 8 files changed, 27 insertions(+), 1 deletion(-) create mode 100755 app/src/main/res/drawable-hdpi/ic_phone_down.png create mode 100644 app/src/main/res/drawable-xhdpi/ic_phone_down.png create mode 100644 app/src/main/res/drawable-xxhdpi/ic_phone_down.png create mode 100644 app/src/main/res/drawable-xxxhdpi/ic_phone_down.png create mode 100644 app/src/main/res/drawable/circle_red_background.xml diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/DialerActivity.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/DialerActivity.kt index b33a1d07..6f1b0907 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/DialerActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/DialerActivity.kt @@ -25,6 +25,8 @@ class DialerActivity : SimpleActivity() { } } } + + dialer_hangup_button.setOnClickListener { finish() } } override fun onResume() { diff --git a/app/src/main/res/drawable-hdpi/ic_phone_down.png b/app/src/main/res/drawable-hdpi/ic_phone_down.png new file mode 100755 index 0000000000000000000000000000000000000000..945478257cc507ae7c654a4af1ab5f86566386d0 GIT binary patch literal 408 zcmV;J0cZY+P)^Fzaxao=4y83r_YKooGwEuZw;Fc*1DdLd6cO7cve=O+7)HSZZqj5YQ6#jJ0P zEk@7z>}1{##v0?h`G~LxV~@d&u=&?wn_*3{)hNlTVx2H+Pmw!OlIx1>X-0%rLGGPO zl%(QiL8_JAwCozxbKAlABbvGf?aETwX(0F5(HMfNhXbi*Wb$%bF2)F4vPEWRAeH5I zz(=(hk-86A>O$nx(6*!!`#{B#wnijLk|as;pZE!kP7M$e(Cw%I0000>oh8k~%rPkPEm$jCfX@Wtz_{W>Bi&}G&?{zm%Ui0N>J~u+G4EJf2!UF~?W{;`5Yp#y(yze>p zxYCvG@{IR=tB&S+nre??hPp5EaJg2t%d$XMAGQ4^O&gpi5l>x>m)(_;Vt002ovPDHLkV1mAW_!9sC literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-xxhdpi/ic_phone_down.png b/app/src/main/res/drawable-xxhdpi/ic_phone_down.png new file mode 100644 index 0000000000000000000000000000000000000000..79f71efe3de874cb5adb5c41fcb68b1e1ab3646e GIT binary patch literal 722 zcmV;@0xkWCP)#OSA#U}FeEP(#4ly7~!yqSnLPnuvJn3Wuqj(H;nx_>< z#xqVcI10^F_ba}P`%S5~RPMRdRMq5+bg%6EN(t&3gaYB#yd1D^7szhviL z!y;F@x?GKPwO(_J6D>1F=V*q`MqB1Yw|GshbpN?Rm&lfuj`E{48P7S}9Bm^@+M4Su z&&f#hy`!{@t!J6HqpZQZaYlIsDlP^u7!?h(z;9G+jGrxtE!oBYRCJ90?Gl@EoD3BoBjdPO zM+=ujRm9+mSi|j9RgBvr!U0rWj03`}RT+CV{9Bc=f5T5z8T%>RB3C;^p4maJZViL{ zDmT+2&rFw_Uk!=~bNnfLUuqe7rlt2}?@x1L4Ric1JGJ(R0x(~V?EG#{Y+!m;wNK2C z0x{nwS+%CeI$73!a=NxrK-xOZuhQ|$=B;(LU!tL~C3$&p6*{$g}!K32Eah z4f)QvNMmFJwL7$ql5<=Gt&!2Ngj$UgqD@o{sHg(q_=MZQHhO+qP}nc28s5 zwkug}rTprBRsA&|?dzLcTIy_Dhr7sKUh%Dg<|xZ-gM8-|ce~ILw$nwcsJ*neiz~cq zyqXy6Jy+UQyQm#Bx25yFYKXKA^{Vr2rCAgr4Q=H*KPi!EC4P3Dtu&0npsizkV76?V z?LEh89r;TeC;CK*Tw3T;$7>V$#ZtESlKJw*JTKYaQu(r^E;UR(8s^d*FF7l?&m8$| zmisIpxnNx{S)>pw@{%=$X6qKA(?;Tk8}#b(yk z#qv67seuMs=x8~etz%QWI>9v__mLhZOT#ZVj!e+S+iGTpFWg`c?IR%_?Cu6%n4xCg z(K*tjsT(bn)EF-~(VFT-O4PH46FqOdq!zeQlSqf1jgZ82?>bAj$RORE8#OW0W>G$SB~J9R$HjE{ukZ7{K zBClxfp)~U>nW#i{ysKm6A=?;{R-Pp|pvsBnI6U%}<{nX1)0fPXMxp__MxL{aNonO- zGSOlcdtLJ=06O`&(md-#^*Ox4MCV5VaY2$i$rH_YU=$b!nx7y~qD0ed8U@IvrdiSy z>qN~sT8aM}p=%THz=%000000000000001bFP#adKc+^00000NkvXXu0mjf Dqf4f{ literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable/circle_red_background.xml b/app/src/main/res/drawable/circle_red_background.xml new file mode 100644 index 00000000..4371db18 --- /dev/null +++ b/app/src/main/res/drawable/circle_red_background.xml @@ -0,0 +1,9 @@ + + + + + + diff --git a/app/src/main/res/layout/activity_dialer.xml b/app/src/main/res/layout/activity_dialer.xml index 4920eb40..e035d95b 100644 --- a/app/src/main/res/layout/activity_dialer.xml +++ b/app/src/main/res/layout/activity_dialer.xml @@ -47,4 +47,17 @@ app:layout_constraintTop_toBottomOf="@+id/callee_big_name_number" tools:text="123 456 789"/> + + diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml index 2756e68c..06eb1258 100644 --- a/app/src/main/res/values/dimens.xml +++ b/app/src/main/res/values/dimens.xml @@ -7,7 +7,9 @@ 56dp 68dp 60dp - 150dp + 70dp + 140dp + 40dp 34sp