init commit
This commit is contained in:
8
app/src/main/res/drawable/btnstartcolor.xml
Normal file
8
app/src/main/res/drawable/btnstartcolor.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_focused="true" android:state_pressed="true"
|
||||
android:drawable="@android:color/holo_green_light" />
|
||||
<item android:state_focused="false" android:state_pressed="true"
|
||||
android:drawable="@android:color/holo_green_light" />
|
||||
<item android:drawable="@android:color/holo_green_dark" />
|
||||
</selector>
|
||||
8
app/src/main/res/drawable/btnstopcolor.xml
Normal file
8
app/src/main/res/drawable/btnstopcolor.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_focused="true" android:state_pressed="true"
|
||||
android:drawable="@android:color/holo_red_light" />
|
||||
<item android:state_focused="false" android:state_pressed="true"
|
||||
android:drawable="@android:color/holo_red_light" />
|
||||
<item android:drawable="@android:color/holo_red_dark" />
|
||||
</selector>
|
||||
BIN
app/src/main/res/drawable/icon.png
Normal file
BIN
app/src/main/res/drawable/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.8 KiB |
77
app/src/main/res/layout/activity_main.xml
Normal file
77
app/src/main/res/layout/activity_main.xml
Normal file
@@ -0,0 +1,77 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:keepScreenOn="true"
|
||||
tools:context="de.fhws.indoor.sensorreadout.MainActivity">
|
||||
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:paddingLeft="@dimen/activity_horizontal_margin"
|
||||
android:paddingRight="@dimen/activity_horizontal_margin"
|
||||
android:paddingTop="@dimen/activity_vertical_margin"
|
||||
android:paddingBottom="@dimen/activity_vertical_margin"
|
||||
android:orientation="vertical"
|
||||
tools:context=".MainActivity"
|
||||
android:background="#333">
|
||||
|
||||
<Button
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="stop"
|
||||
android:id="@+id/btnStop"
|
||||
android:background="@drawable/btnstopcolor"/>
|
||||
|
||||
<Button
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="start"
|
||||
android:id="@+id/btnStart"
|
||||
android:background="@drawable/btnstartcolor"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<Spinner
|
||||
android:layout_width="58dip"
|
||||
android:layout_height="48dip"
|
||||
android:id="@+id/pathspinner"
|
||||
android:layout_marginLeft="66dip"
|
||||
android:layout_marginTop="16dip"
|
||||
android:background="#64bbe5"
|
||||
/>
|
||||
|
||||
<Spinner
|
||||
android:layout_width="58dip"
|
||||
android:layout_height="48dip"
|
||||
android:id="@+id/groundspinner"
|
||||
android:layout_marginLeft="66dip"
|
||||
android:layout_marginTop="64dip"
|
||||
android:background="#64bbe5"
|
||||
|
||||
android:layout_alignBottom="@+id/btnGround" />
|
||||
|
||||
<Button
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="96dip"
|
||||
android:text="Ground Truth"
|
||||
android:id="@+id/btnGround"
|
||||
android:layout_gravity="right"
|
||||
android:layout_marginLeft="125dip"
|
||||
android:layout_marginTop="16dip"
|
||||
android:layout_marginRight="16dip"
|
||||
android:background="#64bbe5"
|
||||
/>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:background="#222"
|
||||
android:layout_marginTop="126dip"
|
||||
android:orientation="horizontal"
|
||||
android:id="@+id/layoutMain">
|
||||
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
||||
9
app/src/main/res/menu/menu_main.xml
Normal file
9
app/src/main/res/menu/menu_main.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<menu 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"
|
||||
tools:context=".MainActivity">
|
||||
<item android:id="@+id/action_settings"
|
||||
android:title="@string/action_settings"
|
||||
android:orderInCategory="100"
|
||||
app:showAsAction="never"/>
|
||||
</menu>
|
||||
BIN
app/src/main/res/mipmap-hdpi/ic_launcher.png
Normal file
BIN
app/src/main/res/mipmap-hdpi/ic_launcher.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.3 KiB |
BIN
app/src/main/res/mipmap-mdpi/ic_launcher.png
Normal file
BIN
app/src/main/res/mipmap-mdpi/ic_launcher.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.2 KiB |
BIN
app/src/main/res/mipmap-xhdpi/ic_launcher.png
Normal file
BIN
app/src/main/res/mipmap-xhdpi/ic_launcher.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.7 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Normal file
BIN
app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.5 KiB |
BIN
app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Normal file
BIN
app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 10 KiB |
BIN
app/src/main/res/raw/blop.wav
Normal file
BIN
app/src/main/res/raw/blop.wav
Normal file
Binary file not shown.
BIN
app/src/main/res/raw/go.wav
Normal file
BIN
app/src/main/res/raw/go.wav
Normal file
Binary file not shown.
6
app/src/main/res/values-w820dp/dimens.xml
Normal file
6
app/src/main/res/values-w820dp/dimens.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<resources>
|
||||
<!-- Example customization of dimensions originally defined in res/values/dimens.xml
|
||||
(such as screen margins) for screens with more than 820dp of available width. This
|
||||
would include 7" and 10" devices in landscape (~960dp and ~1280dp respectively). -->
|
||||
<dimen name="activity_horizontal_margin">64dp</dimen>
|
||||
</resources>
|
||||
5
app/src/main/res/values/dimens.xml
Normal file
5
app/src/main/res/values/dimens.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<resources>
|
||||
<!-- Default screen margins, per the Android Design guidelines. -->
|
||||
<dimen name="activity_horizontal_margin">16dp</dimen>
|
||||
<dimen name="activity_vertical_margin">16dp</dimen>
|
||||
</resources>
|
||||
8
app/src/main/res/values/strings.xml
Normal file
8
app/src/main/res/values/strings.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<string name="app_name">Sensor Readout</string>
|
||||
<string name="hello_world">Hello world!</string>
|
||||
<string name="action_settings">Settings</string>
|
||||
|
||||
</resources>
|
||||
8
app/src/main/res/values/styles.xml
Normal file
8
app/src/main/res/values/styles.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<resources>
|
||||
|
||||
<!-- Base application theme. -->
|
||||
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
|
||||
<!-- Customize your theme here. -->
|
||||
</style>
|
||||
|
||||
</resources>
|
||||
Reference in New Issue
Block a user