Search code examples
androidjquery-mobileuser-interfaceandroid-activity2d

How to draw a thermometer in an android activity?


I am creating a device management app. I want to show a thermometer in an activity and update the temp value with real time data. i got the real time data part, but i have no idea how to draw a thermometer. Are there any libraries i can use for my problem?


Solution

  • There is no thermometer object in Android. You will need to draw it yourself with a custom object and an onDraw method. Or trying with multiple image and a relativelayout.