hierarchy update
This commit is contained in:
parent
9e36af3f4b
commit
d8a1345a4d
@ -7,7 +7,7 @@
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:label="@string/app_name"
|
||||
android:roundIcon="@mipmap/ic_launcher_round"
|
||||
android:supportsRtl="true"
|
||||
android:supportsRtl="false"
|
||||
android:theme="@style/Theme.FlightGearControllerApp">
|
||||
|
||||
<activity android:name=".views.MainActivity"
|
||||
|
@ -0,0 +1,4 @@
|
||||
package com.example.flightgearcontrollerapp.model
|
||||
|
||||
class FG_model {
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
package com.example.flightgearcontrollerapp.view_model
|
||||
|
||||
class VM_connection {
|
||||
}
|
@ -5,7 +5,7 @@
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:background="@drawable/background"
|
||||
android:background="@mipmap/background"
|
||||
tools:context=".views.MainActivity">
|
||||
|
||||
<LinearLayout
|
||||
@ -108,31 +108,53 @@
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="70"
|
||||
android:layout_weight="95"
|
||||
android:weightSum="100"
|
||||
android:background="@color/black_60"
|
||||
android:orientation="vertical" />
|
||||
android:orientation="horizontal">
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/widget_joystick"
|
||||
android:layout_width="290sp"
|
||||
android:layout_height="290sp"
|
||||
android:layout_gravity="center"
|
||||
android:layout_weight="0" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/text_throttle"
|
||||
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center"
|
||||
android:rotation="-90"
|
||||
android:text="@string/txt_throttle"
|
||||
android:textColor="@color/black_60"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<com.google.android.material.slider.Slider
|
||||
android:layout_width="300sp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginStart="-120sp"
|
||||
android:layout_marginTop="140sp"
|
||||
android:rotation="270"
|
||||
android:background="@color/white_60"
|
||||
android:value="0"
|
||||
android:valueFrom="0"
|
||||
android:valueTo="1" />
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="30"
|
||||
android:layout_weight="5"
|
||||
android:orientation="vertical"
|
||||
android:background="@color/white_40"
|
||||
android:paddingTop="5sp"
|
||||
android:paddingBottom="5sp">
|
||||
<TextView
|
||||
android:id="@+id/text_throttle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/txt_throttle"
|
||||
android:textSize="18sp"
|
||||
android:textColor="@color/black_60"
|
||||
android:gravity="center"
|
||||
android:textStyle="bold"
|
||||
android:paddingLeft="15sp"
|
||||
android:paddingRight="15sp"
|
||||
android:paddingTop="5sp"
|
||||
android:paddingBottom="0sp"/>
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/text_rudder"
|
||||
@ -147,6 +169,12 @@
|
||||
android:paddingRight="15sp"
|
||||
android:paddingTop="5sp"
|
||||
android:paddingBottom="0sp"/>
|
||||
<com.google.android.material.slider.Slider
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="match_parent"
|
||||
android:valueFrom="-1"
|
||||
android:valueTo="1"
|
||||
android:value="0" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
|
BIN
app/src/main/res/mipmap-anydpi-v26/joystick.png
Normal file
BIN
app/src/main/res/mipmap-anydpi-v26/joystick.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.0 KiB |
BIN
app/src/main/res/mipmap-anydpi-v26/joystick_bg.png
Normal file
BIN
app/src/main/res/mipmap-anydpi-v26/joystick_bg.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.9 KiB |
Before Width: | Height: | Size: 259 KiB After Width: | Height: | Size: 259 KiB |
@ -8,6 +8,7 @@
|
||||
<color name="black">#FF000000</color>
|
||||
<color name="white">#FFFFFFFF</color>
|
||||
<color name="black_60">#99000000</color>
|
||||
<color name="white_60">#99FFFFFF</color>
|
||||
<color name="white_40">#66FFFFFF</color>
|
||||
<color name="navy_blue">#FF000080</color>
|
||||
</resources>
|
||||
|
Loading…
Reference in New Issue
Block a user