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
01c27d3e
Commit
01c27d3e
authored
Jul 06, 2018
by
Varun Patil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make links at bottom of AboveFragment clickable
parent
360a0d7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
app/src/main/java/app/insti/fragment/AboutFragment.java
app/src/main/java/app/insti/fragment/AboutFragment.java
+24
-0
No files found.
app/src/main/java/app/insti/fragment/AboutFragment.java
View file @
01c27d3e
package
app.insti.fragment
;
package
app.insti.fragment
;
import
android.content.Intent
;
import
android.net.Uri
;
import
android.os.Bundle
;
import
android.os.Bundle
;
import
android.support.v4.app.Fragment
;
import
android.support.v4.app.Fragment
;
import
android.view.LayoutInflater
;
import
android.view.LayoutInflater
;
import
android.view.View
;
import
android.view.View
;
import
android.view.ViewGroup
;
import
android.view.ViewGroup
;
import
android.widget.ImageView
;
import
android.widget.ImageView
;
import
android.widget.TextView
;
import
com.squareup.picasso.Picasso
;
import
com.squareup.picasso.Picasso
;
import
java.util.HashMap
;
import
java.util.Map
;
import
de.hdodenhof.circleimageview.CircleImageView
;
import
de.hdodenhof.circleimageview.CircleImageView
;
import
app.insti.R
;
import
app.insti.R
;
...
@@ -74,5 +80,23 @@ public class AboutFragment extends BaseFragment {
...
@@ -74,5 +80,23 @@ public class AboutFragment extends BaseFragment {
Picasso
.
with
(
getContext
()).
load
(
"https://insti.app/team-pics/ranveer.jpg"
).
into
(
ranveerimg
);
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/amangour.jpg"
).
into
(
amangourimg
);
Picasso
.
with
(
getContext
()).
load
(
"https://insti.app/team-pics/wncc.jpg"
).
into
(
wnccimg
);
Picasso
.
with
(
getContext
()).
load
(
"https://insti.app/team-pics/wncc.jpg"
).
into
(
wnccimg
);
/* Map TextView ids to links */
final
Map
<
Integer
,
String
>
joinUs
=
new
HashMap
<
Integer
,
String
>()
{{;
put
(
R
.
id
.
django
,
"https://github.com/wncc/IITBapp"
);
put
(
R
.
id
.
android
,
"https://github.com/wncc/InstiApp"
);
put
(
R
.
id
.
angular
,
"https://github.com/pulsejet/iitb-app-angular"
);
}};
for
(
final
Map
.
Entry
<
Integer
,
String
>
entry
:
joinUs
.
entrySet
())
{
getActivity
().
findViewById
(
entry
.
getKey
()).
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
v
)
{
Uri
uriUrl
=
Uri
.
parse
(
entry
.
getValue
());
Intent
launchBrowser
=
new
Intent
(
Intent
.
ACTION_VIEW
,
uriUrl
);
startActivity
(
launchBrowser
);
}
});
}
}
}
}
}
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