Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_fiveworld
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
android
android_fiveworld
Commits
174bae57
Commit
174bae57
authored
Jul 13, 2021
by
mengcuiguang2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
a5f84795
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
61 additions
and
1 deletion
+61
-1
AndroidManifest.xml
app/src/main/AndroidManifest.xml
+1
-0
HistoricalimageActivity.kt
...ava/com/mints/street/main/home/HistoricalimageActivity.kt
+33
-0
HistoricalimageModel.kt
...n/java/com/mints/street/main/home/HistoricalimageModel.kt
+7
-0
MyFragment.kt
app/src/main/java/com/mints/street/main/my/MyFragment.kt
+3
-1
activity_historical_image.xml
app/src/main/res/layout/activity_historical_image.xml
+17
-0
No files found.
app/src/main/AndroidManifest.xml
View file @
174bae57
...
...
@@ -92,6 +92,7 @@
<activity
android:name=
".main.my.MoresettingsActivity"
/>
<activity
android:name=
".main.my.AboutusActivity"
/>
<activity
android:name=
".main.my.PermissionsActivity"
/>
<activity
android:name=
".main.home.HistoricalimageActivity"
/>
<!-- ShareSDK start -->
<activity
...
...
app/src/main/java/com/mints/street/main/home/HistoricalimageActivity.kt
0 → 100644
View file @
174bae57
package
com.mints.street.main.home
import
android.os.Bundle
import
android.view.View
import
com.coorchice.library.utils.LogUtils
import
com.fry.base.base.BaseActivity
import
com.mints.street.BR
import
com.mints.street.R
import
com.mints.street.databinding.ActivityHistoricalImageBinding
import
kotlinx.android.synthetic.main.activity_historical_image.*
import
me.goldze.mvvmhabit.utils.ToastUtils
/**
* 描述:历史影像
* 作者:孟崔广
* 时间:2021/7/12 17:51
*/
class
HistoricalimageActivity
:
BaseActivity
<
ActivityHistoricalImageBinding
,
HistoricalimageModel
>(),
View
.
OnClickListener
{
override
fun
initVariableId
()
=
BR
.
viewModel
override
fun
initContentView
(
savedInstanceState
:
Bundle
?)=
R
.
layout
.
activity_historical_image
override
fun
initData
()
{
super
.
initData
()
initView
()
}
private
fun
initView
()
{
}
override
fun
onClick
(
v
:
View
?)
{
}
}
app/src/main/java/com/mints/street/main/home/HistoricalimageModel.kt
0 → 100644
View file @
174bae57
package
com.mints.street.main.home
import
android.app.Application
import
me.goldze.mvvmhabit.base.BaseViewModel
class
HistoricalimageModel
(
application
:
Application
):
BaseViewModel
(
application
)
{
}
\ No newline at end of file
app/src/main/java/com/mints/street/main/my/MyFragment.kt
View file @
174bae57
...
...
@@ -16,6 +16,7 @@ import com.mints.street.BR
import
com.mints.street.R
import
com.mints.street.databinding.FragmentMyBinding
import
com.mints.street.login.LoginActivity
import
com.mints.street.main.home.HistoricalimageActivity
import
kotlinx.android.synthetic.main.fragment_my.*
...
...
@@ -73,7 +74,8 @@ class MyFragment : BaseFragment<FragmentMyBinding, MyViewModel>(), View.OnClickL
override
fun
onClick
(
v
:
View
?)
{
when
(
v
?.
id
)
{
R
.
id
.
ly_aboutus
->
{
startActivity
(
AboutusActivity
::
class
.
java
)
// startActivity(AboutusActivity::class.java)
startActivity
(
HistoricalimageActivity
::
class
.
java
)
}
R
.
id
.
ly_moresettings
->
{
startActivity
(
MoresettingsActivity
::
class
.
java
)
...
...
app/src/main/res/layout/activity_historical_image.xml
0 → 100644
View file @
174bae57
<?xml version="1.0" encoding="utf-8"?>
<layout
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<data>
<variable
name=
"ViewModel"
type=
"com.mints.street.main.home.HistoricalimageModel"
/>
</data>
<LinearLayout
android:layout_width=
"match_parent"
android:orientation=
"vertical"
android:layout_height=
"match_parent"
>
</LinearLayout>
</layout>
\ No newline at end of file
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