Skip to content

Commit

Permalink
Set graphs to IoT realtime data.
Browse files Browse the repository at this point in the history
  • Loading branch information
muindi.stephen committed Nov 6, 2024
1 parent f2068b8 commit b5d2776
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,5 @@ class IoTGraphsFragment : Fragment() {

// Refresh the chart
binding.lineChartTemperature.invalidate()


}
}
9 changes: 6 additions & 3 deletions app/src/main/res/layout/fragment_monitor_farm_condition.xml
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@
<ir.mahozad.android.PieChart
android:id="@+id/pieChart"
android:layout_width="match_parent"
android:layout_height="300dp"
android:layout_height="@dimen/_300dp"
android:layout_marginStart="16dp"
android:layout_marginTop="100dp"
android:layout_marginEnd="16dp"
Expand All @@ -341,6 +341,7 @@
android:layout_marginTop="16dp"
android:layout_marginEnd="16dp"
android:layout_marginBottom="@dimen/_16dp"
android:contentDescription="map"
android:apiKey="AIzaSyAmjw_S5Bhy_Fq6qkepiXmoRLCYFrd6XUc"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
Expand Down Expand Up @@ -375,7 +376,7 @@

<TextView
android:id="@+id/textView181"
android:layout_width="wrap_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginBottom="2dp"
Expand All @@ -385,13 +386,14 @@
android:textStyle="bold"
android:clickable="true"
android:focusable="true"
android:textAlignment="textStart"
android:textColor="@color/black"
app:layout_constraintBottom_toTopOf="@+id/pieChart"
app:layout_constraintStart_toStartOf="parent" />

<TextView
android:id="@+id/textViewViewAllGraphs"
android:layout_width="wrap_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginEnd="16dp"
android:layout_marginBottom="2dp"
Expand All @@ -400,6 +402,7 @@
android:fontFamily="@font/nunito_sans"
android:textSize="14sp"
android:textStyle="bold"
android:textAlignment="textEnd"
android:textColor="@color/black"
android:clickable="true"
android:focusable="true"
Expand Down

0 comments on commit b5d2776

Please sign in to comment.