Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
ShenghuoquanBusiness
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bp
ShenghuoquanBusiness
Commits
b5a9e5f5
Commit
b5a9e5f5
authored
Jun 23, 2021
by
宋永孟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add 添加编辑门店页面
parent
ecfb08af
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
48 additions
and
3 deletions
+48
-3
AndroidManifest.xml
Components/newscontent/src/main/AndroidManifest.xml
+5
-2
StoreAdapter.kt
...m/yidian/shenghuoquan/newscontent/adapter/StoreAdapter.kt
+3
-1
EditStoreActivity.kt
...m/yidian/shenghuoquan/newscontent/ui/EditStoreActivity.kt
+20
-0
activity_store_edit.xml
...s/newscontent/src/main/res/layout/activity_store_edit.xml
+19
-0
strings.xml
Components/newscontent/src/main/res/values/strings.xml
+1
-0
No files found.
Components/newscontent/src/main/AndroidManifest.xml
View file @
b5a9e5f5
...
...
@@ -68,13 +68,16 @@
android:name=
".ui.GalleryActivity"
android:theme=
"@style/Transparent"
/>
<activity
android:name=
".ui.LoginLifeCircleActivity"
/>
<activity
android:name=
".ui.LoginLifeCircleActivity"
/>
<activity
android:name=
".ui.StoreManagementActivity"
android:theme=
"@style/Transparent"
/>
<activity
android:name=
".ui.EditStoreActivity"
android:theme=
"@style/Transparent"
/>
<activity
android:name=
".ui.auth.LifeAccountIdentityActivity"
android:theme=
"@style/Transparent"
/>
...
...
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/adapter/StoreAdapter.kt
View file @
b5a9e5f5
package
com.yidian.shenghuoquan.newscontent.adapter
import
android.content.Context
import
android.content.Intent
import
android.view.LayoutInflater
import
android.view.ViewGroup
import
android.widget.Toast
import
androidx.recyclerview.widget.RecyclerView
import
com.yidian.shenghuoquan.newscontent.R
import
com.yidian.shenghuoquan.newscontent.bean.Store
import
com.yidian.shenghuoquan.newscontent.ui.EditStoreActivity
import
com.yidian.shenghuoquan.newscontent.viewholder.StoreViewHolder
/**
...
...
@@ -25,7 +27,7 @@ class StoreAdapter(private val context: Context, private val dataList: ArrayList
holder
.
setData
(
store
,
position
)
holder
.
setOnListener
(
object
:
HolderListener
{
override
fun
jump
()
{
Toast
.
makeText
(
context
,
"$position item click"
,
Toast
.
LENGTH_SHORT
).
show
(
)
context
.
startActivity
(
Intent
(
context
,
EditStoreActivity
::
class
.
java
)
)
}
})
}
...
...
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/ui/EditStoreActivity.kt
0 → 100644
View file @
b5a9e5f5
package
com.yidian.shenghuoquan.newscontent.ui
import
com.yidian.common.base.BaseActivity
import
com.yidian.shenghuoquan.newscontent.databinding.ActivityStoreEditBinding
import
com.yidian.shenghuoquan.newscontent.databinding.ActivityStoreManagementBinding
/**
* Author: sym
* Date: 2021/6/23 3:05 PM
* Describe:
*/
class
EditStoreActivity
:
BaseActivity
<
ActivityStoreEditBinding
>()
{
override
fun
createViewBinding
():
ActivityStoreEditBinding
{
return
ActivityStoreEditBinding
.
inflate
(
layoutInflater
)
}
override
fun
getXPageName
():
String
{
return
""
}
}
Components/newscontent/src/main/res/layout/activity_store_edit.xml
0 → 100644
View file @
b5a9e5f5
<?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:fitsSystemWindows=
"true"
android:orientation=
"vertical"
>
<com.yidian.shenghuoquan.newscontent.widget.CommonTopBarView
android:id=
"@+id/bv_top_bar"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
app:CommonTopBarView_title_text=
"@string/store_edit_title"
app:layout_constraintTop_toTopOf=
"parent"
/>
</LinearLayout>
\ No newline at end of file
Components/newscontent/src/main/res/values/strings.xml
View file @
b5a9e5f5
...
...
@@ -159,6 +159,7 @@
<string
name=
"basic_info"
>
基本信息
</string>
<string
name=
"modify_life_account_name"
>
修改名称
</string>
<string
name=
"store_management_title"
>
门店管理
</string>
<string
name=
"store_edit_title"
>
编辑门店
</string>
<string
name=
"save_life_account_name"
>
保存
</string>
<string
name=
"life_account_name_already_exist"
>
该名称已存在
</string>
<string
name=
"audit_reject"
>
审核驳回
</string>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment