Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
allinone
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
贾海然
allinone
Commits
4d34c706
Commit
4d34c706
authored
Apr 28, 2021
by
贾海然
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加登出按钮
parent
a4c16dbc
Pipeline
#146
failed with stages
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
2 deletions
+22
-2
app/src/main/java/com/beanpodtech/allinone/fragment/FirstFragment.java
...java/com/beanpodtech/allinone/fragment/FirstFragment.java
+1
-2
app/src/main/java/com/beanpodtech/allinone/fragment/MineFragment.java
.../java/com/beanpodtech/allinone/fragment/MineFragment.java
+11
-0
app/src/main/res/layout/fragment_mine.xml
app/src/main/res/layout/fragment_mine.xml
+10
-0
No files found.
app/src/main/java/com/beanpodtech/allinone/fragment/FirstFragment.java
View file @
4d34c706
...
...
@@ -183,8 +183,7 @@ public class FirstFragment extends BaseFragment implements View.OnClickListener
homeRecordAdapter
.
notifyDataSetChanged
();
todayStudyPlanRl
.
setVisibility
(
View
.
VISIBLE
);
}
else
{
// todayStudyPlanRl.setVisibility(View.GONE);
todayStudyPlanRl
.
setVisibility
(
View
.
GONE
);
}
}
...
...
app/src/main/java/com/beanpodtech/allinone/fragment/MineFragment.java
View file @
4d34c706
...
...
@@ -41,6 +41,7 @@ public class MineFragment extends BaseFragment implements View.OnClickListener {
private
TextView
mTvChangePsw
,
mTvName
,
mTvSchool
,
mTvPhone
,
mTvProvince
;
private
String
oldpassword_MD5
;
private
String
newpassword_MD5
;
private
TextView
tvLogout
;
@Override
public
int
setLayout
()
{
...
...
@@ -55,6 +56,8 @@ public class MineFragment extends BaseFragment implements View.OnClickListener {
mTvPhone
=
view
.
findViewById
(
R
.
id
.
tv_phone
);
mTvProvince
=
view
.
findViewById
(
R
.
id
.
tv_province
);
mTvChangePsw
.
setOnClickListener
(
this
);
tvLogout
=
view
.
findViewById
(
R
.
id
.
tv_logout
);
tvLogout
.
setOnClickListener
(
this
);
}
@Override
...
...
@@ -156,6 +159,14 @@ public class MineFragment extends BaseFragment implements View.OnClickListener {
startActivity
(
new
Intent
(
getActivity
(),
LoginActivity
.
class
));
getActivity
().
finish
();
break
;
//新增退出账号功能 测试用
case
R
.
id
.
tv_logout
:
startActivity
(
new
Intent
(
getActivity
(),
LoginActivity
.
class
));
SpUtil
.
getInstace
().
clear
();
getActivity
().
finish
();
break
;
}
}
...
...
app/src/main/res/layout/fragment_mine.xml
View file @
4d34c706
...
...
@@ -254,5 +254,15 @@
android:textSize=
"12sp"
/>
</LinearLayout>
<TextView
android:id=
"@+id/tv_logout"
android:layout_width=
"wrap_content"
android:layout_height=
"28dp"
android:layout_margin=
"15dp"
android:text=
"退出登录"
android:textColor=
"#ffffffff"
android:textSize=
"19sp"
/>
</LinearLayout>
</LinearLayout>
\ 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