Commit c7d5f4eb authored by wangxuewei's avatar wangxuewei

[提交人]:王雪伟

[提交简述] :幸福农场
[实现方案] :修改订单弹窗
parent cae16090
...@@ -39,8 +39,8 @@ import java.lang.reflect.Method ...@@ -39,8 +39,8 @@ import java.lang.reflect.Method
* @datetime 2020-10-09 22:09 GMT+8 * @datetime 2020-10-09 22:09 GMT+8
* @detail : * @detail :
*/ */
class GameActivity : UnityPlayerActivity(),IDialogViewCloseCallback { class GameActivity : UnityPlayerActivity(), IDialogViewCloseCallback {
private var mOrderString="";
private var mLoading: LoadingDialog? = null private var mLoading: LoadingDialog? = null
private val mContext = AppliContext.get() private val mContext = AppliContext.get()
override fun onCreate(savedInstanceState: Bundle?) { override fun onCreate(savedInstanceState: Bundle?) {
...@@ -49,7 +49,7 @@ class GameActivity : UnityPlayerActivity(),IDialogViewCloseCallback { ...@@ -49,7 +49,7 @@ class GameActivity : UnityPlayerActivity(),IDialogViewCloseCallback {
SettingPreference.setIsShowGuide(false) SettingPreference.setIsShowGuide(false)
} }
mLoading = LoadingDialog.getLoadingDialog( mLoading = LoadingDialog.getLoadingDialog(
mContext,"", mContext, "",
true, true,
true true
) )
...@@ -57,6 +57,11 @@ class GameActivity : UnityPlayerActivity(),IDialogViewCloseCallback { ...@@ -57,6 +57,11 @@ class GameActivity : UnityPlayerActivity(),IDialogViewCloseCallback {
TurntableDialog.initTurntableAnim() TurntableDialog.initTurntableAnim()
ToponManager.initRewardAd(this, AdID.mPlacementId_Reward_video_luck_farm) ToponManager.initRewardAd(this, AdID.mPlacementId_Reward_video_luck_farm)
} }
override fun onBackPressed() {
super.onBackPressed()
Log.d("wxw","back")
}
/** /**
* 调用Unity的方法 * 调用Unity的方法
* @param gameObjectName 调用的GameObject的名称 * @param gameObjectName 调用的GameObject的名称
...@@ -84,6 +89,7 @@ class GameActivity : UnityPlayerActivity(),IDialogViewCloseCallback { ...@@ -84,6 +89,7 @@ class GameActivity : UnityPlayerActivity(),IDialogViewCloseCallback {
} }
return false return false
} }
/** /**
* 跳转提现页 * 跳转提现页
*/ */
...@@ -124,7 +130,7 @@ class GameActivity : UnityPlayerActivity(),IDialogViewCloseCallback { ...@@ -124,7 +130,7 @@ class GameActivity : UnityPlayerActivity(),IDialogViewCloseCallback {
this.runOnUiThread(object : Runnable { this.runOnUiThread(object : Runnable {
override fun run() { override fun run() {
if (Utils.isFastClick()) { if (Utils.isFastClick()) {
TurntableDialog.showTurntable(this@GameActivity,this@GameActivity) TurntableDialog.showTurntable(this@GameActivity, this@GameActivity)
RxBusUtil.getDefault().send(RxBusConstant.RX_MAIN_TURNTABLE_LOTTERYED) RxBusUtil.getDefault().send(RxBusConstant.RX_MAIN_TURNTABLE_LOTTERYED)
} }
...@@ -139,7 +145,7 @@ class GameActivity : UnityPlayerActivity(),IDialogViewCloseCallback { ...@@ -139,7 +145,7 @@ class GameActivity : UnityPlayerActivity(),IDialogViewCloseCallback {
fun getCoin() { fun getCoin() {
this.runOnUiThread(object : Runnable { this.runOnUiThread(object : Runnable {
override fun run() { override fun run() {
SiginDropsPopupwindow().init(this@GameActivity,this@GameActivity) SiginDropsPopupwindow().init(this@GameActivity, this@GameActivity)
} }
}) })
} }
...@@ -159,7 +165,7 @@ class GameActivity : UnityPlayerActivity(),IDialogViewCloseCallback { ...@@ -159,7 +165,7 @@ class GameActivity : UnityPlayerActivity(),IDialogViewCloseCallback {
Log.d("wxw", "onRewardedVideoAdClosed") Log.d("wxw", "onRewardedVideoAdClosed")
//看视频上报 //看视频上报
getVideoAcceleratorsReceive(); getVideoAcceleratorsReceive();
getFlyBoxReceive() getFlyBoxReceive()
} }
...@@ -222,57 +228,57 @@ class GameActivity : UnityPlayerActivity(),IDialogViewCloseCallback { ...@@ -222,57 +228,57 @@ class GameActivity : UnityPlayerActivity(),IDialogViewCloseCallback {
* */ * */
fun getCloudSpeed(callback: IUnitySendMessageCallback?) { fun getCloudSpeed(callback: IUnitySendMessageCallback?) {
Log.d("wxw", "云朵加速") Log.d("wxw", "云朵加速")
ToponManager.loadReward(this, object : ToponRewardListener { // ToponManager.loadReward(this, object : ToponRewardListener {
override fun onRewardedVideoAdPlayClicked(entity: ATAdInfo) { // override fun onRewardedVideoAdPlayClicked(entity: ATAdInfo) {
Log.d("wxw", "onRewardedVideoAdPlayClicked") // Log.d("wxw", "onRewardedVideoAdPlayClicked")
} // }
//
override fun onRewardedVideoAdClosed(entity: ATAdInfo) { // override fun onRewardedVideoAdClosed(entity: ATAdInfo) {
Log.d("wxw", "onRewardedVideoAdClosed") // Log.d("wxw", "onRewardedVideoAdClosed")
//看视频上报 // //看视频上报
getVideoAcceleratorsReceive(); // getVideoAcceleratorsReceive();
// // //
GameApiClient.gameApi.getCloudSpeed().compose(RxSchedulers.observableIO2Main()) // GameApiClient.gameApi.getCloudSpeed().compose(RxSchedulers.observableIO2Main())
.subscribe(object : BaseObserver<StatusEntity>() { // .subscribe(object : BaseObserver<StatusEntity>() {
override fun onSuccess(result: StatusEntity?) { // override fun onSuccess(result: StatusEntity?) {
Log.d("wxw", "云朵加速" + Utils.obj2Str(result)) // Log.d("wxw", "云朵加速" + Utils.obj2Str(result))
callback?.onCloudSpeedSuccess(true, Utils.obj2Str(result)) // callback?.onCloudSpeedSuccess(true, Utils.obj2Str(result))
} // }
//
override fun onFailure(e: Throwable?, code: String?, errorMsg: String?) { // override fun onFailure(e: Throwable?, code: String?, errorMsg: String?) {
Log.d("wxw", "云朵加速 error") // Log.d("wxw", "云朵加速 error")
callback?.onCloudSpeedSuccess(false, errorMsg + "") // callback?.onCloudSpeedSuccess(false, errorMsg + "")
} // }
}) // })
} // }
//
override fun onRewardedVideoAdFailed(errorCode: AdError) { // override fun onRewardedVideoAdFailed(errorCode: AdError) {
Log.d("wxw", "onRewardedVideoAdFailed") // Log.d("wxw", "onRewardedVideoAdFailed")
callback?.onCloudSpeedSuccess(false,"广告失败") // callback?.onCloudSpeedSuccess(false,"广告失败")
} // }
//
override fun onRewardedVideoAdPlayEnd(entity: ATAdInfo) { // override fun onRewardedVideoAdPlayEnd(entity: ATAdInfo) {
Log.d("wxw", "onRewardedVideoAdPlayEnd") // Log.d("wxw", "onRewardedVideoAdPlayEnd")
} // }
//
// override fun onRewardedVideoAdPlayStart(entity: ATAdInfo) {
// Log.d("wxw", "onRewardedVideoAdPlayStart")
// }
// }, AdID.mPlacementId_Reward_video_luck_farm)
override fun onRewardedVideoAdPlayStart(entity: ATAdInfo) {
Log.d("wxw", "onRewardedVideoAdPlayStart")
}
}, AdID.mPlacementId_Reward_video_luck_farm)
GameApiClient.gameApi.getCloudSpeed().compose(RxSchedulers.observableIO2Main())
.subscribe(object : BaseObserver<StatusEntity>() {
override fun onSuccess(result: StatusEntity?) {
Log.d("wxw", "云朵加速" + Utils.obj2Str(result))
callback?.onCloudSpeedSuccess(true, Utils.obj2Str(result))
}
// GameApiClient.gameApi.getCloudSpeed().compose(RxSchedulers.observableIO2Main()) override fun onFailure(e: Throwable?, code: String?, errorMsg: String?) {
// .subscribe(object : BaseObserver<StatusEntity>() { Log.d("wxw", "云朵加速 error")
// override fun onSuccess(result: StatusEntity?) { callback?.onCloudSpeedSuccess(false, errorMsg + "")
// Log.d("wxw", "云朵加速" + Utils.obj2Str(result)) }
// callback?.onCloudSpeedSuccess(true, Utils.obj2Str(result)) })
// }
//
// override fun onFailure(e: Throwable?, code: String?, errorMsg: String?) {
// Log.d("wxw", "云朵加速 error")
// callback?.onCloudSpeedSuccess(false, errorMsg + "")
// }
// })
} }
//解锁地块 //解锁地块
...@@ -351,6 +357,7 @@ class GameActivity : UnityPlayerActivity(),IDialogViewCloseCallback { ...@@ -351,6 +357,7 @@ class GameActivity : UnityPlayerActivity(),IDialogViewCloseCallback {
GameApiClient.gameApi.getOrderData().compose(RxSchedulers.observableIO2Main()) GameApiClient.gameApi.getOrderData().compose(RxSchedulers.observableIO2Main())
.subscribe(object : BaseObserver<OrderListEntity>() { .subscribe(object : BaseObserver<OrderListEntity>() {
override fun onSuccess(result: OrderListEntity?) { override fun onSuccess(result: OrderListEntity?) {
mOrderString=Utils.obj2Str(result)
Log.d("wxw", "订单数据" + Utils.obj2Str(result)) Log.d("wxw", "订单数据" + Utils.obj2Str(result))
callback?.onOrderListSuccess(true, Utils.obj2Str(result)) callback?.onOrderListSuccess(true, Utils.obj2Str(result))
} }
...@@ -380,104 +387,116 @@ class GameActivity : UnityPlayerActivity(),IDialogViewCloseCallback { ...@@ -380,104 +387,116 @@ class GameActivity : UnityPlayerActivity(),IDialogViewCloseCallback {
//看视频领取种子 //看视频领取种子
fun getVideoSeedReceive(callback: IUnitySendMessageCallback?, id: Int) { fun getVideoSeedReceive(callback: IUnitySendMessageCallback?, id: Int) {
ToponManager.loadReward(this, object : ToponRewardListener { // ToponManager.loadReward(this, object : ToponRewardListener {
override fun onRewardedVideoAdPlayClicked(entity: ATAdInfo) { // override fun onRewardedVideoAdPlayClicked(entity: ATAdInfo) {
Log.d("wxw", "onRewardedVideoAdPlayClicked") // Log.d("wxw", "onRewardedVideoAdPlayClicked")
} // }
//
override fun onRewardedVideoAdClosed(entity: ATAdInfo) { // override fun onRewardedVideoAdClosed(entity: ATAdInfo) {
Log.d("wxw", "onRewardedVideoAdClosed") // Log.d("wxw", "onRewardedVideoAdClosed")
//看视频上报 // //看视频上报
getVideoAcceleratorsReceive(); // getVideoAcceleratorsReceive();
// // //
GameApiClient.gameApi.getVideoSeedReceive(id).compose(RxSchedulers.observableIO2Main()) // GameApiClient.gameApi.getVideoSeedReceive(id).compose(RxSchedulers.observableIO2Main())
.subscribe(object : BaseObserver<StatusEntity>() { // .subscribe(object : BaseObserver<StatusEntity>() {
override fun onSuccess(result: StatusEntity?) { // override fun onSuccess(result: StatusEntity?) {
result?.id = id // result?.id = id
Log.d("wxw", "看视频领取种子" + Utils.obj2Str(result)) // Log.d("wxw", "看视频领取种子" + Utils.obj2Str(result))
callback?.onIncrVideoSeedSuccess(true, Utils.obj2Str(result)) // callback?.onIncrVideoSeedSuccess(true, Utils.obj2Str(result))
} // }
//
override fun onFailure(e: Throwable?, code: String?, errorMsg: String?) { // override fun onFailure(e: Throwable?, code: String?, errorMsg: String?) {
Log.d("wxw", "看视频领取种子 error") // Log.d("wxw", "看视频领取种子 error")
callback?.onIncrVideoSeedSuccess(false, errorMsg + "") // callback?.onIncrVideoSeedSuccess(false, errorMsg + "")
} // }
}) // })
} // }
//
override fun onRewardedVideoAdFailed(errorCode: AdError) { // override fun onRewardedVideoAdFailed(errorCode: AdError) {
Log.d("wxw", "onRewardedVideoAdFailed") // Log.d("wxw", "onRewardedVideoAdFailed")
callback?.onIncrVideoSeedSuccess(false,"广告失败") // callback?.onIncrVideoSeedSuccess(false,"广告失败")
} // }
//
override fun onRewardedVideoAdPlayEnd(entity: ATAdInfo) { // override fun onRewardedVideoAdPlayEnd(entity: ATAdInfo) {
Log.d("wxw", "onRewardedVideoAdPlayEnd") // Log.d("wxw", "onRewardedVideoAdPlayEnd")
} // }
//
override fun onRewardedVideoAdPlayStart(entity: ATAdInfo) { // override fun onRewardedVideoAdPlayStart(entity: ATAdInfo) {
Log.d("wxw", "onRewardedVideoAdPlayStart") // Log.d("wxw", "onRewardedVideoAdPlayStart")
} // }
}, AdID.mPlacementId_Reward_video_luck_farm) // }, AdID.mPlacementId_Reward_video_luck_farm)
//
GameApiClient.gameApi.getVideoSeedReceive(id).compose(RxSchedulers.observableIO2Main())
.subscribe(object : BaseObserver<StatusEntity>() {
override fun onSuccess(result: StatusEntity?) {
result?.id = id
Log.d("wxw", "看视频领取种子" + Utils.obj2Str(result))
callback?.onIncrVideoSeedSuccess(true, Utils.obj2Str(result))
}
// GameApiClient.gameApi.getVideoSeedReceive(id).compose(RxSchedulers.observableIO2Main()) override fun onFailure(e: Throwable?, code: String?, errorMsg: String?) {
// .subscribe(object : BaseObserver<StatusEntity>() { Log.d("wxw", "看视频领取种子 error")
// override fun onSuccess(result: StatusEntity?) { callback?.onIncrVideoSeedSuccess(false, errorMsg + "")
// result?.id = id }
// Log.d("wxw", "看视频领取种子" + Utils.obj2Str(result)) })
// callback?.onIncrVideoSeedSuccess(true, Utils.obj2Str(result))
// }
//
// override fun onFailure(e: Throwable?, code: String?, errorMsg: String?) {
// Log.d("wxw", "看视频领取种子 error")
// callback?.onIncrVideoSeedSuccess(false, errorMsg + "")
// }
// })
} }
//看视频领取加速剂 //看视频领取加速剂
fun getVideoAcceleratorsReceive(callback: IUnitySendMessageCallback?, id: Int) { fun getVideoAcceleratorsReceive(callback: IUnitySendMessageCallback?, id: Int) {
ToponManager.loadReward(this, object : ToponRewardListener { // ToponManager.loadReward(this, object : ToponRewardListener {
override fun onRewardedVideoAdPlayClicked(entity: ATAdInfo) { // override fun onRewardedVideoAdPlayClicked(entity: ATAdInfo) {
Log.d("wxw", "onRewardedVideoAdPlayClicked") // Log.d("wxw", "onRewardedVideoAdPlayClicked")
} // }
//
override fun onRewardedVideoAdClosed(entity: ATAdInfo) { // override fun onRewardedVideoAdClosed(entity: ATAdInfo) {
Log.d("wxw", "onRewardedVideoAdClosed") // Log.d("wxw", "onRewardedVideoAdClosed")
//看视频上报 // //看视频上报
getVideoAcceleratorsReceive(); // getVideoAcceleratorsReceive();
// // //
GameApiClient.gameApi.getVideoAcceleratorsReceive(id) // GameApiClient.gameApi.getVideoAcceleratorsReceive(id)
.compose(RxSchedulers.observableIO2Main()) // .compose(RxSchedulers.observableIO2Main())
.subscribe(object : BaseObserver<StatusEntity>() { // .subscribe(object : BaseObserver<StatusEntity>() {
override fun onSuccess(result: StatusEntity?) { // override fun onSuccess(result: StatusEntity?) {
Log.d("wxw", "看视频领取加速剂" + Utils.obj2Str(result)) // Log.d("wxw", "看视频领取加速剂" + Utils.obj2Str(result))
callback?.onIncrVideoAcceleratorsSuccess(true, Utils.obj2Str(result)) // callback?.onIncrVideoAcceleratorsSuccess(true, Utils.obj2Str(result))
} // }
//
override fun onFailure(e: Throwable?, code: String?, errorMsg: String?) { // override fun onFailure(e: Throwable?, code: String?, errorMsg: String?) {
Log.d("wxw", "看视频领取加速剂 error") // Log.d("wxw", "看视频领取加速剂 error")
callback?.onIncrVideoAcceleratorsSuccess(false, errorMsg + "") // callback?.onIncrVideoAcceleratorsSuccess(false, errorMsg + "")
} // }
}) // })
} // }
//
override fun onRewardedVideoAdFailed(errorCode: AdError) { // override fun onRewardedVideoAdFailed(errorCode: AdError) {
Log.d("wxw", "onRewardedVideoAdFailed") // Log.d("wxw", "onRewardedVideoAdFailed")
callback?.onIncrVideoAcceleratorsSuccess(false,"广告失败") // callback?.onIncrVideoAcceleratorsSuccess(false,"广告失败")
} // }
//
override fun onRewardedVideoAdPlayEnd(entity: ATAdInfo) { // override fun onRewardedVideoAdPlayEnd(entity: ATAdInfo) {
Log.d("wxw", "onRewardedVideoAdPlayEnd") // Log.d("wxw", "onRewardedVideoAdPlayEnd")
} // }
//
override fun onRewardedVideoAdPlayStart(entity: ATAdInfo) { // override fun onRewardedVideoAdPlayStart(entity: ATAdInfo) {
Log.d("wxw", "onRewardedVideoAdPlayStart") // Log.d("wxw", "onRewardedVideoAdPlayStart")
} // }
}, AdID.mPlacementId_Reward_video_luck_farm) // }, AdID.mPlacementId_Reward_video_luck_farm)
GameApiClient.gameApi.getVideoAcceleratorsReceive(id)
.compose(RxSchedulers.observableIO2Main())
.subscribe(object : BaseObserver<StatusEntity>() {
override fun onSuccess(result: StatusEntity?) {
Log.d("wxw", "看视频领取加速剂" + Utils.obj2Str(result))
callback?.onIncrVideoAcceleratorsSuccess(true, Utils.obj2Str(result))
}
override fun onFailure(e: Throwable?, code: String?, errorMsg: String?) {
Log.d("wxw", "看视频领取加速剂 error")
callback?.onIncrVideoAcceleratorsSuccess(false, errorMsg + "")
}
})
} }
...@@ -515,6 +534,7 @@ class GameActivity : UnityPlayerActivity(),IDialogViewCloseCallback { ...@@ -515,6 +534,7 @@ class GameActivity : UnityPlayerActivity(),IDialogViewCloseCallback {
} }
} }
} }
override fun onFailure(e: Throwable?, code: String?, errorMsg: String?) { override fun onFailure(e: Throwable?, code: String?, errorMsg: String?) {
Log.d("wxw", "看视频领取宝箱 error") Log.d("wxw", "看视频领取宝箱 error")
} }
...@@ -523,6 +543,6 @@ class GameActivity : UnityPlayerActivity(),IDialogViewCloseCallback { ...@@ -523,6 +543,6 @@ class GameActivity : UnityPlayerActivity(),IDialogViewCloseCallback {
override fun onCloseViewSuccess(isSuccess: Boolean) { override fun onCloseViewSuccess(isSuccess: Boolean) {
//关闭view //关闭view
Log.d("wxw","关闭view") Log.d("wxw", "关闭view")
} }
} }
\ No newline at end of file
package com.ym.game.adapter
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.ProgressBar
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.ym.game.module.OrderListEntity
import com.ym.library.AppliContext
import com.ym.library.base.BaseRecyclerAdapter
import com.ym.xync.R
class GameOrderListAdapter :
BaseRecyclerAdapter<OrderListEntity.FarmOrderDataListBean, GameOrderListAdapter.ContentSignHolder>() {
override fun onBindViewHolder(holder: ContentSignHolder, position: Int) {
var orderBean = mList[position]
holder.item_name?.text = orderBean.name
holder.item_progress?.progress=(orderBean.ownNum%orderBean.targetNum)
}
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ContentSignHolder {
return ContentSignHolder(
LayoutInflater.from(AppliContext.get())
.inflate(R.layout.item_game_order_list, parent, false)
)
}
class ContentSignHolder : RecyclerView.ViewHolder {
var item_name: TextView?
var item_desc: TextView?
var item_img: ImageView?
var item_progress: ProgressBar?
constructor(
itemView: View
) : super(itemView) {
item_name = itemView.findViewById<TextView>(R.id.id_item_game_order_name)
item_desc = itemView.findViewById<TextView>(R.id.id_item_game_order_desc)
item_img = itemView.findViewById<ImageView>(R.id.id_item_game_order_img)
item_progress = itemView.findViewById<ProgressBar>(R.id.id_item_game_order_progress)
}
}
}
\ No newline at end of file
package com.ym.game.view
import androidx.recyclerview.widget.LinearLayoutManager
import com.ym.game.adapter.GameOrderListAdapter
import com.ym.game.module.OrderListEntity
import com.ym.library.net.BaseActivity
import com.ym.library.utils.Utils
import com.ym.library.utils.Utils.str2Obj
import com.ym.task.module.adapter.DailyTaskRecyclerAdapter
import com.ym.xync.R
import kotlinx.android.synthetic.main.activity_order_list.*
import kotlinx.android.synthetic.main.fragment_sound_task.*
/**
* @author (wangXuewei)
* @datetime 2020-10-18 16:30 GMT+8
* @detail :
*/
class OrderListActivity: BaseActivity() {
private var orderListAdapter: GameOrderListAdapter? = null;
override fun layoutID(): Int {
return R.layout.activity_order_list
}
override fun init() {
var orderStr= intent.getStringExtra("orderJson")
val str2Obj = str2Obj(orderStr, OrderListEntity::class.java)as OrderListEntity
//猜歌任务列表
orderListAdapter = GameOrderListAdapter()
id_rel_game_order_list?.adapter = orderListAdapter
id_rel_game_order_list?.layoutManager = LinearLayoutManager(this)
}
}
\ 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:id="@android:id/background">
<shape>
<corners android:radius="5dp" />
<!-- <stroke-->
<!-- android:width="1dp"-->
<!-- android:color="#EEEEEE" />-->
<solid android:color="#8F4C07" />
</shape>
</item>
<item android:id="@android:id/progress">
<clip>
<shape>
<corners android:radius="5dp" />
<gradient
android:angle="0"
android:endColor="#46E32B"
android:startColor="#46E32B" />
</shape>
</clip>
</item>
</layer-list>
\ No newline at end of file
<?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">
<ImageView
android:id="@+id/id_img_home_ware_bg"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:src="@mipmap/home_bg" />
<LinearLayout
android:id="@+id/id_order_list_content_rel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:layout_marginLeft="100dp"
android:background="@mipmap/home_cotent_bg"
android:padding="@dimen/dp_5">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/id_rel_game_order_list"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
<TextView
android:id="@+id/id_img_order_list_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@+id/id_order_list_content_rel"
android:layout_centerHorizontal="true"
android:layout_marginBottom="-30dp"
android:background="@mipmap/icon_top_bg"
android:gravity="center"
android:paddingBottom="@dimen/dp_30"
android:text="未完成订单"
android:textColor="@color/white"
android:textSize="@dimen/sp_20"
android:textStyle="bold" />
<ImageView
android:id="@+id/id_order_list_close"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignTop="@id/id_img_order_list_title"
android:layout_alignRight="@id/id_img_order_list_title"
android:src="@mipmap/home_close" />
</RelativeLayout>
\ No newline at end of file
<?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="wrap_content"
android:gravity="center"
android:orientation="horizontal">
<ImageView
android:id="@+id/id_item_game_order_img"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="15dp"
android:orientation="vertical">
<TextView
android:id="@+id/id_item_game_order_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/dp_10"
android:text="玉米"
android:textColor="#8F4C07"
android:textSize="@dimen/sp_15"
android:textStyle="bold" />
<ProgressBar
android:id="@+id/id_item_game_order_progress"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="170dp"
android:layout_height="10dp"
android:max="100"
android:progress="40"
android:progressDrawable="@drawable/game_order_progress_bg" />
</LinearLayout>
<TextView
android:id="@+id/id_item_game_order_desc"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="5/10"
android:textColor="#FF9128" />
</LinearLayout>
\ 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