Updated version

- Update display on each received packet
- Cleaned up layout
- Proper handling of signs for register display
This commit is contained in:
Adrian Rumpold
2017-06-11 16:47:59 +02:00
parent 1322ec2664
commit b2ffcab986
13 changed files with 480 additions and 665 deletions

View File

@@ -1,47 +1,26 @@
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="#0099cc"
android:background="@android:color/background_light"
tools:context=".ui.DSKYActivity">
<!-- The primary full-screen view. This can be replaced with whatever view
is needed to present your content, e.g. VideoView, SurfaceView,
TextureView, etc. -->
<include
android:id="@+id/contentView"
layout="@layout/layout_indicator_lights"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="start|top" />
<!-- This FrameLayout insets its children based on system windows using
android:fitsSystemWindows. -->
<include
layout="@layout/layout_7seg"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:layout_gravity="end|top" />
<LinearLayout
android:orientation="horizontal"
<include
layout="@layout/layout_keyboard"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="left|top"
android:id="@+id/controlBar"></LinearLayout>
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/material_grey_100">
<include
android:layout_width="wrap_content"
android:layout_height="wrap_content"
layout="@layout/layout_indicator_lights"
android:layout_gravity="left|top"
android:id="@+id/contentView" />
<include
android:layout_width="449dp"
android:layout_height="wrap_content"
layout="@layout/layout_7seg"
android:layout_gravity="right|top" />
<include
android:layout_width="match_parent"
android:layout_height="282dp"
layout="@layout/layout_keyboard"
android:layout_gravity="center_horizontal|bottom" />
</FrameLayout>
</FrameLayout>
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal|bottom" />
</FrameLayout>