我的相关页面,以及三方组件升级
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
package="com.dahe.gldriver">
|
||||
|
||||
<!-- //地图SDK(包含其搜索功能)需要的基础权限-->
|
||||
<!-- //地图SDK(包含其搜索功能)需要的基础权限-->
|
||||
<!--允许程序打开网络套接字-->
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
<!--允许程序设置内置sd卡的写权限-->
|
||||
@@ -15,6 +15,36 @@
|
||||
<!--允许程序访问CellID或WiFi热点来获取粗略的位置-->
|
||||
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
|
||||
|
||||
|
||||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
|
||||
<uses-permission android:name="android.permission.WRITE_MEDIA_STORAGE" />
|
||||
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
|
||||
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
|
||||
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />
|
||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
||||
<uses-permission android:name="android.permission.RECORD_AUDIO" />
|
||||
<uses-permission android:name="android.permission.CAMERA" />
|
||||
<uses-permission android:name="android.permission.VIBRATE" />
|
||||
|
||||
<!-- Android 13版本适配,细化存储权限-->
|
||||
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
|
||||
<uses-permission android:name="android.permission.READ_MEDIA_AUDIO" />
|
||||
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" />
|
||||
|
||||
<!-- 安卓11使用相机 -->
|
||||
<queries package="${applicationId}">
|
||||
<intent>
|
||||
<action android:name="android.media.action.IMAGE_CAPTURE">
|
||||
|
||||
</action>
|
||||
</intent>
|
||||
<intent>
|
||||
<action android:name="android.media.action.ACTION_VIDEO_CAPTURE">
|
||||
|
||||
</action>
|
||||
</intent>
|
||||
</queries>
|
||||
|
||||
<application
|
||||
android:name=".base.App"
|
||||
android:allowBackup="true"
|
||||
@@ -42,8 +72,9 @@
|
||||
android:name="android.notch_support"
|
||||
android:value="true" />
|
||||
|
||||
<meta-data android:name="com.amap.api.v2.apikey"
|
||||
android:value="e0c32c80b14f78b770b3671add9c4515"/>
|
||||
<meta-data
|
||||
android:name="com.amap.api.v2.apikey"
|
||||
android:value="e0c32c80b14f78b770b3671add9c4515" />
|
||||
|
||||
|
||||
<activity
|
||||
@@ -62,6 +93,12 @@
|
||||
|
||||
</activity>
|
||||
|
||||
<activity
|
||||
android:name=".base.WebActivity"
|
||||
android:configChanges="keyboardHidden|orientation|locale"
|
||||
android:screenOrientation="portrait"
|
||||
android:windowSoftInputMode="adjustPan|stateHidden" />
|
||||
|
||||
<activity
|
||||
android:name=".ui.HomeActivity"
|
||||
android:configChanges="keyboardHidden|orientation|locale"
|
||||
@@ -179,6 +216,30 @@
|
||||
android:windowSoftInputMode="adjustPan|stateHidden" />
|
||||
<!-- 运单相关end -->
|
||||
|
||||
<!-- 我的相关start -->
|
||||
<activity
|
||||
android:name=".ui.mine.activity.CarsManActivity"
|
||||
android:configChanges="keyboardHidden|orientation|locale"
|
||||
android:screenOrientation="portrait"
|
||||
android:windowSoftInputMode="adjustPan|stateHidden" />
|
||||
<activity
|
||||
android:name=".ui.mine.activity.WalletActivity"
|
||||
android:configChanges="keyboardHidden|orientation|locale"
|
||||
android:screenOrientation="portrait"
|
||||
android:windowSoftInputMode="adjustPan|stateHidden" />
|
||||
<activity
|
||||
android:name=".ui.mine.activity.RulesActivity"
|
||||
android:configChanges="keyboardHidden|orientation|locale"
|
||||
android:screenOrientation="portrait"
|
||||
android:windowSoftInputMode="adjustPan|stateHidden" />
|
||||
<activity
|
||||
android:name=".ui.account.authperson.AuthPartyActivity"
|
||||
android:configChanges="keyboardHidden|orientation|locale"
|
||||
android:screenOrientation="portrait"
|
||||
android:windowSoftInputMode="adjustPan|stateHidden" />
|
||||
<!-- 我的相关end -->
|
||||
|
||||
|
||||
</application>
|
||||
|
||||
</manifest>
|
||||
@@ -0,0 +1,31 @@
|
||||
package com.dahe.gldriver.adapter
|
||||
|
||||
import android.content.Context
|
||||
import android.view.ViewGroup
|
||||
import android.widget.Button
|
||||
import com.chad.library.adapter4.BaseQuickAdapter
|
||||
import com.chad.library.adapter4.viewholder.QuickViewHolder
|
||||
import com.dahe.gldriver.R
|
||||
import com.dahe.glex.bean.WayBillBean
|
||||
|
||||
/**
|
||||
* @ClassName WaybillAdapter
|
||||
* @Author 用户
|
||||
* @Date 2024/1/23 16:27
|
||||
* @Description TODO
|
||||
*/
|
||||
class CarsAdapter :
|
||||
BaseQuickAdapter<WayBillBean, QuickViewHolder>() {
|
||||
override fun onBindViewHolder(holder: QuickViewHolder, position: Int, item: WayBillBean?) {
|
||||
|
||||
}
|
||||
|
||||
override fun onCreateViewHolder(
|
||||
context: Context,
|
||||
parent: ViewGroup,
|
||||
viewType: Int
|
||||
): QuickViewHolder {
|
||||
// 返回一个 ViewHolder
|
||||
return QuickViewHolder(R.layout.item_cars, parent)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.dahe.gldriver.adapter
|
||||
|
||||
import android.content.Context
|
||||
import android.view.ViewGroup
|
||||
import com.chad.library.adapter4.BaseQuickAdapter
|
||||
import com.chad.library.adapter4.viewholder.QuickViewHolder
|
||||
import com.dahe.gldriver.R
|
||||
import com.dahe.glex.bean.WayBillBean
|
||||
|
||||
/**
|
||||
* @ClassName WalletAdapter
|
||||
* @Author john
|
||||
* @Date 2024/2/1 10:41
|
||||
* @Description TODO
|
||||
*/
|
||||
class WalletAdapter : BaseQuickAdapter<WayBillBean, QuickViewHolder>() {
|
||||
override fun onBindViewHolder(holder: QuickViewHolder, position: Int, item: WayBillBean?) {
|
||||
}
|
||||
|
||||
override fun onCreateViewHolder(
|
||||
context: Context,
|
||||
parent: ViewGroup,
|
||||
viewType: Int
|
||||
): QuickViewHolder {
|
||||
return QuickViewHolder(R.layout.item_wallet, parent)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,125 @@
|
||||
package com.dahe.gldriver.base
|
||||
|
||||
import android.content.Context
|
||||
import android.content.Intent
|
||||
import android.graphics.Bitmap
|
||||
import android.os.Bundle
|
||||
import android.text.TextUtils
|
||||
import android.view.View
|
||||
import android.webkit.JavascriptInterface
|
||||
import android.webkit.WebResourceRequest
|
||||
import android.webkit.WebView
|
||||
import android.widget.FrameLayout
|
||||
import android.widget.TextView
|
||||
import com.dahe.gldriver.databinding.ActivityWebBinding
|
||||
import com.dahe.gldriver.ui.HomeActivity
|
||||
import com.dahe.mylibrary.R
|
||||
import com.dahe.mylibrary.base.BaseActivity
|
||||
import com.just.agentweb.AgentWeb
|
||||
import com.just.agentweb.AgentWebUIControllerImplBase
|
||||
import com.just.agentweb.WebChromeClient
|
||||
import com.just.agentweb.WebViewClient
|
||||
|
||||
/**
|
||||
* @ClassName WebActivity
|
||||
* @Author john
|
||||
* @Date 2024/2/1 15:08
|
||||
* @Description TODO
|
||||
*/
|
||||
class WebActivity : BaseActivity<ActivityWebBinding>() {
|
||||
|
||||
var mTextRight: TextView? = null
|
||||
private var mAgentWeb: AgentWeb? = null
|
||||
|
||||
private var mTitle = ""
|
||||
private var mUrl = ""
|
||||
|
||||
override fun initView(savedInstanceState: Bundle?) {
|
||||
mTitle = intent.extras?.getString("title").toString()
|
||||
mUrl = intent.extras?.getString("url").toString()
|
||||
|
||||
setStatusBarColor(R.color.colorWhite)
|
||||
setTitleBar(mTitle) { v: View? -> if (!mAgentWeb!!.back()) finish() }
|
||||
|
||||
mAgentWeb = AgentWeb.with(this)
|
||||
.setAgentWebParent(binding.WebViewLayout, FrameLayout.LayoutParams(-1, -1))
|
||||
.useDefaultIndicator()
|
||||
.setWebChromeClient(mWebChromeClient)
|
||||
.setSecurityType(AgentWeb.SecurityType.DEFAULT_CHECK)
|
||||
.setAgentWebUIController(AgentWebUIControllerImplBase())
|
||||
.createAgentWeb()
|
||||
.ready()
|
||||
.go(mUrl)
|
||||
|
||||
|
||||
// mAgentWeb?.jsInterfaceHolder?.addJavaObject("phone", AndroidInterfaceWeb())
|
||||
}
|
||||
|
||||
override fun initDate() {
|
||||
|
||||
}
|
||||
|
||||
private val mWebChromeClient: WebChromeClient = object : WebChromeClient() {
|
||||
override fun onProgressChanged(view: WebView, newProgress: Int) {
|
||||
super.onProgressChanged(view, newProgress)
|
||||
}
|
||||
|
||||
override fun onReceivedTitle(view: WebView, title: String) {
|
||||
super.onReceivedTitle(view, title)
|
||||
setTitleBar(
|
||||
if (TextUtils.isEmpty(mTitle)) title else mTitle
|
||||
) { if (!mAgentWeb!!.back()) finish() }
|
||||
}
|
||||
}
|
||||
|
||||
// private val mWebViewClient: WebViewClient = object : WebViewClient() {
|
||||
// override fun onPageStarted(view: WebView, url: String, favicon: Bitmap) {
|
||||
// super.onPageStarted(view, url, favicon)
|
||||
// }
|
||||
//
|
||||
// override fun shouldOverrideUrlLoading(view: WebView, request: WebResourceRequest): Boolean {
|
||||
// return super.shouldOverrideUrlLoading(view, request)
|
||||
// } // @Override
|
||||
// // public boolean shouldOverrideUrlLoading(WebView view, WebResourceRequest request) {
|
||||
// // //该方法在Build.VERSION_CODES.LOLLIPOP以后有效
|
||||
// // if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
||||
// // String url = request.getUrl().toString();
|
||||
// // Log.i(TAG, "shouldOverrideUrlLoading: " + url);
|
||||
// // }
|
||||
// // return false;
|
||||
// // }
|
||||
// }
|
||||
|
||||
|
||||
// @OnClick({R.id.common_toolBar_text_right, R.id.common_toolBar_image_right})
|
||||
// public void onClick(View view) {
|
||||
// if (view.getId() == R.id.common_toolBar_text_right) {
|
||||
// } else if (view.getId() == R.id.common_toolBar_image_right) {
|
||||
// }
|
||||
// }
|
||||
override fun onPause() {
|
||||
mAgentWeb?.webLifeCycle?.onPause()
|
||||
super.onPause()
|
||||
}
|
||||
|
||||
override fun onResume() {
|
||||
mAgentWeb?.webLifeCycle?.onResume()
|
||||
super.onResume()
|
||||
}
|
||||
|
||||
override fun onDestroy() {
|
||||
mAgentWeb?.webLifeCycle?.onDestroy()
|
||||
super.onDestroy()
|
||||
}
|
||||
|
||||
|
||||
// internal class AndroidInterfaceWeb {
|
||||
// @JavascriptInterface
|
||||
// fun gohome() {
|
||||
// val intent = Intent(mContext, HomeActivity::class.java)
|
||||
// intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK or Intent.FLAG_ACTIVITY_NEW_TASK)
|
||||
// mContext.startActivity(intent)
|
||||
// }
|
||||
// }
|
||||
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
package com.dahe.gldriver.net
|
||||
|
||||
import com.dahe.gldriver.utils.BaseSingNoParam
|
||||
import com.dahe.mylibrary.CommonBaseLibrary
|
||||
import com.dahe.mylibrary.base.BaseSingNoParam
|
||||
import com.dahe.mylibrary.net.JsonInterceptor
|
||||
import okhttp3.OkHttpClient
|
||||
import java.util.concurrent.TimeUnit
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.dahe.gldriver.ui.account.authperson
|
||||
|
||||
import android.os.Bundle
|
||||
import com.dahe.gldriver.R
|
||||
import com.dahe.gldriver.base.WebActivity
|
||||
|
||||
import com.dahe.gldriver.databinding.ActivityAuthPersonBinding
|
||||
import com.dahe.mylibrary.base.BaseActivity
|
||||
import com.dahe.mylibrary.utils.ActivityUtils
|
||||
|
||||
/**
|
||||
* @ClassName AuthPartyActivity
|
||||
* @Author john
|
||||
* @Date 2024/2/1 11:20
|
||||
* @Description 党员认证
|
||||
*/
|
||||
class AuthPartyActivity : BaseActivity<ActivityAuthPersonBinding>() {
|
||||
override fun initView(savedInstanceState: Bundle?) {
|
||||
setStatusBarColor(R.color.white)
|
||||
setTitleBar("党员认证",true)
|
||||
}
|
||||
|
||||
override fun initDate() {
|
||||
}
|
||||
}
|
||||
@@ -1,12 +1,19 @@
|
||||
package com.dahe.gldriver.ui.mine
|
||||
|
||||
import android.os.Bundle
|
||||
import android.view.View
|
||||
import com.dahe.gldriver.R
|
||||
import com.dahe.gldriver.adapter.GridItemAdapter
|
||||
import com.dahe.gldriver.base.WebActivity
|
||||
import com.dahe.gldriver.bean.GridBean
|
||||
import com.dahe.gldriver.databinding.FragmentMineBinding
|
||||
import com.dahe.gldriver.ui.account.authperson.AuthPartyActivity
|
||||
import com.dahe.gldriver.ui.mine.activity.CarsManActivity
|
||||
import com.dahe.gldriver.ui.mine.activity.RulesActivity
|
||||
import com.dahe.gldriver.ui.mine.activity.WalletActivity
|
||||
import com.dahe.gldriver.utils.SPUtils
|
||||
import com.dahe.mylibrary.base.BaseFragment
|
||||
import com.dahe.mylibrary.utils.ActivityUtils
|
||||
import com.dahe.mylibrary.utils.ToastUtils
|
||||
import com.tencent.bugly.crashreport.CrashReport
|
||||
|
||||
@@ -42,21 +49,26 @@ class MineFragment : BaseFragment<FragmentMineBinding>(), View.OnClickListener {
|
||||
// if (null==userInfo)
|
||||
// return
|
||||
|
||||
binding.gvTools.run {
|
||||
binding.run {
|
||||
//初始化常用工具
|
||||
gvTools.run {
|
||||
adapter = GridItemAdapter(mContext, tools, R.layout.grid_mine_item)
|
||||
setOnItemClickListener { _, _, i, _ ->
|
||||
goTools(i)
|
||||
}
|
||||
}
|
||||
//初始化平台规则
|
||||
gvPlat.run {
|
||||
adapter = GridItemAdapter(mContext, plats, R.layout.grid_mine_item)
|
||||
setOnItemClickListener { _, _, i, _ ->
|
||||
goPlats(i)
|
||||
}
|
||||
}
|
||||
|
||||
adapter = GridItemAdapter(mContext, tools, R.layout.grid_mine_item)
|
||||
setOnItemClickListener { _, _, i, _ ->
|
||||
goTools(i)
|
||||
rlMoney.setOnClickListener {
|
||||
ActivityUtils.startActivity(mContext, WalletActivity::class.java)
|
||||
}
|
||||
}
|
||||
|
||||
binding.gvPlat.run {
|
||||
adapter = GridItemAdapter(mContext, plats, R.layout.grid_mine_item)
|
||||
setOnItemClickListener { _, _, i, _ ->
|
||||
goPlats(i)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
override fun onClick(v: View) {
|
||||
@@ -76,18 +88,27 @@ class MineFragment : BaseFragment<FragmentMineBinding>(), View.OnClickListener {
|
||||
// requireActivity().startActivity(intent)
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 常用工具跳转逻辑
|
||||
*/
|
||||
private fun goTools(pos: Int) {
|
||||
when (pos) {
|
||||
0 -> {
|
||||
ToastUtils.showToast(mContext, tools[pos].title)
|
||||
ActivityUtils.startActivity(mContext, RulesActivity::class.java)
|
||||
}
|
||||
|
||||
1 -> {
|
||||
ToastUtils.showToast(mContext, tools[pos].title)
|
||||
ActivityUtils.startActivity(mContext, CarsManActivity::class.java)
|
||||
}
|
||||
|
||||
2 -> {
|
||||
var bundle = Bundle()
|
||||
bundle.putString("title","我的百度")
|
||||
bundle.putString("url","www.baidu.com")
|
||||
ActivityUtils.startActivity(mContext,WebActivity::class.java,bundle)
|
||||
ToastUtils.showToast(mContext, tools[pos].title)
|
||||
}
|
||||
|
||||
3 -> {
|
||||
ToastUtils.showToast(mContext, tools[pos].title)
|
||||
}
|
||||
@@ -95,8 +116,36 @@ class MineFragment : BaseFragment<FragmentMineBinding>(), View.OnClickListener {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 平台规则跳转逻辑
|
||||
*/
|
||||
private fun goPlats(pos: Int) {
|
||||
ToastUtils.showToast(mContext, plats[pos].title)
|
||||
when (pos) {
|
||||
0 -> {
|
||||
ActivityUtils.startActivity(mContext, RulesActivity::class.java)
|
||||
}
|
||||
|
||||
1 -> {
|
||||
ActivityUtils.startActivity(mContext, CarsManActivity::class.java)
|
||||
}
|
||||
|
||||
2 -> {
|
||||
ToastUtils.showToast(mContext, tools[pos].title)
|
||||
}
|
||||
|
||||
3 -> {
|
||||
ToastUtils.showToast(mContext, tools[pos].title)
|
||||
}
|
||||
|
||||
4 -> {
|
||||
ActivityUtils.startActivity(mContext, AuthPartyActivity::class.java)
|
||||
}
|
||||
|
||||
5 -> {
|
||||
ToastUtils.showToast(mContext, tools[pos].title)
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
package com.dahe.gldriver.ui.mine.activity
|
||||
|
||||
import android.graphics.Color
|
||||
import android.os.Bundle
|
||||
import android.widget.LinearLayout
|
||||
import androidx.recyclerview.widget.LinearLayoutManager
|
||||
import androidx.recyclerview.widget.RecyclerView
|
||||
import androidx.recyclerview.widget.RecyclerView.LayoutManager
|
||||
import com.dahe.gldriver.R
|
||||
import com.dahe.gldriver.adapter.CarsAdapter
|
||||
import com.dahe.gldriver.adapter.WaybillAdapter
|
||||
import com.dahe.gldriver.databinding.ActivityCarsManBinding
|
||||
import com.dahe.glex.bean.WayBillBean
|
||||
import com.dahe.mylibrary.base.BaseActivity
|
||||
import com.dahe.mylibrary.recycleviewswipe.RecycleViewDivider
|
||||
import com.dahe.mylibrary.utils.ConvertUtils
|
||||
|
||||
/**
|
||||
* @ClassName CarsManActivity
|
||||
* @Author john
|
||||
* @Date 2024/2/1 08:59
|
||||
* @Description 车辆管理
|
||||
*/
|
||||
class CarsManActivity : BaseActivity<ActivityCarsManBinding>() {
|
||||
override fun initView(savedInstanceState: Bundle?) {
|
||||
setStatusBarColor(R.color.white)
|
||||
setTitleBar("车辆管理",true)
|
||||
|
||||
|
||||
var datas = mutableListOf<WayBillBean>(
|
||||
WayBillBean(),
|
||||
WayBillBean(),
|
||||
WayBillBean(),
|
||||
WayBillBean(),
|
||||
WayBillBean(),
|
||||
WayBillBean(),
|
||||
WayBillBean(),
|
||||
WayBillBean()
|
||||
)
|
||||
|
||||
var adapter = binding.recycler.run {
|
||||
layoutManager = LinearLayoutManager(mContext, RecyclerView.VERTICAL, false)
|
||||
addItemDecoration(
|
||||
RecycleViewDivider(
|
||||
LinearLayout.VERTICAL,
|
||||
ConvertUtils.dp2px(16.0f),
|
||||
Color.TRANSPARENT
|
||||
)
|
||||
)
|
||||
adapter = CarsAdapter()
|
||||
adapter as CarsAdapter
|
||||
}
|
||||
|
||||
adapter.submitList(datas)
|
||||
}
|
||||
|
||||
override fun initDate() {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.dahe.gldriver.ui.mine.activity
|
||||
|
||||
import android.os.Bundle
|
||||
import com.dahe.gldriver.R
|
||||
import com.dahe.gldriver.databinding.ActivityRulesBinding
|
||||
import com.dahe.mylibrary.base.BaseActivity
|
||||
|
||||
/**
|
||||
* @ClassName RulesActivity
|
||||
* @Author john
|
||||
* @Date 2024/2/1 11:06
|
||||
* @Description 平台规则
|
||||
*/
|
||||
class RulesActivity : BaseActivity<ActivityRulesBinding>() {
|
||||
override fun initView(savedInstanceState: Bundle?) {
|
||||
setStatusBarColor(R.color.white)
|
||||
setTitleBar("平台规则",true)
|
||||
}
|
||||
|
||||
override fun initDate() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
package com.dahe.gldriver.ui.mine.activity
|
||||
|
||||
import android.graphics.Color
|
||||
import android.os.Bundle
|
||||
import android.widget.LinearLayout
|
||||
import androidx.recyclerview.widget.LinearLayoutManager
|
||||
import androidx.recyclerview.widget.RecyclerView
|
||||
import com.dahe.gldriver.adapter.CarsAdapter
|
||||
import com.dahe.gldriver.adapter.WalletAdapter
|
||||
import com.dahe.gldriver.databinding.ActivityWalletBinding
|
||||
import com.dahe.glex.bean.WayBillBean
|
||||
import com.dahe.mylibrary.base.BaseActivity
|
||||
import com.dahe.mylibrary.recycleviewswipe.RecycleViewDivider
|
||||
import com.dahe.mylibrary.utils.ConvertUtils
|
||||
|
||||
/**
|
||||
* @ClassName WalletActivity
|
||||
* @Author john
|
||||
* @Date 2024/2/1 09:41
|
||||
* @Description 钱包
|
||||
*/
|
||||
class WalletActivity : BaseActivity<ActivityWalletBinding>() {
|
||||
override fun initView(savedInstanceState: Bundle?) {
|
||||
}
|
||||
|
||||
override fun initDate() {
|
||||
|
||||
var datas = mutableListOf<WayBillBean>(
|
||||
WayBillBean(),
|
||||
WayBillBean(),
|
||||
WayBillBean(),
|
||||
WayBillBean(),
|
||||
WayBillBean(),
|
||||
WayBillBean(),
|
||||
WayBillBean(),
|
||||
WayBillBean()
|
||||
)
|
||||
|
||||
var adapter = binding.recycler.run {
|
||||
layoutManager = LinearLayoutManager(mContext, RecyclerView.VERTICAL, false)
|
||||
addItemDecoration(
|
||||
RecycleViewDivider(
|
||||
LinearLayout.VERTICAL,
|
||||
ConvertUtils.dp2px(16.0f),
|
||||
Color.TRANSPARENT
|
||||
)
|
||||
)
|
||||
adapter = WalletAdapter()
|
||||
adapter as WalletAdapter
|
||||
}
|
||||
|
||||
adapter.submitList(datas)
|
||||
}
|
||||
}
|
||||
@@ -7,6 +7,7 @@ import com.dahe.gldriver.base.AppConfig
|
||||
import com.dahe.gldriver.databinding.ActivityWaybillDetailBinding
|
||||
import com.dahe.mylibrary.base.BaseActivity
|
||||
import com.dahe.mylibrary.utils.ActivityUtils
|
||||
import com.dahe.mylibrary.utils.SelectPicUtils
|
||||
|
||||
/**
|
||||
* @ClassName WaybillDetailActivity
|
||||
@@ -22,5 +23,6 @@ class WaybillDetailActivity :BaseActivity<ActivityWaybillDetailBinding>(){
|
||||
}
|
||||
|
||||
override fun initDate() {
|
||||
// SelectPicUtils().getInstance(mContext)
|
||||
}
|
||||
}
|
||||
@@ -1,10 +1,21 @@
|
||||
package com.dahe.gldriver.ui.waybill.activity
|
||||
|
||||
import android.os.Bundle
|
||||
import android.view.View
|
||||
import androidx.recyclerview.widget.GridLayoutManager
|
||||
import com.dahe.gldriver.base.AppConfig
|
||||
import com.dahe.gldriver.databinding.ActivityWaybillUppicBinding
|
||||
import com.dahe.mylibrary.adapter.GridImageAdapter
|
||||
import com.dahe.mylibrary.adapter.GridImageAdapter.OnItemClickListener
|
||||
import com.dahe.mylibrary.base.BaseActivity
|
||||
import com.dahe.mylibrary.pop.PopBottomPic
|
||||
import com.dahe.mylibrary.utils.ActivityUtils
|
||||
import com.dahe.mylibrary.utils.ToastUtils
|
||||
import com.dahe.mylibrary.weight.FullyGridLayoutManager
|
||||
import com.luck.picture.lib.decoration.GridSpacingItemDecoration
|
||||
import com.luck.picture.lib.entity.LocalMedia
|
||||
import com.luck.picture.lib.utils.DensityUtil
|
||||
import com.lxj.xpopup.XPopup
|
||||
|
||||
/**
|
||||
* @ClassName WaybillUpPicActivity
|
||||
@@ -29,7 +40,7 @@ class WaybillUpPicActivity : BaseActivity<ActivityWaybillUppicBinding>() {
|
||||
mContext,
|
||||
WaybillSuccActivity::class.java,
|
||||
Bundle().apply { putInt(AppConfig.SUCCESS_TYPE, 1) })
|
||||
}else{
|
||||
} else {
|
||||
ActivityUtils.startActivity(
|
||||
mContext,
|
||||
WaybillSuccActivity::class.java,
|
||||
@@ -38,6 +49,48 @@ class WaybillUpPicActivity : BaseActivity<ActivityWaybillUppicBinding>() {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private val mData: List<LocalMedia> = ArrayList()
|
||||
override fun initDate() {
|
||||
|
||||
binding.recyclerView.run {
|
||||
layoutManager = FullyGridLayoutManager(mContext, 4, GridLayoutManager.VERTICAL, false)
|
||||
addItemDecoration(
|
||||
GridSpacingItemDecoration(
|
||||
4,
|
||||
DensityUtil.dip2px(mContext, 8f), false
|
||||
)
|
||||
)
|
||||
|
||||
var myAdapter = GridImageAdapter(mContext, mData)
|
||||
|
||||
myAdapter.setOnItemClickListener(object :OnItemClickListener{
|
||||
override fun onItemClick(v: View?, position: Int) {
|
||||
|
||||
}
|
||||
|
||||
override fun openPicture() {
|
||||
XPopup.Builder(mContext)
|
||||
.hasShadowBg(true)
|
||||
.dismissOnBackPressed(true)
|
||||
.dismissOnTouchOutside(true)
|
||||
.moveUpToKeyboard(false) //如果不加这个,评论弹窗会移动到软键盘上面
|
||||
.isViewMode(true)
|
||||
.isDestroyOnDismiss(true) //对于只使用一次的弹窗,推荐设置这个
|
||||
.asCustom(PopBottomPic(mContext,myAdapter, onPicResultListener = {
|
||||
ToastUtils.showToast(mContext,it.size.toString())
|
||||
myAdapter.data.addAll(it)
|
||||
myAdapter.notifyDataSetChanged()
|
||||
}))
|
||||
.show()
|
||||
}
|
||||
})
|
||||
|
||||
// setHasFixedSize(true)
|
||||
adapter = myAdapter
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
package com.dahe.gldriver.utils
|
||||
|
||||
/**
|
||||
* @ClassName BaseSingleton
|
||||
* @Author 用户
|
||||
* @Date 2023/12/29 09:49
|
||||
* @Description //要实现单例类,就只需要继承这个 BaseSingleton 即可
|
||||
//P为参数,T为返回值
|
||||
*/
|
||||
abstract class BaseSingleton<in P, out T> {
|
||||
|
||||
@Volatile
|
||||
private var instance: T? = null
|
||||
|
||||
//抽象方法,需要我们在具体的单例子类当中实现此方法
|
||||
protected abstract fun creator(param: P?): T
|
||||
|
||||
fun getInstance(param: P?): T =
|
||||
instance ?: synchronized(this) {
|
||||
instance ?: creator(param).also { instance = it }
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
abstract class BaseSingNoParam<out T> {
|
||||
|
||||
@Volatile
|
||||
private var instance: T? = null
|
||||
|
||||
//抽象方法,需要我们在具体的单例子类当中实现此方法
|
||||
protected abstract fun creator(): T
|
||||
|
||||
fun getInstance(): T =
|
||||
instance ?: synchronized(this) {
|
||||
instance ?: creator().also { instance = it }
|
||||
}
|
||||
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 612 B |
Binary file not shown.
|
After Width: | Height: | Size: 232 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 338 KiB |
@@ -0,0 +1,200 @@
|
||||
<?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"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<include layout="@layout/common_toolbar"></include>
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="#FFEFE8"
|
||||
android:padding="@dimen/sp_18"
|
||||
android:text="请详细认真填写党员认证信息,方便系统进行审核。审 核将在一般在1-3个工作日内完成。请耐心等待。"
|
||||
android:textColor="#FF5F20"
|
||||
android:textSize="@dimen/sp_14" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/dp_28"
|
||||
android:layout_marginTop="@dimen/dp_14"
|
||||
android:text="党员信息"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="@dimen/sp_15" />
|
||||
|
||||
|
||||
<androidx.cardview.widget.CardView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/dp_15"
|
||||
android:layout_marginTop="@dimen/dp_15"
|
||||
android:layout_marginRight="@dimen/dp_15"
|
||||
android:background="@color/white"
|
||||
app:cardCornerRadius="@dimen/dp_8">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_58"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:paddingLeft="@dimen/dp_13"
|
||||
android:paddingRight="@dimen/dp_13">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="入党时间"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="@dimen/sp_15" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:drawableRight="@drawable/right_gray"
|
||||
android:drawablePadding="@dimen/dp_6"
|
||||
android:hint="请选择入党时间"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="@dimen/sp_15" />
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_58"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:paddingLeft="@dimen/dp_13"
|
||||
android:paddingRight="@dimen/dp_13">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="党组织关系所在省市"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="@dimen/sp_15" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:drawableRight="@drawable/right_gray"
|
||||
android:drawablePadding="@dimen/dp_6"
|
||||
android:hint="请选择有效期至"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="@dimen/sp_15" />
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:minHeight="@dimen/dp_58"
|
||||
android:orientation="horizontal"
|
||||
android:paddingLeft="@dimen/dp_13"
|
||||
android:paddingRight="@dimen/dp_13">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="党组织关系所在地区 (县)街道(乡)"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="@dimen/sp_15" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:drawableRight="@drawable/right_gray"
|
||||
android:drawablePadding="@dimen/dp_6"
|
||||
android:hint="请输入详细地址"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="@dimen/sp_15" />
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
</androidx.cardview.widget.CardView>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/dp_28"
|
||||
android:layout_marginTop="@dimen/dp_14"
|
||||
android:text="证明材料"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="@dimen/sp_15" />
|
||||
|
||||
<androidx.cardview.widget.CardView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_165"
|
||||
android:layout_marginLeft="@dimen/dp_15"
|
||||
android:layout_marginTop="@dimen/dp_15"
|
||||
android:layout_marginRight="@dimen/dp_15"
|
||||
android:background="@color/white"
|
||||
app:cardCornerRadius="@dimen/dp_8">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="@dimen/dp_100"
|
||||
android:layout_height="@dimen/dp_100"
|
||||
android:background="@drawable/icon_add_pic" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp_10"
|
||||
android:text="点击上传"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="@dimen/sp_12" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
</androidx.cardview.widget.CardView>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1"
|
||||
android:background="@color/white"></View>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_70"
|
||||
android:background="@color/white"
|
||||
android:gravity="center"
|
||||
android:paddingLeft="@dimen/dp_15"
|
||||
android:paddingRight="@dimen/dp_15">
|
||||
|
||||
<Button
|
||||
android:id="@+id/btnOk"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/bg_btn"
|
||||
android:text="立即提交"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/sp_17">
|
||||
|
||||
</Button>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
@@ -0,0 +1,48 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<include layout="@layout/common_toolbar"></include>
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="#FFEFE8"
|
||||
android:paddingLeft="@dimen/dp_20"
|
||||
android:paddingTop="@dimen/dp_15"
|
||||
android:paddingRight="@dimen/dp_20"
|
||||
android:paddingBottom="@dimen/dp_15"
|
||||
android:text="每个司机最多只能添加三辆车,如果还需添加车辆,请 先解绑不常用的车辆再添加新的车辆。新添加车辆需要 审核成功后,才能正常接单。"
|
||||
android:textColor="@color/main_red"
|
||||
android:textSize="@dimen/sp_14" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/recycler"
|
||||
android:paddingTop="@dimen/dp_15"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_70"
|
||||
android:background="@color/white"
|
||||
android:gravity="center"
|
||||
android:paddingLeft="@dimen/dp_15"
|
||||
android:paddingRight="@dimen/dp_15">
|
||||
|
||||
<Button
|
||||
android:id="@+id/btnOk"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/bg_btn"
|
||||
android:text="添加车辆"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/sp_17">
|
||||
|
||||
</Button>
|
||||
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
@@ -0,0 +1,131 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<include layout="@layout/common_toolbar"></include>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginTop="@dimen/dp_15"
|
||||
android:background="@color/white"
|
||||
android:orientation="vertical">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_80"
|
||||
android:paddingLeft="@dimen/dp_15"
|
||||
android:paddingTop="@dimen/dp_16"
|
||||
android:paddingRight="@dimen/dp_15">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="大河好运用户服务协议"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="@dimen/sp_16" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp_30"
|
||||
android:text="更新时间:2023-12-22"
|
||||
android:textColor="@color/color_9"
|
||||
android:textSize="@dimen/sp_12" />
|
||||
|
||||
<ImageView
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_width="@dimen/dp_15"
|
||||
android:layout_height="@dimen/dp_15"
|
||||
android:background="@drawable/right_gray"
|
||||
/>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_1"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_marginTop="@dimen/dp_20"
|
||||
android:background="@color/color_c" />
|
||||
|
||||
</RelativeLayout>
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_80"
|
||||
android:paddingLeft="@dimen/dp_15"
|
||||
android:paddingTop="@dimen/dp_16"
|
||||
android:paddingRight="@dimen/dp_15">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="货物运输协议"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="@dimen/sp_16" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp_30"
|
||||
android:text="更新时间:2023-12-22"
|
||||
android:textColor="@color/color_9"
|
||||
android:textSize="@dimen/sp_12" />
|
||||
|
||||
<ImageView
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_width="@dimen/dp_15"
|
||||
android:layout_height="@dimen/dp_15"
|
||||
android:background="@drawable/right_gray"
|
||||
/>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_1"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_marginTop="@dimen/dp_20"
|
||||
android:background="@color/color_c" />
|
||||
|
||||
</RelativeLayout>
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_80"
|
||||
android:paddingLeft="@dimen/dp_15"
|
||||
android:paddingTop="@dimen/dp_16"
|
||||
android:paddingRight="@dimen/dp_15">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="货物运输协议(代开发票)"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="@dimen/sp_16" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp_30"
|
||||
android:text="更新时间:2023-12-22"
|
||||
android:textColor="@color/color_9"
|
||||
android:textSize="@dimen/sp_12" />
|
||||
|
||||
<ImageView
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_width="@dimen/dp_15"
|
||||
android:layout_height="@dimen/dp_15"
|
||||
android:background="@drawable/right_gray"
|
||||
/>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_1"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_marginTop="@dimen/dp_20"
|
||||
android:background="@color/color_c" />
|
||||
|
||||
</RelativeLayout>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
@@ -0,0 +1,137 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_237"
|
||||
android:background="@drawable/wallet_bg"
|
||||
android:paddingTop="@dimen/dp_50">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvTitle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:text="钱包"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/sp_17" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/dp_16"
|
||||
android:layout_marginTop="@dimen/dp_4"
|
||||
android:background="@drawable/left"
|
||||
android:baselineAlignBottom="@+id/tvTitle" />
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/rlMoney"
|
||||
android:layout_width="@dimen/dp_345"
|
||||
android:layout_height="@dimen/dp_185"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="@dimen/dp_110"
|
||||
android:background="@drawable/money_bg"
|
||||
android:paddingLeft="@dimen/dp_13"
|
||||
android:paddingTop="@dimen/dp_22">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="可提现金额(元)"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/sp_14" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvCanCash"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp_32"
|
||||
android:text="8556.52"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/sp_24" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp_88"
|
||||
android:text="总余额(元)"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/sp_14" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvAllCash"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp_114"
|
||||
android:text="10556.52"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/sp_24" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignLeft="@+id/tvInCome"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_marginTop="@dimen/dp_88"
|
||||
android:text="累计收益(元)"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/sp_14" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvInCome"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_marginTop="@dimen/dp_114"
|
||||
android:layout_marginRight="@dimen/dp_50"
|
||||
android:text="10556.52"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/sp_24" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/recycler"
|
||||
android:layout_marginTop="@dimen/dp_12"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/rlMoney"
|
||||
android:layout_marginBottom="@dimen/dp_56"/>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_56"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:background="@color/white"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:text="提现记录"
|
||||
android:textColor="@color/color_3"
|
||||
android:textSize="@dimen/sp_17" />
|
||||
|
||||
<View
|
||||
android:layout_width="@dimen/dp_1"
|
||||
android:layout_height="@dimen/dp_16"
|
||||
android:background="#C99D54" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:text="立即提现"
|
||||
android:textColor="#C99D54"
|
||||
android:textSize="@dimen/sp_17" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
@@ -12,7 +12,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_240"
|
||||
android:background="@drawable/home_top_bg"
|
||||
android:paddingTop="@dimen/dp_48">
|
||||
android:paddingTop="@dimen/dp_50">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvTitle"
|
||||
@@ -32,6 +32,7 @@
|
||||
android:baselineAlignBottom="@+id/tvTitle" />
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:id="@+id/scrollView"
|
||||
android:layout_width="match_parent"
|
||||
@@ -137,19 +138,21 @@
|
||||
android:textColor="@color/black"
|
||||
android:textSize="@dimen/sp_15" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/ivAdd"
|
||||
android:layout_width="@dimen/dp_42"
|
||||
android:layout_height="@dimen/dp_42"
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/recyclerView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp_40"
|
||||
android:background="@drawable/head_defaut" />
|
||||
android:overScrollMode="never" />
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/dp_10"
|
||||
android:layout_marginTop="@dimen/dp_40"
|
||||
android:layout_toRightOf="@+id/ivAdd"
|
||||
android:layout_toRightOf="@+id/recyclerView"
|
||||
android:text="上传卸货照片"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="@dimen/sp_15" />
|
||||
@@ -157,9 +160,9 @@
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignBottom="@+id/ivAdd"
|
||||
android:layout_alignBottom="@+id/recyclerView"
|
||||
android:layout_marginLeft="@dimen/dp_10"
|
||||
android:layout_toRightOf="@+id/ivAdd"
|
||||
android:layout_toRightOf="@+id/recyclerView"
|
||||
android:text="请按照要求上传装货回单"
|
||||
android:textColor="@color/color_9"
|
||||
android:textSize="@dimen/sp_12" />
|
||||
@@ -230,6 +233,7 @@
|
||||
</RelativeLayout>
|
||||
</androidx.cardview.widget.CardView>
|
||||
|
||||
|
||||
<View
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="@dimen/dp_10"
|
||||
@@ -239,6 +243,7 @@
|
||||
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_74"
|
||||
@@ -260,4 +265,6 @@
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/sp_15" />
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
>
|
||||
|
||||
<include layout="@layout/common_toolbar" />
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/WebViewLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
</FrameLayout>
|
||||
</LinearLayout>
|
||||
@@ -87,6 +87,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp_20"
|
||||
android:horizontalSpacing="@dimen/dp_30"
|
||||
android:listSelector="@color/color_transparent"
|
||||
android:numColumns="4"></GridView>
|
||||
|
||||
|
||||
|
||||
@@ -232,6 +232,7 @@
|
||||
|
||||
|
||||
<GridView
|
||||
android:listSelector="@color/color_transparent"
|
||||
android:id="@+id/gvTools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -265,6 +266,7 @@
|
||||
|
||||
|
||||
<GridView
|
||||
android:listSelector="@color/color_transparent"
|
||||
android:id="@+id/gvPlat"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
||||
@@ -0,0 +1,84 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_90"
|
||||
android:layout_marginLeft="@dimen/dp_15"
|
||||
android:layout_marginRight="@dimen/dp_15"
|
||||
android:background="@color/white"
|
||||
app:cardCornerRadius="@dimen/dp_8"
|
||||
app:contentPaddingLeft="@dimen/dp_12"
|
||||
app:contentPaddingRight="@dimen/dp_12">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="@dimen/dp_76"
|
||||
android:layout_height="@dimen/dp_55"
|
||||
android:background="@drawable/login_car"
|
||||
/>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginLeft="@dimen/dp_16"
|
||||
android:layout_weight="1">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="豫A4982S"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="@dimen/sp_18" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvCarType"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_marginTop="@dimen/dp_6"
|
||||
android:text="重型半挂牵引车"
|
||||
android:textColor="@color/color_9"
|
||||
android:textSize="@dimen/sp_12" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvCarLen"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_marginLeft="@dimen/dp_16"
|
||||
android:layout_marginTop="@dimen/dp_6"
|
||||
android:layout_toRightOf="@+id/tvCarType"
|
||||
android:text="16米"
|
||||
android:textColor="@color/color_9"
|
||||
android:textSize="@dimen/sp_12" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_marginLeft="@dimen/dp_16"
|
||||
android:layout_marginTop="@dimen/dp_6"
|
||||
android:layout_toRightOf="@+id/tvCarLen"
|
||||
android:text="30顿"
|
||||
android:textColor="@color/color_9"
|
||||
android:textSize="@dimen/sp_12" />
|
||||
</RelativeLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvUnbind"
|
||||
android:layout_width="@dimen/dp_30"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginTop="@dimen/dp_6"
|
||||
android:gravity="right"
|
||||
android:text="解绑"
|
||||
android:textColor="@color/color_9"
|
||||
android:textSize="@dimen/sp_12" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
</androidx.cardview.widget.CardView>
|
||||
@@ -0,0 +1,77 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_70"
|
||||
android:layout_marginLeft="@dimen/dp_15"
|
||||
android:layout_marginRight="@dimen/dp_15"
|
||||
android:background="@color/white"
|
||||
app:cardCornerRadius="@dimen/dp_8"
|
||||
app:contentPaddingLeft="@dimen/dp_12"
|
||||
app:contentPaddingRight="@dimen/dp_12">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:paddingTop="@dimen/dp_12"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:layout_weight="1">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="运费结算:204554127412"
|
||||
android:textColor="@color/black"
|
||||
android:textStyle="bold"
|
||||
android:textSize="@dimen/sp_15" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvCarType"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_marginTop="@dimen/dp_8"
|
||||
android:text="2023-12-18 15:25"
|
||||
android:textColor="@color/color_9"
|
||||
android:textSize="@dimen/sp_12" />
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:gravity="center_horizontal">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="+2000"
|
||||
android:textColor="@color/black"
|
||||
android:textStyle="bold"
|
||||
android:textSize="@dimen/sp_15" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_marginTop="@dimen/dp_8"
|
||||
android:text="余额:8556.52"
|
||||
android:textColor="@color/color_9"
|
||||
android:textSize="@dimen/sp_12" />
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
</androidx.cardview.widget.CardView>
|
||||
Reference in New Issue
Block a user