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
081b03e2
Commit
081b03e2
authored
Jul 06, 2018
by
Varun Patil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor AboutFragment
parent
01c27d3e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
38 deletions
+27
-38
app/src/main/java/app/insti/fragment/AboutFragment.java
app/src/main/java/app/insti/fragment/AboutFragment.java
+27
-38
No files found.
app/src/main/java/app/insti/fragment/AboutFragment.java
View file @
081b03e2
...
@@ -41,45 +41,34 @@ public class AboutFragment extends BaseFragment {
...
@@ -41,45 +41,34 @@ public class AboutFragment extends BaseFragment {
@Override
@Override
public
void
onStart
()
{
public
void
onStart
()
{
super
.
onStart
();
super
.
onStart
();
CircleImageView
varunimg
=
getActivity
().
findViewById
(
R
.
id
.
varunimg
);
/* Map CircleImageView ids to image URLs */
CircleImageView
sajalimg
=
getActivity
().
findViewById
(
R
.
id
.
sajalimg
);
final
Map
<
Integer
,
String
>
team
=
new
HashMap
<
Integer
,
String
>()
{{
CircleImageView
nihalimg
=
getActivity
().
findViewById
(
R
.
id
.
nihalimg
);
put
(
R
.
id
.
varunimg
,
"varun.jpg"
);
CircleImageView
ydidwaniaimg
=
getActivity
().
findViewById
(
R
.
id
.
ydidwaniaimg
);
put
(
R
.
id
.
sajalimg
,
"sajal.jpg"
);
CircleImageView
cheekuimg
=
getActivity
().
findViewById
(
R
.
id
.
cheekuimg
);
put
(
R
.
id
.
nihalimg
,
"nihal.jpg"
);
CircleImageView
sarthakimg
=
getActivity
().
findViewById
(
R
.
id
.
sarthakimg
);
put
(
R
.
id
.
ydidwaniaimg
,
"ydidwania.jpg"
);
CircleImageView
sohamimg
=
getActivity
().
findViewById
(
R
.
id
.
sohamimg
);
put
(
R
.
id
.
cheekuimg
,
"cheeku.jpg"
);
CircleImageView
mrunmayiimg
=
getActivity
().
findViewById
(
R
.
id
.
mrunmayiimg
);
put
(
R
.
id
.
sarthakimg
,
"sarthak.jpg"
);
CircleImageView
owaisimg
=
getActivity
().
findViewById
(
R
.
id
.
owaisimg
);
put
(
R
.
id
.
sohamimg
,
"soham.jpg"
);
CircleImageView
hrushikeshimg
=
getActivity
().
findViewById
(
R
.
id
.
hrushikeshimg
);
put
(
R
.
id
.
mrunmayiimg
,
"mrunmayi.jpg"
);
CircleImageView
yashkhemimg
=
getActivity
().
findViewById
(
R
.
id
.
yashkhemimg
);
put
(
R
.
id
.
owaisimg
,
"owais.jpg"
);
CircleImageView
bavishimg
=
getActivity
().
findViewById
(
R
.
id
.
bavishimg
);
put
(
R
.
id
.
hrushikeshimg
,
"hrushikesh.jpg"
);
CircleImageView
mayuimg
=
getActivity
().
findViewById
(
R
.
id
.
mayuimg
);
put
(
R
.
id
.
yashkhemimg
,
"yashkhem.jpg"
);
CircleImageView
tomarimg
=
getActivity
().
findViewById
(
R
.
id
.
tomarimg
);
put
(
R
.
id
.
bavishimg
,
"bavish.jpg"
);
CircleImageView
bijoyimg
=
getActivity
().
findViewById
(
R
.
id
.
bijoyimg
);
put
(
R
.
id
.
mayuimg
,
"mayu.jpg"
);
CircleImageView
dheerendraimg
=
getActivity
().
findViewById
(
R
.
id
.
dheerendraimg
);
put
(
R
.
id
.
tomarimg
,
"tomar.jpg"
);
CircleImageView
ranveerimg
=
getActivity
().
findViewById
(
R
.
id
.
ranveerimg
);
put
(
R
.
id
.
bijoyimg
,
"bijoy.jpg"
);
CircleImageView
amangourimg
=
getActivity
().
findViewById
(
R
.
id
.
amangourimg
);
put
(
R
.
id
.
dheerendraimg
,
"dheerendra.jpg"
);
CircleImageView
wnccimg
=
getActivity
().
findViewById
(
R
.
id
.
wnccimg
);
put
(
R
.
id
.
ranveerimg
,
"ranveer.jpg"
);
put
(
R
.
id
.
amangourimg
,
"amangour.jpg"
);
put
(
R
.
id
.
wnccimg
,
"wncc.jpg"
);
}};
Picasso
.
with
(
getContext
()).
load
(
"https://insti.app/team-pics/varun.jpg"
).
into
(
varunimg
);
/* Show team pics */
Picasso
.
with
(
getContext
()).
load
(
"https://insti.app/team-pics/sajal.jpg"
).
into
(
sajalimg
);
for
(
final
Map
.
Entry
<
Integer
,
String
>
entry
:
team
.
entrySet
())
{
Picasso
.
with
(
getContext
()).
load
(
"https://insti.app/team-pics/nihal.jpg"
).
into
(
nihalimg
);
CircleImageView
circleImageView
=
getActivity
().
findViewById
(
entry
.
getKey
());
Picasso
.
with
(
getContext
()).
load
(
"https://insti.app/team-pics/ydidwania.jpg"
).
into
(
ydidwaniaimg
);
Picasso
.
with
(
getContext
()).
load
(
"https://insti.app/team-pics/"
+
entry
.
getValue
()).
into
(
circleImageView
);
Picasso
.
with
(
getContext
()).
load
(
"https://insti.app/team-pics/cheeku.jpg"
).
into
(
cheekuimg
);
}
Picasso
.
with
(
getContext
()).
load
(
"https://insti.app/team-pics/sarthak.jpg"
).
into
(
sarthakimg
);
Picasso
.
with
(
getContext
()).
load
(
"https://insti.app/team-pics/soham.jpg"
).
into
(
sohamimg
);
Picasso
.
with
(
getContext
()).
load
(
"https://insti.app/team-pics/mrunmayi.jpg"
).
into
(
mrunmayiimg
);
Picasso
.
with
(
getContext
()).
load
(
"https://insti.app/team-pics/owais.jpg"
).
into
(
owaisimg
);
Picasso
.
with
(
getContext
()).
load
(
"https://insti.app/team-pics/hrushikesh.jpg"
).
into
(
hrushikeshimg
);
Picasso
.
with
(
getContext
()).
load
(
"https://insti.app/team-pics/yashkhem.jpg"
).
into
(
yashkhemimg
);
Picasso
.
with
(
getContext
()).
load
(
"https://insti.app/team-pics/bavish.jpg"
).
into
(
bavishimg
);
Picasso
.
with
(
getContext
()).
load
(
"https://insti.app/team-pics/mayu.jpg"
).
into
(
mayuimg
);
Picasso
.
with
(
getContext
()).
load
(
"https://insti.app/team-pics/tomar.jpg"
).
into
(
tomarimg
);
Picasso
.
with
(
getContext
()).
load
(
"https://insti.app/team-pics/bijoy.jpg"
).
into
(
bijoyimg
);
Picasso
.
with
(
getContext
()).
load
(
"https://insti.app/team-pics/dheerendra.jpg"
).
into
(
dheerendraimg
);
Picasso
.
with
(
getContext
()).
load
(
"https://insti.app/team-pics/ranveer.jpg"
).
into
(
ranveerimg
);
Picasso
.
with
(
getContext
()).
load
(
"https://insti.app/team-pics/amangour.jpg"
).
into
(
amangourimg
);
Picasso
.
with
(
getContext
()).
load
(
"https://insti.app/team-pics/wncc.jpg"
).
into
(
wnccimg
);
/* Map TextView ids to links */
/* Map TextView ids to links */
final
Map
<
Integer
,
String
>
joinUs
=
new
HashMap
<
Integer
,
String
>()
{{;
final
Map
<
Integer
,
String
>
joinUs
=
new
HashMap
<
Integer
,
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