Commit b626982e authored by jyx's avatar jyx

代码优化

parent 4b707ddc
......@@ -262,7 +262,6 @@ dependencies {
// 微转阅读
implementation(name: 'articlesdk-v1.0.6.202012121917-x', ext: 'aar')
//天卓SDK的珊瑚2.0组件
// implementation("com.android.support:support-v4:28.+")
implementation(name: 'adapt-1.3.3', ext: 'aar')
implementation(name: 'commonbase-1.0.2', ext: 'aar')
implementation(name: 'discovery-2.0.14', ext: 'aar')
......
......@@ -9,11 +9,9 @@ import cn.jpush.android.api.JPushInterface
import com.downloader.PRDownloader
import com.downloader.PRDownloaderConfig
import com.mints.goodmoney.manager.BxmManager.initBxm
import com.mints.goodmoney.net.LoanService
import com.mob.MobSDK
import com.tencent.mm.opensdk.openapi.WXAPIFactory
import com.xiangzi.articlesdk.XzArticleSdk
import okhttp3.HttpUrl.Companion.toHttpUrlOrNull
/**
* 子线程初始化SDK
......@@ -90,7 +88,7 @@ class InitAppService : IntentService("InitializeService") {
private fun initWzShare() {
val iwxapi = WXAPIFactory.createWXAPI(this, "wxc8ac2985f6a805e2", false)
iwxapi.registerApp("wxc8ac2985f6a805e2")
XzArticleSdk.get().init(MintsApplication.getContext(), iwxapi, "151", "haozhuanqian")
XzArticleSdk.get().init(this.application, iwxapi, "151", "haozhuanqian")
}
/**
......
......@@ -103,15 +103,12 @@ public class MintsApplication extends MultiDexApplication {
androidPWebView();
}
/**
/*
* 三方配置
*/
private void thirdConfig() {
try {
ToastUtils.init(this);
} catch (Exception e) {
e.printStackTrace();
}
// 初始化toast
initToast();
// 移动安全联盟 oaid
initMiitHelper();
......@@ -287,4 +284,15 @@ public class MintsApplication extends MultiDexApplication {
return null;
}
/**
* 初始化toast
*/
private void initToast() {
try {
ToastUtils.init(this);
} catch (Exception e) {
e.printStackTrace();
}
}
}
......@@ -104,7 +104,7 @@ public class CpdModelBean implements Serializable {
private Object intro;
private Object dl_count;
private Object star;
private Object description;
private String description;
private String md5;
private TrackerBean tracker;
private List<AssetsBean> assets;
......@@ -197,11 +197,11 @@ public class CpdModelBean implements Serializable {
this.star = star;
}
public Object getDescription() {
public String getDescription() {
return description;
}
public void setDescription(Object description) {
public void setDescription(String description) {
this.description = description;
}
......
......@@ -6,6 +6,7 @@ public class TzTaskBean {
private String icon;
private String title;
private String description;
private String app_url;
private boolean isShCpd;
private CoralAD coralAd;
......@@ -14,9 +15,10 @@ public class TzTaskBean {
private int state;
private String currentPkgName;
public TzTaskBean(String icon, String title, boolean isShCpd,int coin, int state, String currentPkgName) {
public TzTaskBean(String icon, String title,String description, boolean isShCpd,int coin, int state, String currentPkgName) {
this.icon = icon;
this.title = title;
this.description = description;
this.isShCpd = isShCpd;
this.coralAd = coralAd;
this.coin = coin;
......@@ -24,6 +26,14 @@ public class TzTaskBean {
this.currentPkgName = currentPkgName;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public CoralAD getCoralAd() {
return coralAd;
}
......
package com.mints.goodmoney.net;
import android.text.TextUtils;
import com.mints.goodmoney.utils.LogUtil;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import okhttp3.HttpUrl;
import okhttp3.Interceptor;
......@@ -15,6 +13,8 @@ import okhttp3.Response;
class DomainInterceptor implements Interceptor {
public static Map<String, HttpUrl> sDomainHostUrl = new HashMap<>();
public static final String DOMAIN_NAME = "domain_name";
@Override
......@@ -33,7 +33,7 @@ class DomainInterceptor implements Interceptor {
HttpUrl domain_url;
if (!TextUtils.isEmpty(domain_name)) {
domain_url = LoanService.Factory.sDomainHostUrl.get(domain_name);
domain_url = sDomainHostUrl.get(domain_name);
// 删除标识header
newBuilder.removeHeader(DOMAIN_NAME);
......
......@@ -28,18 +28,15 @@ import com.mints.goodmoney.mvp.model.XmlyUnlockBean;
import com.mints.goodmoney.utils.AESUtils;
import com.orhanobut.logger.Logger;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import okhttp3.HttpUrl;
import okhttp3.OkHttpClient;
import okhttp3.logging.HttpLoggingInterceptor;
import retrofit2.Retrofit;
import retrofit2.adapter.rxjava.RxJavaCallAdapterFactory;
import retrofit2.http.Body;
import retrofit2.http.HeaderMap;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import retrofit2.http.Url;
import rx.Observable;
......@@ -561,8 +558,6 @@ public interface LoanService {
*/
class Factory {
public static Map<String, HttpUrl> sDomainHostUrl = new HashMap<>();
public static LoanService create() {
OkHttpClient.Builder builder = new OkHttpClient.Builder();
......@@ -595,9 +590,9 @@ public interface LoanService {
builder.interceptors().add(logging);
}
DomainInterceptor domainInterceptor = new DomainInterceptor();
// DomainInterceptor domainInterceptor = new DomainInterceptor();
OkHttpInterceptor okHttpInterceptor = new OkHttpInterceptor(AESUtils.getDefaultKey());
builder.interceptors().add(domainInterceptor);
// builder.interceptors().add(domainInterceptor);
builder.interceptors().add(okHttpInterceptor);
Retrofit retrofit = new Retrofit.Builder()
......
......@@ -281,7 +281,7 @@ class AwardActivity : BaseActivity(), AwardView, View.OnClickListener {
}
tvAwardNext.text = "我知道了"
}
Constant.CARRIER_HIGH_ACTIVITY, Constant.CARRIER_CPD -> {
Constant.CARRIER_HIGH_ACTIVITY, Constant.CARRIER_CPD, Constant.CARRIER_CPD_SYD -> {
if (curCoin > 0) {
tvAwardContent.text = "试玩奖励${curCoin}金币"
tvAwardNext.text = "领取金币"
......
......@@ -22,6 +22,7 @@ import com.mints.goodmoney.ui.adapter.TaskAdapter
import com.mints.goodmoney.ui.adapter.listener.OnItemChildClickListener
import com.mints.goodmoney.ui.widgets.CustomDialogAsApple
import com.mints.goodmoney.ui.widgets.DialogListener
import com.mints.goodmoney.ui.widgets.TaskCpdDialog
import com.mints.goodmoney.ui.widgets.TaskDialog
import com.mints.goodmoney.utils.*
import com.scwang.smartrefresh.layout.api.RefreshLayout
......@@ -49,6 +50,7 @@ class TaskActivity : BaseActivity(), TaskView,
// 任务弹框
private var taskDialog: TaskDialog? = null
private var taskCpdDialog: TaskCpdDialog? = null
private lateinit var cdaa: CustomDialogAsApple
......@@ -159,7 +161,7 @@ class TaskActivity : BaseActivity(), TaskView,
override fun getCpdModelSuc(dataBean: CpdModelBean.DataBean) {
for (material in dataBean.materials) {
val tzTaskBean = TzTaskBean(material.icons, material.title, false, mCoin, 0, material.app_apk_name)
val tzTaskBean = TzTaskBean(material.icons, material.title, material.description, false, mCoin, 0, material.app_apk_name)
tzTaskBean.app_url = material.app_url
tzTaskBean.trackerBean = material.tracker
mFakeTaskList.add(tzTaskBean)
......@@ -192,7 +194,7 @@ class TaskActivity : BaseActivity(), TaskView,
override fun onLoadSuccess(dataList: MutableList<CoralAD>?) {
dataList?.let {
for (coralAD in it) {
val tzTaskBean = TzTaskBean(coralAD.icon, coralAD.description, true, mCoin, 0, null)
val tzTaskBean = TzTaskBean(coralAD.icon, coralAD.title, coralAD.description, true, mCoin, 0, null)
tzTaskBean.coralAd = coralAD
mFakeTaskList.add(tzTaskBean)
}
......@@ -270,21 +272,7 @@ class TaskActivity : BaseActivity(), TaskView,
0 -> {
tryTimeOut = false
if (AppUtil.isOpenUsageStats()) {
if (mFakeTaskList[position].isShCpd) {
clickDialog(position)
} else {
val trackerBean = mFakeTaskList[position].trackerBean
if (trackerBean != null) {
LogUtil.d(TAG_LOG, "CPD -> clikc")
// 上报CPD点击
taskPresenter.cmtImp(trackerBean.clikc[0])
}
DownloadApkManager.setOnMyDownloadListener(this)
DownloadApkManager.downloadApk(this, mFakeTaskList[position].app_url, mFakeTaskList[position].currentPkgName)
}
clickDialog(position)
} else {
AppTryPlayManager.openAppUsageStats(this)
}
......@@ -353,9 +341,28 @@ class TaskActivity : BaseActivity(), TaskView,
private fun clickDialog(position: Int) {
if (needUseTime == -1) return
taskDialog = TaskDialog(this)
taskDialog?.setData(mFakeTaskList[position].coralAd, needUseTime, mCoin)
taskDialog?.show()
if (mFakeTaskList[position].isShCpd) {
taskDialog = TaskDialog(this)
taskDialog?.setData(mFakeTaskList[position].coralAd, needUseTime, mCoin)
taskDialog?.show()
} else {
taskCpdDialog = TaskCpdDialog(this, object : DialogListener() {
override fun onClick(v: View?) {
val trackerBean = mFakeTaskList[position].trackerBean
if (trackerBean != null) {
LogUtil.d(TAG_LOG, "CPD -> clikc")
// 上报CPD点击
taskPresenter.cmtImp(trackerBean.clikc[0])
}
DownloadApkManager.setOnMyDownloadListener(this@TaskActivity)
DownloadApkManager.downloadApk(this@TaskActivity, mFakeTaskList[position].app_url, mFakeTaskList[position].currentPkgName)
}
})
taskCpdDialog?.setData(mFakeTaskList[position].title, mFakeTaskList[position].description, mFakeTaskList[position].icon, needUseTime, mCoin)
taskCpdDialog?.show()
}
}
......@@ -373,6 +380,7 @@ class TaskActivity : BaseActivity(), TaskView,
try {
taskDialog?.dismiss()
taskCpdDialog?.dismiss()
val pkg = intent.getStringExtra("pkg")
......@@ -434,8 +442,14 @@ class TaskActivity : BaseActivity(), TaskView,
val trackerBean = mFakeTaskList[position].trackerBean
if (trackerBean != null) {
// 上报CPD激活完成
LogUtil.d(TAG_LOG, "CPD -> install_start")
LogUtil.d(TAG_LOG, "CPD -> install_finish")
LogUtil.d(TAG_LOG, "CPD -> activation")
taskPresenter.cmtImp(trackerBean.install_start[0])
taskPresenter.cmtImp(trackerBean.install_finish[0])
taskPresenter.cmtImp(trackerBean.activation[0])
}
}
......@@ -521,6 +535,7 @@ class TaskActivity : BaseActivity(), TaskView,
*/
override fun onDownloadStart() {
taskDialog?.dismiss()
taskCpdDialog?.dismiss()
val position = mTaskAdapter!!.getPosition()
if (mFakeTaskList[position].isShCpd) {
......
......@@ -25,7 +25,6 @@ import com.mints.goodmoney.mvp.model.UserTaskMsgBean
import com.mints.goodmoney.mvp.presenters.HomePresenter
import com.mints.goodmoney.mvp.views.HomeView
import com.mints.goodmoney.ui.activitys.AwardActivity
import com.mints.goodmoney.ui.activitys.MainActivity
import com.mints.goodmoney.ui.activitys.WebActivity
import com.mints.goodmoney.ui.fragment.base.BaseFragment
import com.mints.goodmoney.ui.widgets.BindWxDialog
......@@ -98,6 +97,7 @@ class MainFragment : BaseFragment(), HomeView, View.OnClickListener {
// 首次显示权限弹窗
showPowerDialog()
// 初始化视频
showLittle()
......
package com.mints.goodmoney.ui.fragment
import android.os.Build
import android.os.Bundle
import android.text.TextUtils
import android.view.MotionEvent
import android.view.View
import android.webkit.WebChromeClient
import androidx.annotation.RequiresApi
import com.component.dly.xzzq_ywsdk.YwSDK_WebActivity
import com.github.lzyzsd.jsbridge.CallBackFunction
import com.github.lzyzsd.jsbridge.DefaultHandler
......@@ -144,8 +140,6 @@ class PanFragment : BaseFragment(), PanView {
val bundle = Bundle()
bundle.putInt(TaskActivity.TASK_COIN, panActionInfo.coin)
bundle.putInt(TaskActivity.TASK_USE_MAX, panActionInfo.max)
bundle.putInt(TaskActivity.TASK_USE_COMPLETE, panActionInfo.complete)
readyGo(TaskActivity::class.java, bundle)
}
2 -> {
......
package com.mints.goodmoney.ui.widgets
import android.app.Dialog
import android.content.Context
import android.view.Gravity
import android.view.WindowManager
import android.widget.ImageView
import android.widget.TextView
import com.mints.goodmoney.R
import com.mints.library.utils.GlideUtils
/**
* 提示弹框
*/
class TaskCpdDialog(context: Context, private val listener: DialogListener) :
Dialog(context, R.style.dialog) {
private val lp: WindowManager.LayoutParams
private val tvTitle: TextView
private val tvText1: TextView
private val tvText2: TextView
private val tvInfo: TextView
private val ivAvatar: ImageView
private val textView: TextView
init {
setContentView(R.layout.dialog_task)
// 设置window属性
lp = window!!.attributes
lp.gravity = Gravity.CENTER
lp.width = WindowManager.LayoutParams.WRAP_CONTENT
lp.windowAnimations = R.style.DialogAnimBottom
window!!.attributes = lp
// 设置外部不可关闭
// setCancelable(false)
// setCanceledOnTouchOutside(false)
// setOnKeyListener { _, i, _ ->
// i == KeyEvent.KEYCODE_BACK
// }
// 查找View
tvTitle = findViewById(R.id.dialog_tv_title)
tvText1 = findViewById(R.id.dialog_tv_text1)
tvText2 = findViewById(R.id.dialog_tv_text2)
ivAvatar = findViewById(R.id.dialog_iv_avatar)
tvInfo = findViewById(R.id.dialog_tv_info)
textView = findViewById(R.id.dialog_btn_download)
textView.setOnClickListener(listener)
}
fun setData(title: String, description: String, icon: String, seconds: Int, coin: Int) {
if (seconds > 0) {
tvText1.text = "下载并试玩$seconds" + "秒"
} else {
tvText1.text = "下载领取金币"
}
tvText2.text = "+$coin" + "金币"
tvTitle.text = title
GlideUtils.loadImageView(context, icon, ivAvatar)
tvInfo.text = description
}
}
\ No newline at end of file
......@@ -49,10 +49,6 @@ class TaskDialog(context: Context) :
tvInfo = findViewById(R.id.dialog_tv_info)
textView = findViewById(R.id.dialog_btn_download)
adContainer = findViewById(R.id.ad_container)
// tvTitle.setOnClickListener(listener)
// tvInfo.setOnClickListener(listener)
// btnDownload.setOnClickListener(listener)
}
fun setData(data: CoralAD, seconds: Int, coin: Int) {
......
<?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:background="@drawable/shape_gold_card"
android:gravity="center_horizontal"
android:orientation="vertical"
android:paddingStart="30dp"
android:paddingTop="30dp"
android:paddingEnd="30dp"
android:paddingBottom="20dp">
<TextView
android:id="@+id/dialog_tv_text1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/black"
android:textSize="18sp"
android:textStyle="bold" />
<TextView
android:id="@+id/dialog_tv_text2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:textColor="@color/color_FF2326"
android:textSize="18sp" />
<LinearLayout
android:layout_width="200dp"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:background="@drawable/shape_vip_adapter"
android:gravity="center_horizontal"
android:orientation="vertical"
android:padding="10dp">
<ImageView
android:id="@+id/dialog_iv_avatar"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_marginTop="10dp" />
<TextView
android:id="@+id/dialog_tv_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:gravity="center_horizontal"
android:textColor="@color/black" />
<TextView
android:id="@+id/dialog_tv_info"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:layout_marginBottom="10dp"
android:gravity="center_horizontal" />
</LinearLayout>
<TextView
android:id="@+id/dialog_btn_download"
android:layout_width="120dp"
android:layout_height="40dp"
android:layout_marginTop="20dp"
android:background="@drawable/shape_btn_switch"
android:gravity="center"
android:text="立即下载"
android:textColor="@color/white"
android:textSize="16sp" />
</LinearLayout>
\ No newline at end of file
......@@ -3,7 +3,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent">
<RelativeLayout
<FrameLayout
android:id="@+id/yilan_fragment_frame_container"
android:layout_width="match_parent"
android:layout_height="match_parent" />
......
......@@ -37,26 +37,27 @@
android:layout_height="wrap_content"
android:orientation="vertical">
<include layout="@layout/item_fragment_main_my_title" />
<include layout="@layout/item_fragment_main_my_title" />
<include layout="@layout/item_fragment_main_my_clock" />
<include layout="@layout/item_fragment_main_my_clock" />
<FrameLayout
android:id="@+id/fl_my_banner"
android:paddingStart="5dp"
android:paddingEnd="5dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:visibility="gone" />
<FrameLayout
android:id="@+id/fl_my_banner"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingStart="5dp"
android:paddingEnd="5dp"
android:visibility="gone" />
<include layout="@layout/item_divider_gray" />
<include layout="@layout/item_divider_gray" />
<include layout="@layout/item_fragment_main_my_promotions" />
<include layout="@layout/item_fragment_main_my_promotions" />
<include layout="@layout/item_divider_gray" />
<include layout="@layout/item_divider_gray" />
<include layout="@layout/view_title" />
<include layout="@layout/view_title" />
</LinearLayout>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recy_my"
android:layout_width="match_parent"
......
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white"
android:orientation="vertical">
android:layout_height="match_parent">
<com.github.lzyzsd.jsbridge.BridgeWebView
android:id="@+id/blTurntableWebview"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</RelativeLayout>
android:background="@color/black"
android:layout_height="match_parent" />
</FrameLayout>
......@@ -20,10 +20,13 @@
android:id="@+id/item_title_id"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:layout_marginStart="20dp"
android:ellipsize="end"
android:maxLength="10"
android:maxLines="1"
android:text="未登录"
android:textColor="@color/black"
android:textSize="18sp"
android:textSize="20sp"
android:textStyle="bold"
app:layout_constraintBottom_toTopOf="@id/item_title_invitecode"
app:layout_constraintStart_toEndOf="@id/item_title_avatar"
......@@ -33,7 +36,7 @@
android:id="@+id/item_title_invitecode"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:layout_marginStart="20dp"
android:textColor="@color/color_333"
android:textSize="14sp"
app:layout_constraintBottom_toBottomOf="parent"
......@@ -59,77 +62,77 @@
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="90dp"
android:layout_marginStart="15dp"
android:layout_marginEnd="15dp"
android:layout_marginBottom="10dp"
android:background="@drawable/shape_gold_card"
android:elevation="2dip">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="90dp"
android:layout_marginStart="15dp"
android:layout_marginEnd="15dp"
android:layout_marginBottom="10dp"
android:background="@drawable/shape_gold_card"
android:elevation="2dip">
<ImageView
android:id="@+id/imageView2"
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_marginStart="10dp"
android:src="@mipmap/ic_gold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<ImageView
android:id="@+id/imageView2"
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_marginStart="10dp"
android:src="@mipmap/ic_gold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/item_title_gold_count"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:text="0"
android:textColor="@color/color_FB560C"
android:textSize="26sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toEndOf="@id/imageView2"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/item_title_gold_count"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:text="0"
android:textColor="@color/color_FB560C"
android:textSize="26sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toEndOf="@id/imageView2"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/item_title_gold_about"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:background="@mipmap/ic_goldtry_about"
android:gravity="center"
android:text="约0.00元"
android:textColor="@color/white"
android:textSize="10sp"
app:layout_constraintEnd_toEndOf="@+id/item_title_gold_count"
app:layout_constraintStart_toEndOf="@id/item_title_gold_count"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/item_title_gold_about"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:background="@mipmap/ic_goldtry_about"
android:gravity="center"
android:text="约0.00元"
android:textColor="@color/white"
android:textSize="10sp"
app:layout_constraintEnd_toEndOf="@+id/item_title_gold_count"
app:layout_constraintStart_toEndOf="@id/item_title_gold_count"
app:layout_constraintTop_toTopOf="parent" />
<Button
android:id="@+id/btn_coinRecord"
android:layout_width="60dp"
android:layout_height="30dp"
android:layout_marginEnd="10dp"
android:background="@drawable/shape_btn_switch"
android:text="明细"
android:textColor="@color/white"
android:textSize="16sp"
app:layout_constraintBottom_toTopOf="@id/btn_withdraw"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<Button
android:id="@+id/btn_coinRecord"
android:layout_width="60dp"
android:layout_height="30dp"
android:layout_marginEnd="10dp"
android:background="@drawable/shape_btn_switch"
android:text="明细"
android:textColor="@color/white"
android:textSize="16sp"
app:layout_constraintBottom_toTopOf="@id/btn_withdraw"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<Button
android:id="@+id/btn_withdraw"
android:layout_width="60dp"
android:layout_height="30dp"
android:layout_marginEnd="10dp"
android:background="@drawable/shape_btn_switch"
android:text="提现"
android:textColor="@color/white"
android:textSize="16sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@id/btn_coinRecord" />
<Button
android:id="@+id/btn_withdraw"
android:layout_width="60dp"
android:layout_height="30dp"
android:layout_marginEnd="10dp"
android:background="@drawable/shape_btn_switch"
android:text="提现"
android:textColor="@color/white"
android:textSize="16sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@id/btn_coinRecord" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</merge>
\ 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