Android application source code for smart agriculture

Android application source code for smart agriculture

Source code introduction

This example is an Android example source code about smart agriculture, and only the layout part is implemented.
Source code running screenshot

Source code snippet

  1. private   void drawFrame(Canvas canvas){
  2. calculateLeft();
  3.           
  4. //Draw horizontal line  
  5. for ( int i= 0 ;i<=xLineCount;i++){
  6. float startY=i*xInterval+xInterval;
  7. canvas.drawLine(left+ 5 , startY,getWidth(),startY,paintLine);
  8. textPaint.setTextAlign(Align.RIGHT);
  9. canvas.drawText(Math.round(xMaxValue/xLineCount*(xLineCount-i)- 0.5 )+ "" ,left,startY+bottom/ 4 , textPaint);
  10. }
  11.           
  12. for ( int j= 0 ;j<ylinecount;j++){ float = "" leftspace= "yInterval*j+left+5;" canvas.drawline(leftspace,= "" bottom,leftspace, this .getheight()-bottom,paintline);= "" textpaint.settextalign(align.center);= ""   if (j= "=0){"   continue ;= "" }= "" xpoint.add(leftspace);= "" canvas.drawtext(defaultday[j- 1 ],leftspace, this .getheight(),= "" textpaint);= "" }<= "" pre= "" >
  13.                       
  14. </ylinecount;j++){>

Source code link: http://download..com/data/1984800

<<:  Android source code download: Bluetooth_4.3 BLE Bluetooth communication

>>:  Acg sentence control

Recommend

Analysis of Xigua Video Product Promotion

From the perspective of a new product developer, ...

Mixue Ice City brand upgrade marketing strategy case

The only martial arts in the world that cannot be...

Imitation iPhone password lock effect

Source code introduction An iPhone-like password ...

Want to do a good job of UI color matching? Just these three steps!

What colors should a set of product colors have: ...

SEO workflow, what are the specific tasks of SEO every day?

SEO optimization is a boring job. Generally, a ne...

How does Google never go down?

According to Google's official data, in 2015,...

What is Taobao Alliance? How to promote Taobao Alliance?

Taobao merchants are no longer unfamiliar with Ta...

Six rules of user retention rate, tell you all at once

Please think before reading: What is user retenti...

Is it useful to use dou+ if TikTok has no views? Is Douyin DOU+ useful?

When operating a Douyin account, there may actual...

Give it a little power, it can stay bright for a long time

Produced by: Science Popularization China Author:...

How to achieve effective drainage? Share 2 strategies!

There are only two truly effective traffic-genera...