Commit dcdc4248 authored by maxiaoliang's avatar maxiaoliang

修改ui 和埋点

parent 6542602d
...@@ -75,16 +75,16 @@ class CashExchangeAdapter : ...@@ -75,16 +75,16 @@ class CashExchangeAdapter :
} else { } else {
when (bean.id) { when (bean.id) {
1 -> { 1 -> {
EventUtils.onEvent("click_baicai", "白菜" + bean.cash) EventUtils.onEvent("click_hongmeigui", "红玫瑰" + bean.cash)
} }
2 -> { 2 -> {
EventUtils.onEvent("click_fanqie", "番茄" + bean.cash) EventUtils.onEvent("click_zimeigui", "紫玫瑰" + bean.cash)
} }
3 -> { 3 -> {
EventUtils.onEvent("click_nangua", "南瓜" + bean.cash) EventUtils.onEvent("click_linglan", "铃兰" + bean.cash)
} }
4 -> { 4 -> {
EventUtils.onEvent("click_luobo", "萝卜" + bean.cash) EventUtils.onEvent("click_juhua", "菊花" + bean.cash)
} }
} }
} }
......
...@@ -467,16 +467,16 @@ object MainDialog { ...@@ -467,16 +467,16 @@ object MainDialog {
when (id) { when (id) {
1 -> { 1 -> {
Log.e("MXL","show_baicai") Log.e("MXL","show_baicai")
EventUtils.onEvent("show_baicai", "白菜" + jine) EventUtils.onEvent("show_hongmeigui", "红玫瑰" + jine)
} }
2 -> { 2 -> {
EventUtils.onEvent("show_fanqie", "番茄" + jine) EventUtils.onEvent("show_zimeigui", "紫玫瑰" + jine)
} }
3 -> { 3 -> {
EventUtils.onEvent("show_nangua", "南瓜" + jine) EventUtils.onEvent("show_linglan", "铃兰" + jine)
} }
4 -> { 4 -> {
EventUtils.onEvent("show_luobo", "萝卜" + jine) EventUtils.onEvent("show_juhua", "菊花" + jine)
} }
} }
} }
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent"
xmlns:tools="http://schemas.android.com/tools">
<RelativeLayout <RelativeLayout
android:layout_width="match_parent" android:layout_width="match_parent"
...@@ -58,6 +59,8 @@ ...@@ -58,6 +59,8 @@
<androidx.recyclerview.widget.RecyclerView <androidx.recyclerview.widget.RecyclerView
tools:itemCount="20"
tools:listitem="@layout/item_layout_warehouse"
android:id="@+id/rl_record" android:id="@+id/rl_record"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
......
...@@ -2,8 +2,10 @@ ...@@ -2,8 +2,10 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="@dimen/dp_100" android:layout_width="@dimen/dp_100"
android:layout_height="wrap_content" android:layout_height="wrap_content"
xmlns:tools="http://schemas.android.com/tools"
android:gravity="center" android:gravity="center"
android:orientation="vertical"> android:orientation="vertical"
android:layout_marginBottom="@dimen/dp_12">
<LinearLayout <LinearLayout
android:layout_width="@dimen/dp_42" android:layout_width="@dimen/dp_42"
...@@ -13,14 +15,15 @@ ...@@ -13,14 +15,15 @@
<ImageView <ImageView
android:id="@+id/id_img_item" android:id="@+id/id_img_item"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" /> android:layout_height="wrap_content"
tools:src="@mipmap/icon_zhongzi_one"/>
</LinearLayout> </LinearLayout>
<TextView <TextView
android:id="@+id/id_tv_ownnum" android:id="@+id/id_tv_ownnum"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="" tools:text="11"
android:textColor="#8F4C07" android:textColor="#8F4C07"
android:textSize="@dimen/sp_16" android:textSize="@dimen/sp_16"
android:textStyle="bold" /> android:textStyle="bold" />
......
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