Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
InstiApp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
RAHUL SHARMA
InstiApp
Commits
26129725
Commit
26129725
authored
Jun 28, 2018
by
Yash Khemchandani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tab Functionality in Profile Fragment up and running
parent
57e49556
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
app/src/main/java/in/ac/iitb/gymkhana/iitbapp/fragment/ProfileFragment.java
...in/ac/iitb/gymkhana/iitbapp/fragment/ProfileFragment.java
+2
-1
No files found.
app/src/main/java/in/ac/iitb/gymkhana/iitbapp/fragment/ProfileFragment.java
View file @
26129725
...
...
@@ -119,12 +119,13 @@ public class ProfileFragment extends BaseFragment {
eventList
.
addAll
(
eventInterestedList
);
BodyRecyclerViewFragment
frag1
=
BodyRecyclerViewFragment
.
newInstance
(
bodyList
);
EventRecyclerViewFragment
frag2
=
EventRecyclerViewFragment
.
newInstance
(
eventList
);
TabAdapter
tabAdapter
=
new
TabAdapter
(
getFragmentManager
());
TabAdapter
tabAdapter
=
new
TabAdapter
(
get
Child
FragmentManager
());
tabAdapter
.
addFragment
(
frag1
,
"Following"
);
tabAdapter
.
addFragment
(
frag2
,
"Events"
);
// Set up the ViewPager with the sections adapter.
ViewPager
viewPager
=
(
ViewPager
)
getActivity
().
findViewById
(
R
.
id
.
viewPager
);
viewPager
.
setAdapter
(
tabAdapter
);
viewPager
.
setOffscreenPageLimit
(
2
);
TabLayout
tabLayout
=
(
TabLayout
)
getActivity
().
findViewById
(
R
.
id
.
tab_layout
);
...
...
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