Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2022-005
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
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2022-005
2022-005
Commits
73ac8af4
Commit
73ac8af4
authored
Oct 10, 2022
by
Chathura IT19243986
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upload New File
parent
e7d19f7a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
60 additions
and
0 deletions
+60
-0
Meal.java
Meal.java
+60
-0
No files found.
Meal.java
0 → 100644
View file @
73ac8af4
package
com.example.peopluz1.Heart
;
import
android.app.Activity
;
import
android.content.Intent
;
import
android.os.Bundle
;
import
androidx.annotation.Nullable
;
import
androidx.fragment.app.Fragment
;
import
android.view.LayoutInflater
;
import
android.view.View
;
import
android.view.ViewGroup
;
import
android.widget.Button
;
import
com.example.peopluz1.MealPlan
;
import
com.example.peopluz1.R
;
import
com.example.peopluz1.workoutplan
;
public
class
Meal
extends
Fragment
{
Activity
context
;
Button
button
;
@Override
public
View
onCreateView
(
LayoutInflater
inflater
,
ViewGroup
container
,
Bundle
savedInstanceState
)
{
// Inflate the layout for this fragment
View
v
=
inflater
.
inflate
(
R
.
layout
.
fragment_meal
,
container
,
false
);
return
inflater
.
inflate
(
R
.
layout
.
fragment_meal
,
container
,
false
);
}
@Override
public
void
onViewCreated
(
View
view
,
@Nullable
Bundle
savedInstanceState
)
{
Button
btn1
=
(
Button
)
view
.
findViewById
(
R
.
id
.
button10
);
Button
btn2
=
(
Button
)
view
.
findViewById
(
R
.
id
.
button2
);
btn1
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
view
)
{
Intent
intent
=
new
Intent
(
getActivity
(),
workoutplan
.
class
);
getActivity
().
startActivity
(
intent
);
getActivity
().
finish
();
}
});
btn2
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
view
)
{
Intent
intent
=
new
Intent
(
getActivity
(),
MealPlan
.
class
);
getActivity
().
startActivity
(
intent
);
getActivity
().
finish
();
}
});
}
}
\ 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