-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update SensorViewer and MotionClassifier (Android-side)
* Update UI of SensorViewer * Update UI of MotionClassifier * Fix bugs on MotionClassifier
- Loading branch information
1 parent
3447e2c
commit d034932
Showing
7 changed files
with
396 additions
and
294 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
289 changes: 103 additions & 186 deletions
289
Ant-Manager/res/layout/activity_motion_classifier.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,188 +1,105 @@ | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="fill_parent" | ||
android:layout_height="match_parent" | ||
|
||
tools:context="com.ant.graphtest.MainActivity" > | ||
|
||
<ScrollView | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content"> | ||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:orientation="vertical"> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:background="#f6f792" | ||
android:orientation="vertical"> | ||
|
||
<TextView | ||
android:id="@+id/textView11" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:gravity="center_horizontal" | ||
android:text="TextView" | ||
android:textSize="18sp" | ||
android:textColor="#000000"/> | ||
|
||
<com.jjoe64.graphview.GraphView | ||
android:id="@+id/graph1" | ||
android:layout_width="match_parent" | ||
android:layout_height="100dip" | ||
|
||
android:layout_marginLeft="0dp" /> | ||
|
||
</LinearLayout> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:background="#a0e0a9" | ||
android:orientation="vertical" > | ||
|
||
<TextView | ||
android:id="@+id/textView22" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:textColor="#000000" | ||
android:text="TextView" | ||
android:textSize="18sp"/> | ||
|
||
<TextView | ||
android:id="@+id/textViewClassified" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:gravity="center_horizontal" | ||
android:text="Result: " | ||
android:textSize="36sp" | ||
android:textColor="#000000"/> | ||
|
||
<com.jjoe64.graphview.GraphView | ||
android:id="@+id/graph2" | ||
android:layout_width="match_parent" | ||
android:layout_height="100dip" | ||
android:layout_marginTop="5dp" | ||
android:paddingTop="0dp" /> | ||
|
||
</LinearLayout> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:background="#ed7b76" | ||
android:orientation="vertical" > | ||
|
||
<TextView | ||
android:id="@+id/textView33" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="TextView" | ||
android:textSize="18sp" | ||
android:textColor="#000000"/> | ||
|
||
<com.jjoe64.graphview.GraphView | ||
android:id="@+id/graph3" | ||
android:layout_width="match_parent" | ||
android:layout_height="100dip" | ||
android:layout_marginTop="5dp" | ||
android:paddingTop="0dp" /> | ||
|
||
</LinearLayout> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:background="#f8bf7b" | ||
android:orientation="vertical" > | ||
|
||
<TextView | ||
android:id="@+id/textView4" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="TextView" | ||
android:textSize="18sp" | ||
android:textColor="#000000"/> | ||
|
||
<com.jjoe64.graphview.GraphView | ||
android:id="@+id/graph4" | ||
android:layout_width="match_parent" | ||
android:layout_height="100dip" | ||
android:layout_marginTop="5dp" | ||
android:paddingTop="0dp" /> | ||
|
||
</LinearLayout> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:background="#5ea0a4" | ||
android:orientation="vertical" > | ||
|
||
<TextView | ||
android:id="@+id/textView5" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="TextView" | ||
android:textSize="18sp" | ||
android:textColor="#000000"/> | ||
|
||
<com.jjoe64.graphview.GraphView | ||
android:id="@+id/graph5" | ||
android:layout_width="match_parent" | ||
android:layout_height="100dip" | ||
android:layout_marginTop="5dp" | ||
android:paddingTop="0dp" /> | ||
|
||
</LinearLayout> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:background="#ff4f5c" | ||
android:orientation="vertical" > | ||
|
||
<TextView | ||
android:id="@+id/textView6" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="TextView" | ||
android:textSize="18sp" | ||
android:textColor="#000000"/> | ||
|
||
<com.jjoe64.graphview.GraphView | ||
android:id="@+id/graph6" | ||
android:layout_width="match_parent" | ||
android:layout_height="100dip" | ||
android:layout_marginTop="5dp" | ||
android:paddingTop="0dp" /> | ||
|
||
</LinearLayout> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:background="#00ada7" | ||
android:orientation="vertical" > | ||
|
||
<TextView | ||
android:id="@+id/textView7" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="TextView" | ||
android:textSize="18sp" | ||
android:textColor="#000000"/> | ||
|
||
<com.jjoe64.graphview.GraphView | ||
android:id="@+id/graph7" | ||
android:layout_width="match_parent" | ||
android:layout_height="100dip" | ||
android:layout_marginTop="5dp" | ||
android:paddingTop="0dp" /> | ||
|
||
</LinearLayout> | ||
</LinearLayout> | ||
</ScrollView> | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="fill_parent" | ||
android:layout_height="match_parent" | ||
|
||
tools:context="com.ant.graphtest.MainActivity"> | ||
|
||
<ScrollView | ||
android:layout_width="fill_parent" | ||
android:layout_height="fill_parent" | ||
android:background="#f8bf7b"> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:orientation="vertical"> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:background="#f6f792" | ||
android:orientation="vertical"> | ||
|
||
<TextView | ||
android:id="@+id/accXTextView" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:gravity="center_horizontal" | ||
android:textColor="#000000" | ||
android:textSize="18sp"/> | ||
|
||
<com.jjoe64.graphview.GraphView | ||
android:id="@+id/accXGraphView" | ||
android:layout_width="match_parent" | ||
android:layout_height="100dip" | ||
|
||
android:layout_marginLeft="0dp"/> | ||
|
||
</LinearLayout> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:background="#a0e0a9" | ||
android:orientation="vertical"> | ||
|
||
<TextView | ||
android:id="@+id/accYTextView" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:textColor="#000000" | ||
android:textSize="18sp"/> | ||
|
||
|
||
<com.jjoe64.graphview.GraphView | ||
android:id="@+id/accYGraphView" | ||
android:layout_width="match_parent" | ||
android:layout_height="100dip" | ||
android:layout_marginTop="5dp" | ||
android:paddingTop="0dp"/> | ||
|
||
</LinearLayout> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:background="#ed7b76" | ||
android:orientation="vertical"> | ||
|
||
<TextView | ||
android:id="@+id/accZTextView" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="TextView" | ||
android:textColor="#000000" | ||
android:textSize="18sp"/> | ||
|
||
<com.jjoe64.graphview.GraphView | ||
android:id="@+id/accZGraphView" | ||
android:layout_width="match_parent" | ||
android:layout_height="100dip" | ||
android:layout_marginTop="5dp" | ||
android:paddingTop="0dp"/> | ||
|
||
</LinearLayout> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:background="#f8bf7b" | ||
android:orientation="vertical"> | ||
|
||
<TextView | ||
android:id="@+id/textViewClassified" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:gravity="center_horizontal" | ||
android:text="Loading..." | ||
android:textColor="#000000" | ||
android:textSize="72sp"/> | ||
</LinearLayout> | ||
|
||
</LinearLayout> | ||
</ScrollView> | ||
</RelativeLayout> |
Oops, something went wrong.