Commit ab6415ae authored by 马乐's avatar 马乐

1.增加白天暗色主题基础的资源文件

2.完成了状态栏UI 3.做了一部分主页UI
parent e1af7ba8
......@@ -60,6 +60,7 @@ dependencies {
implementation 'org.jetbrains.kotlin:kotlin-reflect:1.7.20'
implementation 'com.geyifeng.immersionbar:immersionbar:3.2.2'
implementation 'com.github.mik3y:usb-serial-for-android:3.5.1'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
......
......@@ -2,11 +2,11 @@ package com.waytous.anticollision.ui
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.blankj.utilcode.util.BarUtils
import com.blankj.utilcode.util.ColorUtils
import com.gyf.immersionbar.ImmersionBar
import com.waytous.anticollision.config.DeviceConfig
import com.waytous.anticollision.R
import com.waytous.anticollision.databinding.ActivityMainBinding
import com.waytous.anticollision.tcp.Session
import kotlin.concurrent.thread
class MainActivity : AppCompatActivity() {
......@@ -14,24 +14,17 @@ class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
//设置下布局向上移动状态栏的高度
BarUtils.setStatusBarColor(this, ColorUtils.getColor(R.color.status_bg_color))
//设置隐藏虚拟按键
BarUtils.setNavBarVisibility(this,false);
supportActionBar?.hide()
ImmersionBar.with(this)
.statusBarAlpha(0.0f)
.statusBarDarkFont(true)
.fitsSystemWindows(true)
// ImmersionBar.with(this)
// .statusBarAlpha(0.0f)
// .statusBarDarkFont(true)
// .fitsSystemWindows(true)
binding = ActivityMainBinding.inflate(layoutInflater)
setContentView(binding.root)
DeviceConfig.province = 11
DeviceConfig.city = 0
DeviceConfig.phoneNumber = "18801022222"
DeviceConfig.HostConfig.host = "47.100.112.218"
DeviceConfig.HostConfig.port = 8808
// DeviceConfig.HostConfig.host = "192.168.9.48"
// DeviceConfig.HostConfig.port = 1022
val session = Session()
thread { session.login() }
}
}
\ No newline at end of file
......@@ -11,6 +11,7 @@ import com.blankj.utilcode.util.LogUtils
import com.mapbox.geojson.Point
import com.mapbox.maps.CameraOptions
import com.mapbox.maps.MapView
import com.mapbox.maps.MapboxMap
import com.mapbox.maps.Style
import com.mapbox.maps.extension.observable.eventdata.MapLoadingErrorEventData
import com.mapbox.maps.extension.style.layers.generated.lineLayer
......@@ -19,7 +20,9 @@ import com.mapbox.maps.extension.style.layers.properties.generated.LineJoin
import com.mapbox.maps.extension.style.sources.TileSet
import com.mapbox.maps.extension.style.sources.generated.geoJsonSource
import com.mapbox.maps.extension.style.style
import com.mapbox.maps.plugin.Plugin
import com.mapbox.maps.plugin.delegates.listeners.OnMapLoadErrorListener
import com.mapbox.maps.plugin.logo.LogoPlugin
import com.mapbox.maps.renderer.RendererError
import com.mapbox.maps.renderer.RendererSetupErrorListener
import com.waytous.anticollision.databinding.FragmentHomeBinding
......@@ -28,10 +31,10 @@ class HomeFragment : Fragment() {
private var _binding: FragmentHomeBinding? = null
// This property is only valid between onCreateView and
// onDestroyView.
private val binding get() = _binding!!
private lateinit var mapBox:MapboxMap
override fun onCreateView(
inflater: LayoutInflater,
container: ViewGroup?,
......@@ -43,14 +46,16 @@ class HomeFragment : Fragment() {
_binding = FragmentHomeBinding.inflate(inflater, container, false)
val root: View = binding.root
val mapView: MapView = binding.mapView
// val mapView = MapView(this.context!!)
mapView.getMapboxMap().setCamera(
val logoPlugin = mapView.getPlugin<LogoPlugin>(Plugin.MAPBOX_LOGO_PLUGIN_ID)
logoPlugin?.enabled = false
mapBox = mapView.getMapboxMap()
mapBox.setCamera(
CameraOptions.Builder()
// .center(
// Point.fromLngLat(
// LATITUDE,
// LONGITUDE
// ))
.center(
Point.fromLngLat(
LATITUDE,
LONGITUDE
))
.zoom(ZOOM).build()
)
mapView.getMapboxMap().addOnMapLoadErrorListener(object :OnMapLoadErrorListener{
......
package com.waytous.anticollision.ui.video
import androidx.lifecycle.ViewModelProvider
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.waytous.anticollision.R
class VideoHomeFragment : Fragment() {
companion object {
fun newInstance() = VideoHomeFragment()
}
private lateinit var viewModel: VideoHomeViewModel
override fun onCreateView(
inflater: LayoutInflater, container: ViewGroup?,
savedInstanceState: Bundle?
): View? {
return inflater.inflate(R.layout.fragment_video_home, container, false)
}
override fun onActivityCreated(savedInstanceState: Bundle?) {
super.onActivityCreated(savedInstanceState)
viewModel = ViewModelProvider(this)[VideoHomeViewModel::class.java]
// TODO: Use the ViewModel
}
}
\ No newline at end of file
package com.waytous.anticollision.ui.video
import androidx.lifecycle.ViewModel
class VideoHomeViewModel : ViewModel() {
// TODO: Implement the ViewModel
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="#ff3684f9" />
<corners android:topLeftRadius="350dp" android:topRightRadius="350dp" android:bottomLeftRadius="350dp" android:bottomRightRadius="350dp" />
</shape>
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<stroke android:width="1dp" android:color="@color/matter_text_color" />
<corners android:topLeftRadius="350dp" android:topRightRadius="350dp" android:bottomLeftRadius="350dp" android:bottomRightRadius="350dp" />
</shape>
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="#ff1f971d" />
<corners android:topLeftRadius="350dp" android:topRightRadius="350dp" android:bottomLeftRadius="350dp" android:bottomRightRadius="350dp" />
</shape>
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:width="106dp" android:height="44dp">
<shape android:shape="rectangle">
<stroke android:width="1dp" android:color="#ff3c3c3c" />
<corners android:topLeftRadius="5dp" android:topRightRadius="5dp" android:bottomLeftRadius="5dp" android:bottomRightRadius="5dp" />
</shape>
</item>
</layer-list>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:width="47dp" android:height="47dp">
<shape android:shape="rectangle">
<stroke android:width="2dp" android:color="#ff3684f9" />
<corners android:topLeftRadius="30dp" android:topRightRadius="30dp" android:bottomLeftRadius="30dp" android:bottomRightRadius="30dp" />
</shape>
</item>
</layer-list>
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="#fffc5454" />
<corners android:topLeftRadius="350dp" android:topRightRadius="350dp" android:bottomLeftRadius="350dp" android:bottomRightRadius="350dp" />
</shape>
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:width="1dp" android:color="#ffcfcfcf" />
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:width="106dp" android:height="44dp">
<shape android:shape="rectangle">
<stroke android:width="1dp" android:color="#ffc1c1c1" />
<corners android:topLeftRadius="5dp" android:topRightRadius="5dp" android:bottomLeftRadius="5dp" android:bottomRightRadius="5dp" />
</shape>
</item>
</layer-list>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:width="1dp" android:height="8dp">
<shape android:shape="rectangle">
<stroke android:width="1dp" android:color="#ffcfcfcf" />
<corners android:topLeftRadius="0dp" android:topRightRadius="0dp" android:bottomLeftRadius="0dp" android:bottomRightRadius="0dp" />
</shape>
</item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:width="1dp" android:height="8dp">
<shape android:shape="rectangle">
<stroke android:width="1dp" android:color="#ffcfcfcf" />
<corners android:topLeftRadius="0dp" android:topRightRadius="0dp" android:bottomLeftRadius="0dp" android:bottomRightRadius="0dp" />
</shape>
</item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="#ff3684f9" />
<corners android:topLeftRadius="350dp" android:topRightRadius="350dp" android:bottomLeftRadius="350dp" android:bottomRightRadius="350dp" />
</shape>
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:width="465dp" android:height="318dp">
<shape android:shape="rectangle">
<stroke android:width="2dp" android:color="#33ffffff" />
<solid android:color="#ff000000" />
<corners android:topLeftRadius="8dp" android:topRightRadius="8dp" android:bottomLeftRadius="8dp" android:bottomRightRadius="8dp" />
</shape>
</item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<stroke android:width="1dp" android:color="@color/matter_text_color" />
<corners android:topLeftRadius="350dp" android:topRightRadius="350dp" android:bottomLeftRadius="350dp" android:bottomRightRadius="350dp" />
</shape>
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="#ff1f971d" />
<corners android:topLeftRadius="350dp" android:topRightRadius="350dp" android:bottomLeftRadius="350dp" android:bottomRightRadius="350dp" />
</shape>
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:width="106dp" android:height="44dp">
<shape android:shape="rectangle">
<stroke android:width="1dp" android:color="#ffc1c1c1" />
<corners android:topLeftRadius="5dp" android:topRightRadius="5dp" android:bottomLeftRadius="5dp" android:bottomRightRadius="5dp" />
</shape>
</item>
</layer-list>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:width="47dp" android:height="47dp">
<shape android:shape="rectangle">
<stroke android:width="2dp" android:color="#ff3684f9" />
<corners android:topLeftRadius="30dp" android:topRightRadius="30dp" android:bottomLeftRadius="30dp" android:bottomRightRadius="30dp" />
</shape>
</item>
</layer-list>
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="#fffc5454" />
<corners android:topLeftRadius="350dp" android:topRightRadius="350dp" android:bottomLeftRadius="350dp" android:bottomRightRadius="350dp" />
</shape>
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:width="1dp" android:color="#ff5b5b5b" />
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.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/container"
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/myStatusBar"
android:layout_width="match_parent"
android:layout_height="18dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/mine_logo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginTop="4.5dp"
android:src="@mipmap/default_logo"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<androidx.appcompat.widget.AppCompatImageView
android:layout_width="1dp"
android:layout_height="wrap_content"
android:layout_marginStart="5.5dp"
android:src="@drawable/drawable_divide_line"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toEndOf="@id/mine_logo"
app:layout_constraintTop_toTopOf="parent" />
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/myStatusName"
style="@style/StatusBarTextStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxEms="8"
android:maxLength="8"
android:text="矿卡车载管理系统"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toEndOf="@id/mine_logo"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="SmallSp" />
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="wrap_content"
android:layout_height="0dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent">
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/vehicleNumber"
style="@style/StatusBarTextStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxEms="6"
android:maxLength="6"
android:text="KK-001"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="SmallSp" />
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/driverName"
style="@style/StatusBarTextStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxEms="4"
android:maxLength="4"
android:text="上官云"
android:layout_marginStart="7dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toEndOf="@+id/vehicleNumber"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="SmallSp" />
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/matterType"
style="@style/StatusBarTextStyle"
android:background="@drawable/drawable_bg_matter_status"
android:layout_width="38dp"
android:layout_height="wrap_content"
android:maxEms="2"
android:maxLength="2"
android:text="六上"
android:layout_marginStart="7dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toEndOf="@+id/driverName"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="SmallSp" />
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/readyType"
style="@style/StatusBarTextStyle"
android:background="@drawable/drawable_bg_ready_status"
android:layout_width="38dp"
android:layout_height="wrap_content"
android:maxEms="2"
android:maxLength="2"
android:text="就绪"
android:layout_marginStart="3.5dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toEndOf="@+id/matterType"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="SmallSp" />
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/carriedTruckNum"
style="@style/StatusBarTextStyle"
android:background="@drawable/drawable_bg_carried_truck_num"
android:layout_width="38dp"
android:layout_height="wrap_content"
android:maxEms="2"
android:maxLength="2"
android:text="16"
android:layout_marginStart="3.5dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toEndOf="@+id/matterType"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="SmallSp" />
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/violationsNum"
style="@style/StatusBarTextStyle"
android:background="@drawable/drawable_bg_violations_num"
android:layout_width="38dp"
android:layout_height="wrap_content"
android:maxEms="2"
android:maxLength="2"
android:text="3"
android:layout_marginStart="3.5dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toEndOf="@+id/matterType"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="SmallSp" />
</androidx.constraintlayout.widget.ConstraintLayout>
<TextClock
android:id="@+id/systemTimeStamp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="@style/StatusBarTextStyle"
android:layout_marginEnd="8dp"
android:format24Hour="yyyy.MM.dd HH:mm:ss"
android:format12Hour="yyyy.MM.dd hh:mm:ss"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.fragment.app.FragmentContainerView
android:id="@+id/nav_host_fragment_activity_main"
android:name="androidx.navigation.fragment.NavHostFragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_height="0dp"
app:defaultNavHost="true"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintTop_toBottomOf="@+id/myStatusBar"
app:navGraph="@navigation/mobile_navigation" />
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout 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"
xmlns:app="http://schemas.android.com/apk/res-auto"
tools:context=".ui.video.VideoHomeFragment">
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/workingState"
android:layout_width="48dp"
android:layout_height="48dp"
android:src="@mipmap/normal_status"
android:adjustViewBounds="true"
android:layout_marginTop="13dp"
android:layout_marginStart="8dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"/>
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/speedText"
android:background="@drawable/drawable_bg_speed_txt"
android:layout_width="48dp"
android:layout_height="48dp"
android:textColor="@color/home_text_color"
android:gravity="center"
android:layout_marginStart="6dp"
app:layout_constraintStart_toEndOf="@id/workingState"
app:layout_constraintTop_toTopOf="@id/workingState"/>
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/receivedCommTime"
android:layout_width="wrap_content"
android:layout_height="17dp"
android:textColor="@color/home_text_color"
android:gravity="center"
android:layout_marginStart="9dp"
android:layout_marginTop="3dp"
android:text="2023/3/10 08:12:34"
android:textSize="12sp"
app:layout_constraintStart_toEndOf="@id/speedText"
app:layout_constraintTop_toTopOf="@id/speedText"/>
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/loadingArea"
android:layout_width="wrap_content"
android:layout_height="21dp"
android:textColor="@color/home_text_color"
android:gravity="center"
android:layout_marginTop="3.5dp"
android:text="装载区01"
android:textSize="15sp"
app:layout_constraintStart_toStartOf="@id/receivedCommTime"
app:layout_constraintTop_toBottomOf="@id/receivedCommTime"/>
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/toFlag"
android:layout_width="10sp"
android:layout_height="5dp"
android:adjustViewBounds="true"
android:gravity="center"
android:layout_marginTop="8dp"
android:layout_marginStart="8dp"
android:textSize="15sp"
app:layout_constraintStart_toEndOf="@id/loadingArea"
app:layout_constraintTop_toTopOf="@id/loadingArea"/>
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/unloadingArea"
android:layout_width="wrap_content"
android:layout_height="21dp"
android:textColor="@color/home_text_color"
android:gravity="center"
android:layout_marginStart="8dp"
android:text="卸载区01"
android:textSize="15sp"
app:layout_constraintStart_toEndOf="@id/toFlag"
app:layout_constraintTop_toTopOf="@id/loadingArea"/>
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/reminderInfoText"
android:layout_width="106dp"
android:layout_height="44dp"
style="@style/ReminderInfoTextStyle"
android:text="当前无提示信息"
app:layout_constraintStart_toEndOf="@id/unloadingArea"
app:layout_constraintTop_toTopOf="@id/receivedCommTime"
tools:ignore="SmallSp" />
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.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"
xmlns:mapbox="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/drawable_bg_map_box"
tools:context=".ui.MainActivity">
<com.mapbox.maps.MapView
android:id="@+id/mapView"
android:layout_width="0dp"
android:layout_height="0dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
mapbox:mapbox_resourcesAccessToken="@string/map_box_public_key" />
<androidx.appcompat.widget.AppCompatImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/emergency_stop"
android:layout_marginStart="10.5dp"
android:layout_marginBottom="11.5dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"/>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
......@@ -3,12 +3,17 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/mobile_navigation"
app:startDestination="@+id/navigation_home">
app:startDestination="@id/videoHomeFragment">
<fragment
android:id="@+id/navigation_home"
android:name="com.waytous.anticollision.ui.home.HomeFragment"
android:label="@string/title_home"
tools:layout="@layout/fragment_home" />
<fragment
android:id="@+id/videoHomeFragment"
android:name="com.waytous.anticollision.ui.video.VideoHomeFragment"
android:label="fragment_video_home"
tools:layout="@layout/fragment_video_home" />
</navigation>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="purple_200">#FFBB86FC</color>
<color name="purple_500">#FF6200EE</color>
<color name="purple_700">#FF3700B3</color>
<color name="teal_200">#FF03DAC5</color>
<color name="teal_700">#FF018786</color>
<color name="black">#FF000000</color>
<color name="white">#FFFFFFFF</color>
<color name="color_ff333333">#ff333333</color>
<color name="color_0052D8">#ff0052d8</color>
<color name="status_bg_color">#e00b0b0b</color>
<color name="home_text_color">#ffffffff</color>
<color name="matter_text_color">#ff3c3c3c</color>
</resources>
\ No newline at end of file
......@@ -14,7 +14,7 @@
<!-- 启动页 -->
<style name="SplashTheme" parent="Theme.HTAnticollision">
<!--给window窗口设置背景图-->
<item name="android:windowBackground">@mipmap/splash_background</item>
<item name="android:windowBackground">@drawable/background_main</item>
<!--设置顶部状态栏是否为透明-->
<item name="android:windowTranslucentStatus">false</item>
......@@ -30,4 +30,21 @@
<item name="android:windowDisablePreview">false</item>
<item name="android:windowIsTranslucent">false</item>
</style>
<style name="StatusBarTextStyle" parent="Theme.HTAnticollision">
<item name="android:textColor">@color/home_text_color</item>
<item name="android:ellipsize">end</item>
<item name="singleLine">true</item>
<item name="android:textSize">10sp</item>
<item name="android:layout_marginStart">8dp</item>
</style>
<style name="ReminderInfoTextStyle" parent="Theme.HTAnticollision">
<item name="background">@drawable/drawable_bg_reminder_info</item>
<item name="android:gravity">center</item>
<item name="android:textColor">@color/home_text_color</item>
<item name="android:ellipsize">end</item>
<item name="singleLine">true</item>
<item name="android:ems">8</item>
<item name="android:maxLength">8</item>
<item name="android:textSize">10sp</item>
</style>
</resources>
\ No newline at end of file
......@@ -9,4 +9,7 @@
<color name="white">#FFFFFFFF</color>
<color name="color_ff333333">#ff333333</color>
<color name="color_0052D8">#ff0052d8</color>
<color name="status_bg_color">#ebefefef</color>
<color name="home_text_color">#ff333333</color>
<color name="matter_text_color">#ffc1c1c1</color>
</resources>
\ No newline at end of file
......@@ -3,8 +3,8 @@
<string name="title_home">Home</string>
<string name="title_dashboard">Dashboard</string>
<string name="title_notifications">Notifications</string>
<string name="map_box_public_key">pk.eyJ1IjoibWFybGxlciIsImEiOiJjbGVhMXlmeXIwdmRzM29vNmM4aDA1M202In0.tfLD_AOs1OPmg5rLERcbfw</string>
<string name="waytous_logo">waytous</string>
<string name="loading">Loading…</string>
<string name="text_progress">%1$d</string>
<string name="map_box_public_key">pk.eyJ1IjoibWFybGxlciIsImEiOiJjbGVhMXlmeXIwdmRzM29vNmM4aDA1M202In0.tfLD_AOs1OPmg5rLERcbfw</string>
</resources>
\ No newline at end of file
......@@ -13,7 +13,7 @@
<!-- 启动页 -->
<style name="SplashTheme" parent="Theme.HTAnticollision">
<!--给window窗口设置背景图-->
<item name="android:windowBackground">@mipmap/splash_background</item>
<item name="android:windowBackground">@drawable/background_main</item>
<!--设置顶部状态栏是否为透明-->
<item name="android:windowTranslucentStatus">false</item>
......@@ -29,4 +29,21 @@
<item name="android:windowDisablePreview">false</item>
<item name="android:windowIsTranslucent">false</item>
</style>
<style name="StatusBarTextStyle" parent="Theme.HTAnticollision">
<item name="android:gravity">center</item>
<item name="android:textColor">@color/home_text_color</item>
<item name="android:ellipsize">end</item>
<item name="singleLine">true</item>
<item name="android:textSize">10sp</item>
</style>
<style name="ReminderInfoTextStyle" parent="Theme.HTAnticollision">
<item name="background">@drawable/drawable_bg_reminder_info</item>
<item name="android:gravity">center</item>
<item name="android:textColor">@color/home_text_color</item>
<item name="android:ellipsize">end</item>
<item name="singleLine">true</item>
<item name="android:ems">8</item>
<item name="android:maxLength">8</item>
<item name="android:textSize">10sp</item>
</style>
</resources>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment