Commit f5ad1a16 authored by 宋永孟's avatar 宋永孟

add 添加底部按钮

parent 9b3d63bf
package com.yidian.shenghuoquan.newscontent.ui
import android.os.Bundle
import android.widget.Toast
import androidx.recyclerview.widget.LinearLayoutManager
import com.yidian.common.XRouterPathConstants.Companion.STORE_MANAGEMENT
import com.yidian.common.base.BaseActivity
......@@ -31,5 +32,9 @@ class StoreManagementActivity : BaseActivity<ActivityStoreManagementBinding>() {
val adapter = StoreAdapter(this, StoreDataList.data)
viewBind.storeList.adapter = adapter
viewBind.addStoreBtn.setOnClickListener {
Toast.makeText(this@StoreManagementActivity, "StoreManagementActivity", Toast.LENGTH_SHORT).show()
}
}
}
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners android:radius="10dp" />
<solid android:color="#fff" />
<corners android:radius="40dp" />
<solid android:color="#1F61F5" />
</shape>
\ No newline at end of file
......@@ -16,7 +16,39 @@
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/store_list"
android:layout_width="match_parent"
android:layout_height="match_parent" />
android:layout_height="0dp"
android:layout_weight="4" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:gravity="center"
android:orientation="vertical">
<LinearLayout
android:id="@+id/add_store_btn"
android:layout_width="match_parent"
android:layout_height="44dp"
android:layout_marginLeft="30dp"
android:layout_marginRight="30dp"
android:background="@drawable/store_card_back"
android:gravity="center"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableLeft="@mipmap/store_add"
android:drawablePadding="8dp"
android:text="新增门店"
android:textColor="#fff"
android:textSize="18sp" />
</LinearLayout>
</LinearLayout>
</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