diff options
| author | Gaspard Coulet <gaspard.coulet@mines-ales.org> | 2021-04-28 23:08:21 +0200 |
|---|---|---|
| committer | Gaspard Coulet <gaspard.coulet@mines-ales.org> | 2021-04-28 23:08:21 +0200 |
| commit | 20f3a92f1c5ddecb565634237e33b321e846ad5d (patch) | |
| tree | 1de4cea19d6bf2768a212c1e3c030bdb05a39544 /Realisation_vol/App/app/src/main/res/layout | |
Initial commit
Diffstat (limited to 'Realisation_vol/App/app/src/main/res/layout')
4 files changed, 489 insertions, 0 deletions
diff --git a/Realisation_vol/App/app/src/main/res/layout/activity_input.xml b/Realisation_vol/App/app/src/main/res/layout/activity_input.xml new file mode 100644 index 0000000..656e5a2 --- /dev/null +++ b/Realisation_vol/App/app/src/main/res/layout/activity_input.xml @@ -0,0 +1,211 @@ +<?xml version="1.0" encoding="utf-8"?>
+<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ tools:context=".InputActivity">
+
+
+<LinearLayout
+
+ app:layout_constraintHeight_percent="1"
+ android:layout_marginStart="10dp"
+ app:layout_constraintLeft_toLeftOf="parent"
+ android:layout_height="match_parent"
+ android:layout_weight="1"
+ android:layout_width="0dp"
+ app:layout_constraintWidth_percent="0.45"
+ android:orientation="vertical">
+
+ <LinearLayout
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal">
+
+ <TextView
+ android:id="@+id/text_width"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:gravity="center"
+ android:text="@string/width"
+ android:textColor="#FF0000"
+ android:textStyle="bold" />
+
+ <EditText
+ android:id="@+id/tb_width"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:hint="@string/widthhint"
+ android:inputType="textPersonName|numberDecimal" />
+ </LinearLayout>
+
+ <LinearLayout
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal">
+
+ <TextView
+ android:id="@+id/text_length"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:gravity="center"
+ android:text="@string/length"
+ android:textColor="#FF0000"
+ android:textStyle="bold" />
+
+ <EditText
+ android:id="@+id/tb_length"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:hint="@string/lengthhint"
+ android:inputType="textPersonName|numberDecimal" />
+ </LinearLayout>
+
+ <LinearLayout
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal">
+
+ <TextView
+ android:id="@+id/text_height"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:gravity="center"
+ android:text="@string/height"
+ android:textColor="#FF0000"
+ android:textStyle="bold" />
+
+ <EditText
+ android:id="@+id/tb_height"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:hint="@string/heighthint"
+ android:inputType="textPersonName|numberDecimal" />
+ </LinearLayout>
+ <LinearLayout
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal">
+ <TextView
+ android:id="@+id/text_angle"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:gravity="center"
+ android:text="@string/angle"
+ android:textColor="#FF0000"
+ android:textStyle="bold" />
+
+ <EditText
+ android:id="@+id/tb_angle"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:hint="@string/angleHint"
+ android:inputType="textPersonName|numberDecimal" />
+ </LinearLayout>
+ <LinearLayout
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal">
+ <TextView
+ android:id="@+id/text_nb"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:gravity="center"
+ android:text="@string/nb"
+ android:textColor="#FF0000"
+ android:textStyle="bold" />
+
+ <EditText
+ android:id="@+id/tb_nb"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:hint="@string/nbhint"
+ android:inputType="textPersonName|numberDecimal" />
+ </LinearLayout>
+ <LinearLayout
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal">
+
+ <TextView
+ android:id="@+id/text_lat"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:gravity="center"
+ android:text="@string/lat"
+ android:textColor="#FF0000"
+ android:textStyle="bold" />
+
+ <EditText
+ android:id="@+id/tb_lat"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:hint="@string/lathint"
+ android:inputType="textPersonName|numberDecimal" />
+ </LinearLayout>
+
+ <LinearLayout
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal">
+
+ <TextView
+ android:id="@+id/text_long"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:gravity="center"
+ android:text="@string/lon"
+ android:textColor="#FF0000"
+ android:textStyle="bold" />
+
+ <EditText
+ android:id="@+id/tb_lon"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:hint="@string/lonhint"
+ android:inputType="textPersonName|numberDecimal" />
+ </LinearLayout>
+
+ <LinearLayout
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content">
+ <android.support.v7.widget.AppCompatButton
+ android:id="@+id/b_curr"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:onClick="getCurr"
+ android:text="@string/curr"/>
+ <android.support.v7.widget.AppCompatButton
+ android:id="@+id/button"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:onClick="generate"
+ android:text="@string/generate" />
+ <android.support.v7.widget.AppCompatButton
+ android:id="@+id/remove"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:onClick="remove"
+ android:text="@string/remove" />
+ </LinearLayout>
+
+ </LinearLayout>
+
+ <org.osmdroid.views.MapView
+ android:id="@+id/input_mapView"
+ android:layout_width="0dp"
+ android:layout_height="match_parent"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintWidth_percent="0.5" />
+
+</android.support.constraint.ConstraintLayout>
diff --git a/Realisation_vol/App/app/src/main/res/layout/activity_input_jm.xml b/Realisation_vol/App/app/src/main/res/layout/activity_input_jm.xml new file mode 100644 index 0000000..41aca3c --- /dev/null +++ b/Realisation_vol/App/app/src/main/res/layout/activity_input_jm.xml @@ -0,0 +1,184 @@ +<?xml version="1.0" encoding="utf-8"?> +<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + xmlns:app="http://schemas.android.com/apk/res-auto" + android:layout_width="match_parent" + android:layout_height="match_parent" + tools:context=".InputActivity"> + + +<LinearLayout + + app:layout_constraintHeight_percent="1" + android:layout_marginStart="10dp" + app:layout_constraintLeft_toLeftOf="parent" + android:layout_height="match_parent" + android:layout_weight="1" + android:layout_width="0dp" + app:layout_constraintWidth_percent="0.45" + android:orientation="vertical"> + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + + <TextView + android:id="@+id/text_width" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:gravity="center" + android:text="@string/width" + android:textColor="#FF0000" + android:textStyle="bold" /> + + <EditText + android:id="@+id/tb_width" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:hint="@string/widthhint" + android:inputType="textPersonName|numberDecimal" /> + + <TextView + android:id="@+id/text_length" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:gravity="center" + android:text="@string/length" + android:textColor="#FF0000" + android:textStyle="bold" /> + + <EditText + android:id="@+id/tb_length" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:hint="@string/lengthhint" + android:inputType="textPersonName|numberDecimal" /> + </LinearLayout> + + + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + + <TextView + android:id="@+id/text_height" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:gravity="center" + android:text="@string/height" + android:textColor="#FF0000" + android:textStyle="bold" /> + + <EditText + android:id="@+id/tb_height" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:hint="@string/heighthint" + android:inputType="textPersonName|numberDecimal" /> + + <TextView + android:id="@+id/text_angle" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:gravity="center" + android:text="@string/angle" + android:textColor="#FF0000" + android:textStyle="bold" /> + + <EditText + android:id="@+id/tb_angle" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:hint="@string/angleHint" + android:inputType="textPersonName|numberDecimal" /> + </LinearLayout> + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + + <TextView + android:id="@+id/text_lat" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:gravity="center" + android:text="@string/lat" + android:textColor="#FF0000" + android:textStyle="bold" /> + + <EditText + android:id="@+id/tb_lat" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:hint="@string/lathint" + android:inputType="textPersonName|numberDecimal" /> + + <TextView + android:id="@+id/text_long" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:gravity="center" + android:text="@string/lon" + android:textColor="#FF0000" + android:textStyle="bold" /> + + <EditText + android:id="@+id/tb_lon" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:hint="@string/lonhint" + android:inputType="textPersonName|numberDecimal" /> + </LinearLayout> + + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content"> + <android.support.v7.widget.AppCompatButton + android:id="@+id/b_curr" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:onClick="getCurr" + android:text="@string/curr"/> + <android.support.v7.widget.AppCompatButton + android:id="@+id/button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:onClick="generate" + android:text="@string/generate" /> + </LinearLayout> + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content"> + + <android.support.v7.widget.AppCompatButton + android:id="@+id/remove" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:onClick="remove" + android:text="@string/remove" /> + </LinearLayout> + + </LinearLayout> + + <org.osmdroid.views.MapView + android:id="@+id/input_mapView" + android:layout_width="0dp" + android:layout_height="match_parent" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintWidth_percent="0.5" /> + +</android.support.constraint.ConstraintLayout> diff --git a/Realisation_vol/App/app/src/main/res/layout/activity_main.xml b/Realisation_vol/App/app/src/main/res/layout/activity_main.xml new file mode 100644 index 0000000..50ddca3 --- /dev/null +++ b/Realisation_vol/App/app/src/main/res/layout/activity_main.xml @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="utf-8"?>
+<android.support.constraint.ConstraintLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ android:id="@+id/layout_main"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ tools:context=".MainActivity">
+
+ <TextView
+ android:id="@+id/welcome_text"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/start_text"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintLeft_toLeftOf="parent"
+ app:layout_constraintRight_toRightOf="parent"
+ app:layout_constraintTop_toTopOf="parent" />
+
+ <android.support.v7.widget.AppCompatButton
+ android:id="@+id/button_Main_Load"
+ android:onClick="btnMainLoad"
+ android:text="@string/button_Load"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:background="@drawable/rounded_button_blue"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintLeft_toLeftOf="parent"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintRight_toRightOf="parent"
+ app:layout_constraintTop_toBottomOf="@id/welcome_text"
+ app:layout_constraintVertical_bias="0.7"
+ app:layout_constraintHorizontal_bias="0.4"/>
+</android.support.constraint.ConstraintLayout>
\ No newline at end of file diff --git a/Realisation_vol/App/app/src/main/res/layout/activity_woking.xml b/Realisation_vol/App/app/src/main/res/layout/activity_woking.xml new file mode 100644 index 0000000..004a376 --- /dev/null +++ b/Realisation_vol/App/app/src/main/res/layout/activity_woking.xml @@ -0,0 +1,59 @@ +<?xml version="1.0" encoding="utf-8"?>
+<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:id="@+id/layout_working"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="horizontal"
+ tools:context=".WorkingActivity">
+
+ <android.view.TextureView
+ android:id="@+id/retour_video"
+ android:layout_width="0dp"
+ android:layout_height="match_parent"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintHeight_percent="1"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintWidth_percent="0.7">
+
+ </android.view.TextureView>
+
+ <TextView
+ android:id="@+id/info_speed"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ app:layout_constraintTop_toBottomOf="@id/info_text"
+ app:layout_constraintLeft_toLeftOf="parent"
+ android:background="@drawable/rounded_button_black"/>
+ <TextView
+ android:id="@+id/info_text"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintLeft_toLeftOf="parent"
+ android:background="@drawable/rounded_button_black"/>
+ <TextView
+ android:id="@+id/battery_level"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:background="@drawable/rounded_button_black"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintStart_toStartOf="parent" />
+
+ <org.osmdroid.views.MapView
+ android:id="@+id/mapView"
+ android:layout_width="0dp"
+ android:layout_height="match_parent"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintHeight_percent="1"
+ app:layout_constraintHorizontal_bias="1"
+ app:layout_constraintStart_toEndOf="@id/retour_video"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintWidth_percent="0.3" />
+ <!--app:layout_constraintVertical_bias="0"-->
+
+
+
+</android.support.constraint.ConstraintLayout>
\ No newline at end of file |
