change background image
@ -16,6 +16,7 @@ public class HomeViewModel extends ViewModel {
|
|||||||
private final MutableLiveData<Float> rotation;
|
private final MutableLiveData<Float> rotation;
|
||||||
RotateThread rotateThread;
|
RotateThread rotateThread;
|
||||||
private Handler handler;
|
private Handler handler;
|
||||||
|
private Handler serialThreadHandle;
|
||||||
|
|
||||||
public HomeViewModel() {
|
public HomeViewModel() {
|
||||||
handler = new Handler(Looper.getMainLooper()) {
|
handler = new Handler(Looper.getMainLooper()) {
|
||||||
@ -28,8 +29,6 @@ public class HomeViewModel extends ViewModel {
|
|||||||
};
|
};
|
||||||
rotation = new MutableLiveData<>();
|
rotation = new MutableLiveData<>();
|
||||||
rotation.setValue((float) 0);
|
rotation.setValue((float) 0);
|
||||||
// rotateThread = new RotateThread(handler);
|
|
||||||
// rotateThread.start();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void initThread() {
|
public void initThread() {
|
||||||
|
BIN
app/src/main/res/drawable/arrow.png
Normal file
After Width: | Height: | Size: 466 B |
BIN
app/src/main/res/drawable/bg.png
Normal file
After Width: | Height: | Size: 322 KiB |
BIN
app/src/main/res/drawable/bg1.png
Normal file
After Width: | Height: | Size: 612 KiB |
BIN
app/src/main/res/drawable/clodeside.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
app/src/main/res/drawable/closeup.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
app/src/main/res/drawable/head.png
Normal file
After Width: | Height: | Size: 136 KiB |
BIN
app/src/main/res/drawable/openside.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
app/src/main/res/drawable/openup.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
app/src/main/res/drawable/pan.png
Normal file
After Width: | Height: | Size: 23 KiB |
BIN
app/src/main/res/drawable/range_input.png
Normal file
After Width: | Height: | Size: 4.5 KiB |
BIN
app/src/main/res/drawable/water.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
@ -4,7 +4,7 @@
|
|||||||
android:id="@+id/container"
|
android:id="@+id/container"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:paddingTop="?attr/actionBarSize">
|
android:paddingTop="0dp">
|
||||||
|
|
||||||
<com.google.android.material.bottomnavigation.BottomNavigationView
|
<com.google.android.material.bottomnavigation.BottomNavigationView
|
||||||
android:id="@+id/nav_view"
|
android:id="@+id/nav_view"
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
|
android:background="@drawable/bg"
|
||||||
tools:context=".ui.home.HomeFragment">
|
tools:context=".ui.home.HomeFragment">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
|