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

Will Apple disrupt carriers with virtual SIM cards?

As September approaches, news about the new gener...

How can a newbie quickly become a Vlogger? An OPPO Reno2 phone is enough!

From taking photos to recording videos, mobile ph...

Sony Xperia XZ review: Beautiful design but some stubborn flaws

If we take a look at the impression of Sony mobil...

Is a plane crash in India considered news? But this time is different

According to reports from India Today and Indian ...

A guide to advertising and video materials for Juliang Qianchuan

Judging from the current development of advertisi...

Is AI invincible in fake human voice?

One morning in 2014, Val Kilmer woke up and found...

Crocodile: The misunderstood “game”

Some people think that crocodiles are just ugly &...

Massaging the neck can cause cerebral infarction! Can you still enjoy massage?

Audit expert: Yin Tielun Deputy Chief Physician, ...