https://kotlinlang.org logo
#splitties
Title
# splitties
l

louiscad

09/22/2019, 9:24 PM
dp
(1️⃣ ),
dip
(2️⃣) or both (0️⃣)?
0️⃣ 3
2️⃣ 1
1️⃣ 4
i

ispbox

09/23/2019, 5:41 AM
I vote for
dip
as it has some mnemonics as "device-independent pixels"
l

louiscad

09/23/2019, 6:29 AM
@wasyl What made you pick
dp
? What do you think about using
dip
?
w

wasyl

09/23/2019, 7:59 AM
To be fair I just never used
dip
. Google search shows 481mm results for
dp
and just 80mm for
dip
. I’ll be honest I thought nobody uses
dip
really 😄 I now realized it might just be me and my friends, in which case having both makes perfect sense
I thought’s it’s kind of like
match_parent
vs
fill_parent
— the other one is there, but it’s not really used
i

ispbox

09/23/2019, 8:09 AM
From the other hand, google uses
sp
and
dp
in xml, so why should we use other naming? 🙂
l

louiscad

09/23/2019, 9:33 AM
Alright, so I'm not dropping
dp
, but it'll see an incompatible change as it'll now return
Int
(instead of
Float
), unless you use the upcoming overload that takes a
Float
. I think I'll leave
dip
here not deprecated for at the very least one release. Your input might influence whether I deprecate it and drop it later.
i

ispbox

09/23/2019, 3:07 PM
Nice! 🙂
h

Hitanshu Dhawan

12/31/2019, 9:41 AM
@louiscad Hi, are we planning to change this
dp
and
dip
API? If you have any plans or vision for it, I really want to help here and submit the PR for the same. 🙂
l

louiscad

01/02/2020, 1:15 PM
Hi @Hitanshu Dhawan, it's planned, I just had a few changes in my life, plus seeing family, plus changing priorities at work, and ongoing publishing process changes for Splitties (CI speed-up among other things) that made me not publish a version in a while. Next release (dev versions are not considered as releases) will have it.
h

Hitanshu Dhawan

01/02/2020, 1:16 PM
Cool, do let me know if I can help 🙂
🙏 1
2 Views