Bridouille / android-beacon-scanner

A simple android iBeacon, AltBeacon, Eddystone and RuuviTag beacon scanner
https://play.google.com/store/apps/details?id=com.bridou_n.beaconscanner
331 stars 108 forks source link

meter character is overlapped when distance is Infinity #2

Closed cxphong closed 7 years ago

cxphong commented 7 years ago

screenshot_20170106-100556

Bridouille commented 7 years ago

Hi, I'm curious to know how did you get an "Infinity" distance, is it very far, very close, a special value (so that I can reproduce it) ?

However, according to material design the margin & paddings should be multiple of 8, I'm thinking 88 should replace 85.

cxphong commented 7 years ago

iBeacon is closed to me, its rssi is about -70dBm

I used this app https://play.google.com/store/apps/details?id=com.radiusnetworks.locate, and result is the same - Infinity. Because the iBeacon device is under developent, so the problem may be caused by iBeacon device.

This is the result of nRF Connect app of Nordic screenshot_20170106-153311

Bridouille commented 7 years ago

My preferred solution would be to know where the 'infinity' comes from and avoid it (might be from the float formatting), it doesn't even make sense to display an "infinite" distance.

I'll have a look at it soon.

Bridouille commented 7 years ago

Thanks for updating your comment with more infos, I'm going to change the layout :)

Bridouille commented 7 years ago

The commit e58f9380ea7a983f38c425825fb8f729d5967fec should have fixed the issue 👍