INTRODUCTION

For my job, I need to use a Light sensor for certain aplication. As I'm learning android, I decided to create a simple app that reads light sensor's values an shows it.

CONCERN

I know how to read light sensor's values and I'm actualy doing it. What I need is to create a gauge that represents these values. Something like this:

enter image description here

Being the lower limit 0, and higher limit something like 30000lx (my mobile can read up to 60000lx but I think that 30000lx is enough).

To do this, I started a tutorial from here. But I'm not able to adapt the temperature values to light values and redesing the scale, as as you can see on the picture, there are numbers floating, I don't get to put values, the hand doesn't appear, etc.

enter image description here

So, I would appreciate a lot If someone could help me adapting the code from this tutorial, providing me any example or link, or anything that could help me to finish the app.

有帮助吗?

解决方案

Finally I've decided to base in this one LINK

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top