parent
963cd5fe9a
commit
b407c73ae4
5 changed files with 129 additions and 3 deletions
@ -0,0 +1,34 @@ |
|||||||
|
package com.project.survey.ui.home |
||||||
|
|
||||||
|
import blankj.utilcode.util.AppUtils |
||||||
|
import com.project.survey.R |
||||||
|
import com.project.survey.databinding.ActivityAboutBinding |
||||||
|
import com.project.survey.ui.base.BaseBindingActivity |
||||||
|
import com.project.survey.util.ActivityNavUtil |
||||||
|
|
||||||
|
/** |
||||||
|
* 关于 |
||||||
|
*/ |
||||||
|
class AboutActivity : BaseBindingActivity<ActivityAboutBinding>() { |
||||||
|
|
||||||
|
companion object { |
||||||
|
fun start() { |
||||||
|
ActivityNavUtil.startActivity<AboutActivity> {} |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
override fun getBinding() = ActivityAboutBinding.inflate(layoutInflater) |
||||||
|
|
||||||
|
override fun initView() { |
||||||
|
immersionToolbar(mBinding.toolbar, R.string.about) |
||||||
|
} |
||||||
|
|
||||||
|
override fun initData() { |
||||||
|
mBinding.tvVersion.text = "工程测量综合管理系统 V${AppUtils.getAppVersionName()}" |
||||||
|
} |
||||||
|
|
||||||
|
override fun initListener() { |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
@ -0,0 +1,83 @@ |
|||||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||||
|
<LinearLayout 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:layout_width="match_parent" |
||||||
|
android:layout_height="match_parent" |
||||||
|
android:orientation="vertical"> |
||||||
|
|
||||||
|
<com.google.android.material.appbar.MaterialToolbar |
||||||
|
android:id="@+id/toolbar" |
||||||
|
android:layout_width="match_parent" |
||||||
|
android:layout_height="?actionBarSize" |
||||||
|
android:background="@color/transparent" |
||||||
|
app:navigationIcon="@drawable/icon_toolbar_back" |
||||||
|
app:popupTheme="@style/ThemeOverlay.AppCompat.Light" |
||||||
|
app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" |
||||||
|
app:titleCentered="true" |
||||||
|
app:titleTextAppearance="@style/ToolbarTextAppearance" /> |
||||||
|
|
||||||
|
<androidx.constraintlayout.widget.ConstraintLayout |
||||||
|
android:layout_width="match_parent" |
||||||
|
android:layout_height="match_parent"> |
||||||
|
|
||||||
|
<ImageView |
||||||
|
android:id="@+id/ic_launcher" |
||||||
|
android:layout_width="@dimen/sw_60dp" |
||||||
|
android:layout_height="@dimen/sw_60dp" |
||||||
|
android:layout_marginTop="@dimen/sw_30dp" |
||||||
|
android:src="@mipmap/icon_launcher" |
||||||
|
app:layout_constraintEnd_toEndOf="parent" |
||||||
|
app:layout_constraintStart_toStartOf="parent" |
||||||
|
app:layout_constraintTop_toTopOf="parent" /> |
||||||
|
|
||||||
|
<TextView |
||||||
|
android:id="@+id/tv_version" |
||||||
|
android:layout_width="wrap_content" |
||||||
|
android:layout_height="wrap_content" |
||||||
|
android:layout_marginTop="@dimen/sw_20dp" |
||||||
|
android:textColor="@color/text_color_666" |
||||||
|
android:textSize="@dimen/sw_14sp" |
||||||
|
app:layout_constraintEnd_toEndOf="parent" |
||||||
|
app:layout_constraintStart_toStartOf="parent" |
||||||
|
app:layout_constraintTop_toBottomOf="@id/ic_launcher" |
||||||
|
tools:text="工程测量综合管理系统 V1.0.0" /> |
||||||
|
|
||||||
|
<TextView |
||||||
|
android:id="@+id/tv_support" |
||||||
|
android:layout_width="wrap_content" |
||||||
|
android:layout_height="wrap_content" |
||||||
|
android:layout_marginTop="@dimen/sw_5dp" |
||||||
|
android:text="上海院提供产品与技术支持" |
||||||
|
android:textColor="@color/text_color_666" |
||||||
|
android:textSize="@dimen/sw_14sp" |
||||||
|
app:layout_constraintEnd_toEndOf="parent" |
||||||
|
app:layout_constraintStart_toStartOf="parent" |
||||||
|
app:layout_constraintTop_toBottomOf="@id/tv_version" /> |
||||||
|
|
||||||
|
<TextView |
||||||
|
android:id="@+id/tv_copyright" |
||||||
|
android:layout_width="wrap_content" |
||||||
|
android:layout_height="wrap_content" |
||||||
|
android:text="Copyright© 2023-2025" |
||||||
|
android:textColor="@color/text_color_666" |
||||||
|
android:textSize="@dimen/sw_14sp" |
||||||
|
app:layout_constraintBottom_toTopOf="@id/tv_company" |
||||||
|
app:layout_constraintEnd_toEndOf="parent" |
||||||
|
app:layout_constraintStart_toStartOf="parent" /> |
||||||
|
|
||||||
|
<TextView |
||||||
|
android:id="@+id/tv_company" |
||||||
|
android:layout_width="wrap_content" |
||||||
|
android:layout_height="wrap_content" |
||||||
|
android:layout_marginBottom="@dimen/sw_50dp" |
||||||
|
android:text="上海勘测设计研究院有限公司" |
||||||
|
android:textColor="@color/text_color_666" |
||||||
|
android:textSize="@dimen/sw_14sp" |
||||||
|
app:layout_constraintBottom_toBottomOf="parent" |
||||||
|
app:layout_constraintEnd_toEndOf="parent" |
||||||
|
app:layout_constraintStart_toStartOf="parent" /> |
||||||
|
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout> |
||||||
|
|
||||||
|
</LinearLayout> |
||||||
Loading…
Reference in new issue