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
f5809d67
Commit
f5809d67
authored
May 31, 2018
by
mayu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added Event Website Button
parent
7e17b3d6
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
1 deletion
+25
-1
.idea/caches/build_file_checksums.ser
.idea/caches/build_file_checksums.ser
+0
-0
.idea/modules.xml
.idea/modules.xml
+2
-0
app/src/main/java/in/ac/iitb/gymkhana/iitbapp/fragment/EventFragment.java
...a/in/ac/iitb/gymkhana/iitbapp/fragment/EventFragment.java
+11
-0
app/src/main/res/layout/fragment_event.xml
app/src/main/res/layout/fragment_event.xml
+11
-0
build.gradle
build.gradle
+1
-1
No files found.
.idea/caches/build_file_checksums.ser
View file @
f5809d67
No preview for this file type
.idea/modules.xml
View file @
f5809d67
...
...
@@ -2,9 +2,11 @@
<project
version=
"4"
>
<component
name=
"ProjectModuleManager"
>
<modules>
<module
fileurl=
"file://$PROJECT_DIR$/IITB-App.iml"
filepath=
"$PROJECT_DIR$/IITB-App.iml"
/>
<module
fileurl=
"file://$PROJECT_DIR$/IITB-App.iml"
filepath=
"$PROJECT_DIR$/IITB-App.iml"
/>
<module
fileurl=
"file://$PROJECT_DIR$/IITBApp.iml"
filepath=
"$PROJECT_DIR$/IITBApp.iml"
/>
<module
fileurl=
"file://$PROJECT_DIR$/app/app.iml"
filepath=
"$PROJECT_DIR$/app/app.iml"
/>
<module
fileurl=
"file://$PROJECT_DIR$/app/app.iml"
filepath=
"$PROJECT_DIR$/app/app.iml"
/>
</modules>
</component>
</project>
\ No newline at end of file
app/src/main/java/in/ac/iitb/gymkhana/iitbapp/fragment/EventFragment.java
View file @
f5809d67
...
...
@@ -2,6 +2,7 @@ package in.ac.iitb.gymkhana.iitbapp.fragment;
import
android.content.Intent
;
import
android.net.Uri
;
import
android.os.Bundle
;
import
android.support.v4.app.Fragment
;
import
android.support.v4.app.FragmentManager
;
...
...
@@ -49,6 +50,7 @@ public class EventFragment extends BaseFragment implements View.OnClickListener
Button
interestedButton
;
Button
notGoingButton
;
ImageButton
shareEventButton
;
ImageButton
webEventButton
;
String
TAG
=
"EventFragment"
;
public
EventFragment
()
{
...
...
@@ -85,6 +87,7 @@ public class EventFragment extends BaseFragment implements View.OnClickListener
interestedButton
=
getActivity
().
findViewById
(
R
.
id
.
interested_button
);
notGoingButton
=
getActivity
().
findViewById
(
R
.
id
.
not_going_button
);
shareEventButton
=
getActivity
().
findViewById
(
R
.
id
.
share_event_button
);
webEventButton
=
getActivity
().
findViewById
(
R
.
id
.
web_event_button
);
Picasso
.
with
(
getContext
()).
load
(
event
.
getEventImageURL
()).
into
(
eventPicture
);
eventTitle
.
setText
(
event
.
getEventName
());
...
...
@@ -127,6 +130,14 @@ public class EventFragment extends BaseFragment implements View.OnClickListener
startActivity
(
Intent
.
createChooser
(
i
,
"Share URL"
));
}
});
webEventButton
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
view
)
{
Intent
browserIntent
=
new
Intent
(
Intent
.
ACTION_VIEW
,
Uri
.
parse
(
"http://www.google.com"
));
startActivity
(
browserIntent
);
}
});
}
@Override
...
...
app/src/main/res/layout/fragment_event.xml
View file @
f5809d67
...
...
@@ -55,6 +55,17 @@
android:textSize=
"21sp"
android:textStyle=
"bold"
/>
<ImageButton
android:id=
"@+id/web_event_button"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:layout_weight=
"1"
android:background=
"?attr/selectableItemBackgroundBorderless"
android:contentDescription=
"Event Website"
android:src=
"@drawable/ic_web_black_48dp"
android:tint=
"@color/colorWhite"
/>
<ImageButton
android:id=
"@+id/share_event_button"
android:layout_width=
"0dp"
...
...
build.gradle
View file @
f5809d67
...
...
@@ -9,7 +9,7 @@ buildscript {
}
dependencies
{
classpath
'com.android.tools.build:gradle:3.1.
0
'
classpath
'com.android.tools.build:gradle:3.1.
2
'
classpath
'com.google.gms:google-services:3.1.0'
// NOTE: Do not place your application dependencies here; they belong
...
...
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