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
fd65a25e
Commit
fd65a25e
authored
Dec 07, 2017
by
Sajal Narang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reformat code
parent
17339d0d
Changes
20
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
136 additions
and
141 deletions
+136
-141
.idea/modules.xml
.idea/modules.xml
+2
-0
app/build.gradle
app/build.gradle
+6
-7
app/src/main/java/in/ac/iitb/gymkhana/iitbapp/MainActivity.java
...c/main/java/in/ac/iitb/gymkhana/iitbapp/MainActivity.java
+0
-3
app/src/main/java/in/ac/iitb/gymkhana/iitbapp/PeopleSuggestionAdapter.java
.../in/ac/iitb/gymkhana/iitbapp/PeopleSuggestionAdapter.java
+0
-4
app/src/main/java/in/ac/iitb/gymkhana/iitbapp/api/ServiceGenerator.java
...ava/in/ac/iitb/gymkhana/iitbapp/api/ServiceGenerator.java
+1
-0
app/src/main/java/in/ac/iitb/gymkhana/iitbapp/fragment/AddEventFragment.java
...n/ac/iitb/gymkhana/iitbapp/fragment/AddEventFragment.java
+18
-18
app/src/main/java/in/ac/iitb/gymkhana/iitbapp/fragment/CalendarFragment.java
...n/ac/iitb/gymkhana/iitbapp/fragment/CalendarFragment.java
+5
-5
app/src/main/java/in/ac/iitb/gymkhana/iitbapp/fragment/FeedFragment.java
...va/in/ac/iitb/gymkhana/iitbapp/fragment/FeedFragment.java
+1
-3
app/src/main/java/in/ac/iitb/gymkhana/iitbapp/fragment/PeopleFragment.java
.../in/ac/iitb/gymkhana/iitbapp/fragment/PeopleFragment.java
+7
-10
app/src/main/res/layout/content_main.xml
app/src/main/res/layout/content_main.xml
+2
-2
app/src/main/res/layout/fragment_add_event.xml
app/src/main/res/layout/fragment_add_event.xml
+48
-43
app/src/main/res/layout/fragment_calendar.xml
app/src/main/res/layout/fragment_calendar.xml
+4
-4
app/src/main/res/layout/fragment_event.xml
app/src/main/res/layout/fragment_event.xml
+9
-9
app/src/main/res/layout/fragment_people.xml
app/src/main/res/layout/fragment_people.xml
+7
-8
app/src/main/res/layout/post.xml
app/src/main/res/layout/post.xml
+12
-12
app/src/main/res/layout/ppl_search_suggestion_item_view.xml
app/src/main/res/layout/ppl_search_suggestion_item_view.xml
+5
-4
app/src/main/res/menu/activity_main_drawer.xml
app/src/main/res/menu/activity_main_drawer.xml
+4
-4
app/src/main/res/menu/main.xml
app/src/main/res/menu/main.xml
+1
-1
app/src/main/res/menu/search_view_menu.xml
app/src/main/res/menu/search_view_menu.xml
+3
-3
build.gradle
build.gradle
+1
-1
No files found.
.idea/modules.xml
View file @
fd65a25e
...
@@ -2,9 +2,11 @@
...
@@ -2,9 +2,11 @@
<project
version=
"4"
>
<project
version=
"4"
>
<component
name=
"ProjectModuleManager"
>
<component
name=
"ProjectModuleManager"
>
<modules>
<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$/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$/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"
/>
<module
fileurl=
"file://$PROJECT_DIR$/app/app.iml"
filepath=
"$PROJECT_DIR$/app/app.iml"
/>
</modules>
</modules>
</component>
</component>
</project>
</project>
\ No newline at end of file
app/build.gradle
View file @
fd65a25e
apply
plugin:
'com.android.application'
apply
plugin:
'com.android.application'
android
{
android
{
compileSdkVersion
2
5
compileSdkVersion
2
6
buildToolsVersion
"2
5.0.3
"
buildToolsVersion
"2
6.0.2
"
defaultConfig
{
defaultConfig
{
applicationId
"in.ac.iitb.gymkhana.iitbapp"
applicationId
"in.ac.iitb.gymkhana.iitbapp"
manifestPlaceholders
'appAuthRedirectScheme'
:
'https'
manifestPlaceholders
'appAuthRedirectScheme'
:
'https'
minSdkVersion
17
minSdkVersion
17
targetSdkVersion
2
5
targetSdkVersion
2
6
versionCode
1
versionCode
1
versionName
"1.0"
versionName
"1.0"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
...
@@ -22,9 +22,9 @@ android {
...
@@ -22,9 +22,9 @@ android {
}
}
ext
{
ext
{
supportLibVersion
=
'2
5.3.1
'
supportLibVersion
=
'2
6.1.0
'
playServicesVersion
=
'11.
0
.2'
playServicesVersion
=
'11.
6
.2'
butterKnifeVersion
=
'8.
6
.0'
butterKnifeVersion
=
'8.
7
.0'
appAuthVersion
=
'0.2.0'
appAuthVersion
=
'0.2.0'
retrofitVersion
=
'2.1.0'
retrofitVersion
=
'2.1.0'
okhttpVersion
=
'3.4.1'
okhttpVersion
=
'3.4.1'
...
@@ -51,6 +51,5 @@ dependencies {
...
@@ -51,6 +51,5 @@ dependencies {
compile
"com.squareup.okhttp3:okhttp:${okhttpVersion}"
compile
"com.squareup.okhttp3:okhttp:${okhttpVersion}"
compile
"com.squareup.okhttp3:logging-interceptor:${okhttpVersion}"
compile
"com.squareup.okhttp3:logging-interceptor:${okhttpVersion}"
compile
"com.squareup.picasso:picasso:${picassoVersion}"
compile
"com.squareup.picasso:picasso:${picassoVersion}"
implementation
'com.android.support:support-v4:25.4.0'
}
}
apply
plugin:
'com.google.gms.google-services'
apply
plugin:
'com.google.gms.google-services'
app/src/main/java/in/ac/iitb/gymkhana/iitbapp/MainActivity.java
View file @
fd65a25e
...
@@ -20,11 +20,8 @@ import android.widget.Toast;
...
@@ -20,11 +20,8 @@ import android.widget.Toast;
import
com.google.gson.Gson
;
import
com.google.gson.Gson
;
import
java.util.List
;
import
in.ac.iitb.gymkhana.iitbapp.api.RetrofitInterface
;
import
in.ac.iitb.gymkhana.iitbapp.api.RetrofitInterface
;
import
in.ac.iitb.gymkhana.iitbapp.api.ServiceGenerator
;
import
in.ac.iitb.gymkhana.iitbapp.api.ServiceGenerator
;
import
in.ac.iitb.gymkhana.iitbapp.api.model.AppNotification
;
import
in.ac.iitb.gymkhana.iitbapp.api.model.NotificationsRequest
;
import
in.ac.iitb.gymkhana.iitbapp.api.model.NotificationsRequest
;
import
in.ac.iitb.gymkhana.iitbapp.api.model.NotificationsResponse
;
import
in.ac.iitb.gymkhana.iitbapp.api.model.NotificationsResponse
;
import
in.ac.iitb.gymkhana.iitbapp.fragment.AboutFragment
;
import
in.ac.iitb.gymkhana.iitbapp.fragment.AboutFragment
;
...
...
app/src/main/java/in/ac/iitb/gymkhana/iitbapp/PeopleSuggestionAdapter.java
View file @
fd65a25e
package
in.ac.iitb.gymkhana.iitbapp
;
package
in.ac.iitb.gymkhana.iitbapp
;
import
android.content.Context
;
import
android.content.Context
;
import
android.support.v7.widget.RecyclerView
;
import
android.view.LayoutInflater
;
import
android.view.LayoutInflater
;
import
android.view.View
;
import
android.view.View
;
import
android.view.ViewGroup
;
import
android.view.ViewGroup
;
...
@@ -13,9 +12,6 @@ import android.widget.TextView;
...
@@ -13,9 +12,6 @@ import android.widget.TextView;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
import
butterknife.BindView
;
import
butterknife.ButterKnife
;
/**
/**
* Created by mrunz on 6/7/17.
* Created by mrunz on 6/7/17.
*/
*/
...
...
app/src/main/java/in/ac/iitb/gymkhana/iitbapp/api/ServiceGenerator.java
View file @
fd65a25e
...
@@ -13,6 +13,7 @@ public class ServiceGenerator {
...
@@ -13,6 +13,7 @@ public class ServiceGenerator {
.
baseUrl
(
BASE_URL
)
.
baseUrl
(
BASE_URL
)
.
addConverterFactory
(
GsonConverterFactory
.
create
());
.
addConverterFactory
(
GsonConverterFactory
.
create
());
private
static
Retrofit
retrofit
;
private
static
Retrofit
retrofit
;
public
static
<
S
>
S
createService
(
Class
<
S
>
serviceClass
)
{
public
static
<
S
>
S
createService
(
Class
<
S
>
serviceClass
)
{
HttpLoggingInterceptor
httpLoggingInterceptor
=
new
HttpLoggingInterceptor
();
HttpLoggingInterceptor
httpLoggingInterceptor
=
new
HttpLoggingInterceptor
();
httpLoggingInterceptor
.
setLevel
(
HttpLoggingInterceptor
.
Level
.
BODY
);
httpLoggingInterceptor
.
setLevel
(
HttpLoggingInterceptor
.
Level
.
BODY
);
...
...
app/src/main/java/in/ac/iitb/gymkhana/iitbapp/fragment/AddEventFragment.java
View file @
fd65a25e
...
@@ -55,24 +55,24 @@ public class AddEventFragment extends Fragment {
...
@@ -55,24 +55,24 @@ public class AddEventFragment extends Fragment {
container
.
removeAllViews
();
container
.
removeAllViews
();
view
=
inflater
.
inflate
(
R
.
layout
.
fragment_add_event
,
container
,
false
);
view
=
inflater
.
inflate
(
R
.
layout
.
fragment_add_event
,
container
,
false
);
ButterKnife
.
bind
(
this
,
view
);
ButterKnife
.
bind
(
this
,
view
);
date
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
date
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
@Override
public
void
onClick
(
View
v
)
{
public
void
onClick
(
View
v
)
{
Calendar
calendar
=
Calendar
.
getInstance
();
Calendar
calendar
=
Calendar
.
getInstance
();
int
mYear
=
calendar
.
get
(
Calendar
.
YEAR
);
int
mYear
=
calendar
.
get
(
Calendar
.
YEAR
);
int
mMonth
=
calendar
.
get
(
Calendar
.
MONTH
);
int
mMonth
=
calendar
.
get
(
Calendar
.
MONTH
);
int
mDay
=
calendar
.
get
(
Calendar
.
DAY_OF_MONTH
);
int
mDay
=
calendar
.
get
(
Calendar
.
DAY_OF_MONTH
);
DatePickerDialog
datePickerDialog
=
new
DatePickerDialog
(
getContext
(),
new
DatePickerDialog
.
OnDateSetListener
()
{
DatePickerDialog
datePickerDialog
=
new
DatePickerDialog
(
getContext
(),
new
DatePickerDialog
.
OnDateSetListener
()
{
@Override
@Override
public
void
onDateSet
(
DatePicker
view
,
int
year
,
int
month
,
int
dayOfMonth
)
{
public
void
onDateSet
(
DatePicker
view
,
int
year
,
int
month
,
int
dayOfMonth
)
{
date
.
setText
(
dayOfMonth
+
"/"
+
month
+
"/"
+
year
);
date
.
setText
(
dayOfMonth
+
"/"
+
month
+
"/"
+
year
);
}
}
}
,
mYear
,
mMonth
,
mDay
);
}
,
mYear
,
mMonth
,
mDay
);
datePickerDialog
.
show
();
datePickerDialog
.
show
();
}
}
});
});
...
@@ -81,16 +81,16 @@ public class AddEventFragment extends Fragment {
...
@@ -81,16 +81,16 @@ public class AddEventFragment extends Fragment {
@Override
@Override
public
void
onClick
(
View
v
)
{
public
void
onClick
(
View
v
)
{
Calendar
calendar
=
Calendar
.
getInstance
();
Calendar
calendar
=
Calendar
.
getInstance
();
int
mHour
=
calendar
.
get
(
Calendar
.
HOUR_OF_DAY
);
int
mHour
=
calendar
.
get
(
Calendar
.
HOUR_OF_DAY
);
int
mMin
=
calendar
.
get
(
Calendar
.
MINUTE
);
int
mMin
=
calendar
.
get
(
Calendar
.
MINUTE
);
TimePickerDialog
timePickerDialog
=
new
TimePickerDialog
(
getContext
(),
new
TimePickerDialog
.
OnTimeSetListener
()
{
TimePickerDialog
timePickerDialog
=
new
TimePickerDialog
(
getContext
(),
new
TimePickerDialog
.
OnTimeSetListener
()
{
@Override
@Override
public
void
onTimeSet
(
TimePicker
view
,
int
hourOfDay
,
int
minute
)
{
public
void
onTimeSet
(
TimePicker
view
,
int
hourOfDay
,
int
minute
)
{
time
.
setText
(
hourOfDay
+
":"
+
minute
);
time
.
setText
(
hourOfDay
+
":"
+
minute
);
}
}
},
mHour
,
mMin
,
true
);
},
mHour
,
mMin
,
true
);
timePickerDialog
.
show
();
timePickerDialog
.
show
();
}
}
...
@@ -98,14 +98,14 @@ public class AddEventFragment extends Fragment {
...
@@ -98,14 +98,14 @@ public class AddEventFragment extends Fragment {
imageButton
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
imageButton
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
@Override
public
void
onClick
(
View
v
)
{
public
void
onClick
(
View
v
)
{
Toast
.
makeText
(
getContext
(),
"Add Image"
,
Toast
.
LENGTH_SHORT
).
show
();
Toast
.
makeText
(
getContext
(),
"Add Image"
,
Toast
.
LENGTH_SHORT
).
show
();
//TODO (1) upload image to server
//TODO (1) upload image to server
}
}
});
});
createEvent
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
createEvent
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
@Override
public
void
onClick
(
View
v
)
{
public
void
onClick
(
View
v
)
{
Toast
.
makeText
(
getContext
(),
"Add Event"
,
Toast
.
LENGTH_SHORT
).
show
();
Toast
.
makeText
(
getContext
(),
"Add Event"
,
Toast
.
LENGTH_SHORT
).
show
();
//TODO (2) save event
//TODO (2) save event
}
}
});
});
...
...
app/src/main/java/in/ac/iitb/gymkhana/iitbapp/fragment/CalendarFragment.java
View file @
fd65a25e
...
@@ -18,9 +18,9 @@ import in.ac.iitb.gymkhana.iitbapp.R;
...
@@ -18,9 +18,9 @@ import in.ac.iitb.gymkhana.iitbapp.R;
*/
*/
public
class
CalendarFragment
extends
Fragment
{
public
class
CalendarFragment
extends
Fragment
{
FloatingActionButton
fab
;
private
View
view
;
private
View
view
;
private
Toast
toast
;
private
Toast
toast
;
FloatingActionButton
fab
;
public
CalendarFragment
()
{
public
CalendarFragment
()
{
// Required empty public constructor
// Required empty public constructor
...
@@ -33,7 +33,7 @@ public class CalendarFragment extends Fragment {
...
@@ -33,7 +33,7 @@ public class CalendarFragment extends Fragment {
// Inflate the layout for this fragment
// Inflate the layout for this fragment
view
=
inflater
.
inflate
(
R
.
layout
.
fragment_calendar
,
container
,
false
);
view
=
inflater
.
inflate
(
R
.
layout
.
fragment_calendar
,
container
,
false
);
fab
=
(
FloatingActionButton
)
view
.
findViewById
(
R
.
id
.
fab
);
fab
=
(
FloatingActionButton
)
view
.
findViewById
(
R
.
id
.
fab
);
final
CalendarView
simpleCalendarView
=
(
CalendarView
)
view
.
findViewById
(
R
.
id
.
simpleCalendarView
);
// get the reference of CalendarView
final
CalendarView
simpleCalendarView
=
(
CalendarView
)
view
.
findViewById
(
R
.
id
.
simpleCalendarView
);
// get the reference of CalendarView
simpleCalendarView
.
setFirstDayOfWeek
(
1
);
// set Sunday as the first day of the week
simpleCalendarView
.
setFirstDayOfWeek
(
1
);
// set Sunday as the first day of the week
...
@@ -52,14 +52,14 @@ public class CalendarFragment extends Fragment {
...
@@ -52,14 +52,14 @@ public class CalendarFragment extends Fragment {
}
}
});
});
fab
.
setOnClickListener
(
new
View
.
OnClickListener
(){
fab
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
@Override
public
void
onClick
(
View
v
)
{
public
void
onClick
(
View
v
)
{
AddEventFragment
addEventFragment
=
new
AddEventFragment
();
AddEventFragment
addEventFragment
=
new
AddEventFragment
();
FragmentTransaction
ft
=
getChildFragmentManager
().
beginTransaction
();
FragmentTransaction
ft
=
getChildFragmentManager
().
beginTransaction
();
ft
.
replace
(
R
.
id
.
calendar_layout
,
addEventFragment
);
ft
.
replace
(
R
.
id
.
calendar_layout
,
addEventFragment
);
ft
.
addToBackStack
(
"addEvent"
);
ft
.
addToBackStack
(
"addEvent"
);
ft
.
commit
();
ft
.
commit
();
}
}
...
...
app/src/main/java/in/ac/iitb/gymkhana/iitbapp/fragment/FeedFragment.java
View file @
fd65a25e
...
@@ -17,9 +17,7 @@ import android.view.ViewGroup;
...
@@ -17,9 +17,7 @@ import android.view.ViewGroup;
import
com.google.gson.Gson
;
import
com.google.gson.Gson
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
import
in.ac.iitb.gymkhana.iitbapp.Constants
;
import
in.ac.iitb.gymkhana.iitbapp.Constants
;
...
@@ -105,7 +103,7 @@ public class FeedFragment extends Fragment {
...
@@ -105,7 +103,7 @@ public class FeedFragment extends Fragment {
private
void
updateFeed
()
{
private
void
updateFeed
()
{
NewsFeedRequest
newsFeedRequest
=
new
NewsFeedRequest
(
NewsFeedRequest
.
FOLLOWED
,
0
,
20
);
NewsFeedRequest
newsFeedRequest
=
new
NewsFeedRequest
(
NewsFeedRequest
.
FOLLOWED
,
0
,
20
);
RetrofitInterface
retrofitInterface
=
ServiceGenerator
.
createService
(
RetrofitInterface
.
class
);
RetrofitInterface
retrofitInterface
=
ServiceGenerator
.
createService
(
RetrofitInterface
.
class
);
retrofitInterface
.
getNewsFeed
(
newsFeedRequest
).
enqueue
(
new
Callback
<
NewsFeedResponse
>()
{
retrofitInterface
.
getNewsFeed
(
newsFeedRequest
).
enqueue
(
new
Callback
<
NewsFeedResponse
>()
{
@Override
@Override
public
void
onResponse
(
Call
<
NewsFeedResponse
>
call
,
Response
<
NewsFeedResponse
>
response
)
{
public
void
onResponse
(
Call
<
NewsFeedResponse
>
call
,
Response
<
NewsFeedResponse
>
response
)
{
if
(
response
.
isSuccessful
())
{
if
(
response
.
isSuccessful
())
{
...
...
app/src/main/java/in/ac/iitb/gymkhana/iitbapp/fragment/PeopleFragment.java
View file @
fd65a25e
...
@@ -2,10 +2,10 @@ package in.ac.iitb.gymkhana.iitbapp.fragment;
...
@@ -2,10 +2,10 @@ package in.ac.iitb.gymkhana.iitbapp.fragment;
import
android.app.SearchManager
;
import
android.app.SearchManager
;
import
android.content.Context
;
import
android.content.Context
;
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.support.v4.view.MenuItemCompat
;
import
android.support.v4.view.MenuItemCompat
;
import
android.support.v7.widget.SearchView
;
import
android.view.LayoutInflater
;
import
android.view.LayoutInflater
;
import
android.view.Menu
;
import
android.view.Menu
;
import
android.view.MenuInflater
;
import
android.view.MenuInflater
;
...
@@ -13,7 +13,6 @@ import android.view.MenuItem;
...
@@ -13,7 +13,6 @@ import android.view.MenuItem;
import
android.view.View
;
import
android.view.View
;
import
android.view.ViewGroup
;
import
android.view.ViewGroup
;
import
android.widget.ListView
;
import
android.widget.ListView
;
import
android.support.v7.widget.SearchView
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
...
@@ -25,8 +24,9 @@ public class PeopleFragment extends Fragment {
...
@@ -25,8 +24,9 @@ public class PeopleFragment extends Fragment {
View
view
;
View
view
;
SearchView
searchView
;
SearchView
searchView
;
PeopleSuggestionAdapter
adapter
;
PeopleSuggestionAdapter
adapter
;
ArrayList
<
String
>
suggestionList
=
new
ArrayList
<
String
>();
ArrayList
<
String
>
suggestionList
=
new
ArrayList
<
String
>();
ListView
listView
;
ListView
listView
;
public
PeopleFragment
()
{
public
PeopleFragment
()
{
// Required empty public constructor
// Required empty public constructor
}
}
...
@@ -36,7 +36,7 @@ public class PeopleFragment extends Fragment {
...
@@ -36,7 +36,7 @@ public class PeopleFragment extends Fragment {
public
View
onCreateView
(
LayoutInflater
inflater
,
ViewGroup
container
,
public
View
onCreateView
(
LayoutInflater
inflater
,
ViewGroup
container
,
Bundle
savedInstanceState
)
{
Bundle
savedInstanceState
)
{
// Inflate the layout for this fragment
// Inflate the layout for this fragment
view
=
inflater
.
inflate
(
R
.
layout
.
fragment_people
,
container
,
false
);
view
=
inflater
.
inflate
(
R
.
layout
.
fragment_people
,
container
,
false
);
setHasOptionsMenu
(
true
);
setHasOptionsMenu
(
true
);
suggestionList
.
add
(
"Web and Coding Club"
);
suggestionList
.
add
(
"Web and Coding Club"
);
...
@@ -62,21 +62,18 @@ public class PeopleFragment extends Fragment {
...
@@ -62,21 +62,18 @@ public class PeopleFragment extends Fragment {
suggestionList
.
add
(
"SARC"
);
suggestionList
.
add
(
"SARC"
);
suggestionList
.
add
(
"Academic Council"
);
suggestionList
.
add
(
"Academic Council"
);
listView
=
(
ListView
)
view
.
findViewById
(
R
.
id
.
list_view
);
listView
=
(
ListView
)
view
.
findViewById
(
R
.
id
.
list_view
);
listView
.
setVisibility
(
View
.
GONE
);
listView
.
setVisibility
(
View
.
GONE
);
adapter
=
new
PeopleSuggestionAdapter
(
suggestionList
);
adapter
=
new
PeopleSuggestionAdapter
(
suggestionList
);
listView
.
setAdapter
(
adapter
);
listView
.
setAdapter
(
adapter
);
//TODO SuggestionClickListener
//TODO SuggestionClickListener
return
view
;
return
view
;
}
}
@Override
@Override
...
...
app/src/main/res/layout/content_main.xml
View file @
fd65a25e
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
android:id=
"@+id/framelayout_for_fragment"
android:id=
"@+id/framelayout_for_fragment"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:orientation=
"vertical"
app:layout_behavior=
"@string/appbar_scrolling_view_behavior"
app:layout_behavior=
"@string/appbar_scrolling_view_behavior"
tools:context=
"in.ac.iitb.gymkhana.iitbapp.MainActivity"
tools:context=
"in.ac.iitb.gymkhana.iitbapp.MainActivity"
tools:showIn=
"@layout/app_bar_main"
tools:showIn=
"@layout/app_bar_main"
/>
android:orientation=
"vertical"
/>
app/src/main/res/layout/fragment_add_event.xml
View file @
fd65a25e
...
@@ -9,119 +9,124 @@
...
@@ -9,119 +9,124 @@
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"0dp"
android:layout_height=
"0dp"
android:layout_weight=
"1"
>
android:layout_weight=
"1"
>
<ImageView
<ImageView
android:id=
"@+id/iv_eventImage"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:
id=
"@+id/iv_eventImage"
android:
background=
"#EEEEEE"
/>
android:background=
"#EEEEEE"
/>
<ImageButton
<ImageButton
android:id=
"@+id/ib_eventImage"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:src=
"@drawable/ic_input_add"
android:background=
"#EEEEEE"
android:background=
"#EEEEEE"
android:
id=
"@+id/ib_eventImage"
/>
android:
src=
"@drawable/ic_input_add"
/>
</RelativeLayout>
</RelativeLayout>
<EditText
<EditText
android:id=
"@+id/et_eventName"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:id=
"@+id/et_eventName"
android:background=
"#81d2cb"
android:padding=
"16dp"
android:hint=
"Event Name"
android:hint=
"Event Name"
android:padding=
"16dp"
android:paddingBottom=
"16dp"
android:paddingBottom=
"16dp"
android:background=
"#81d2cb"
android:textColorHint=
"#FFFFFF"
android:textColorHint=
"#FFFFFF"
/>
/>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:orientation=
"horizontal"
android:layout_height=
"40dp"
android:layout_marginTop=
"10dp"
android:layout_marginLeft=
"16dp"
android:layout_marginLeft=
"16dp"
android:layout_marginRight=
"16dp"
android:layout_marginRight=
"16dp"
android:layout_height=
"40dp"
>
android:layout_marginTop=
"10dp"
android:orientation=
"horizontal"
>
<TextView
<TextView
android:id=
"@+id/tv_date"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:paddingRight=
"6dp"
android:paddingLeft=
"6dp"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:id=
"@+id/tv_date"
android:hint=
" Date "
android:hint=
" Date "
android:paddingTop=
"8dp"
/>
android:paddingLeft=
"6dp"
android:paddingRight=
"6dp"
android:paddingTop=
"8dp"
/>
<View
<View
android:layout_width=
"3dp"
android:layout_width=
"3dp"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_marginTop=
"5dp"
android:layout_marginBottom=
"5dp"
android:layout_marginBottom=
"5dp"
android:background=
"@color/common_google_signin_btn_text_dark_disabled"
/>
android:layout_marginTop=
"5dp"
android:background=
"@color/common_google_signin_btn_text_dark_disabled"
/>
<TextView
<TextView
android:id=
"@+id/tv_time"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:paddingRight=
"6dp"
android:paddingLeft=
"6dp"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:id=
"@+id/tv_time"
android:hint=
" Time "
android:hint=
" Time "
android:paddingTop=
"8dp"
/>
android:paddingLeft=
"6dp"
android:paddingRight=
"6dp"
android:paddingTop=
"8dp"
/>
<View
<View
android:layout_width=
"3dp"
android:layout_width=
"3dp"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_marginTop=
"5dp"
android:layout_marginBottom=
"5dp"
android:layout_marginBottom=
"5dp"
android:background=
"@color/common_google_signin_btn_text_dark_disabled"
/>
android:layout_marginTop=
"5dp"
android:background=
"@color/common_google_signin_btn_text_dark_disabled"
/>
<EditText
<EditText
android:id=
"@+id/et_venue"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:paddingRight=
"6dp"
android:paddingLeft=
"6dp"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:id=
"@+id/et_venue"
android:hint=
"Venue"
android:hint=
"Venue"
/>
android:paddingLeft=
"6dp"
android:paddingRight=
"6dp"
/>
</LinearLayout>
</LinearLayout>
<EditText
<EditText
android:id=
"@+id/et_eventDetails"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"0dp"
android:layout_height=
"0dp"
android:gravity=
"top"
android:hint=
"Details"
android:layout_weight=
"1"
android:id=
"@+id/et_eventDetails"
android:paddingLeft=
"6dp"
android:paddingRight=
"6dp"
android:layout_marginLeft=
"16dp"
android:layout_marginLeft=
"16dp"
android:layout_marginRight=
"16dp"
android:layout_marginRight=
"16dp"
android:layout_marginTop=
"8dp"
android:layout_marginTop=
"8dp"
android:layout_weight=
"1"
android:background=
"#E0E0E0"
android:background=
"#E0E0E0"
/>
android:gravity=
"top"
android:hint=
"Details"
android:paddingLeft=
"6dp"
android:paddingRight=
"6dp"
/>
<RelativeLayout
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"5dp"
android:layout_marginTop=
"5dp"
>
>
<TextView
<TextView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Public"
android:textSize=
"18sp"
android:layout_marginLeft=
"8dp"
android:layout_marginLeft=
"8dp"
android:paddingLeft=
"8dp"
/>
android:paddingLeft=
"8dp"
android:text=
"Public"
android:textSize=
"18sp"
/>
<CheckBox
<CheckBox
android:id=
"@+id/cb_public"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:layout_alignParentRight=
"true"
android:id=
"@+id/cb_public"
android:layout_marginRight=
"10dp"
/>
android:layout_marginRight=
"10dp"
/>
</RelativeLayout>
</RelativeLayout>
<Button
<Button
android:id=
"@+id/button_createEvent"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"60dp"
android:layout_height=
"60dp"
android:background=
"@color/colorAccent"
android:background=
"@color/colorAccent"
android:text=
"Create"
android:gravity=
"center"
android:id=
"@+id/button_createEvent"
android:text=
"Create"
/>
android:gravity=
"center"
/>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
app/src/main/res/layout/fragment_calendar.xml
View file @
fd65a25e
<RelativeLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<RelativeLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:id=
"@+id/calendar_layout"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"#E0E0E0"
android:background=
"#E0E0E0"
android:id=
"@+id/calendar_layout"
android:theme=
"@style/CalendarTheme"
>
android:theme=
"@style/CalendarTheme"
>
...
@@ -40,13 +40,13 @@
...
@@ -40,13 +40,13 @@
android:text=
"# Events Today"
/>
android:text=
"# Events Today"
/>
<android.support.design.widget.FloatingActionButton
<android.support.design.widget.FloatingActionButton
android:id=
"@+id/fab"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:layout_alignParentBottom=
"true"
android:layout_alignParentBottom=
"true"
android:
id=
"@+id/fab
"
android:
layout_alignParentRight=
"true
"
android:layout_margin=
"16dp"
android:layout_margin=
"16dp"
android:src=
"@android:drawable/ic_input_add"
/>
android:src=
"@android:drawable/ic_input_add"
/>
</RelativeLayout>
</RelativeLayout>
app/src/main/res/layout/fragment_event.xml
View file @
fd65a25e
...
@@ -6,10 +6,10 @@
...
@@ -6,10 +6,10 @@
tools:context=
"in.ac.iitb.gymkhana.iitbapp.fragment.EventFragment"
>
tools:context=
"in.ac.iitb.gymkhana.iitbapp.fragment.EventFragment"
>
<ImageView
<ImageView
android:scaleType=
"centerCrop"
android:id=
"@+id/event_picture_2"
android:id=
"@+id/event_picture_2"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"360dp"
/>
android:layout_height=
"360dp"
android:scaleType=
"centerCrop"
/>
<TextView
<TextView
android:id=
"@+id/event_title_2"
android:id=
"@+id/event_title_2"
...
@@ -22,32 +22,32 @@
...
@@ -22,32 +22,32 @@
android:layout_height=
"wrap_content"
/>
android:layout_height=
"wrap_content"
/>
<LinearLayout
<LinearLayout
android:background=
"@color/colorPrimary"
style=
"?android:attr/buttonBarStyle"
style=
"?android:attr/buttonBarStyle"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@color/colorPrimary"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<Button
<Button
android:text=
"Going"
style=
"?android:attr/buttonBarButtonStyle"
style=
"?android:attr/buttonBarButtonStyle"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
/>
android:layout_weight=
"1"
android:text=
"Going"
/>
<Button
<Button
android:text=
"Interested"
style=
"?android:attr/buttonBarButtonStyle"
style=
"?android:attr/buttonBarButtonStyle"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
/>
android:layout_weight=
"1"
android:text=
"Interested"
/>
<Button
<Button
android:text=
"Not Going"
style=
"?android:attr/buttonBarButtonStyle"
style=
"?android:attr/buttonBarButtonStyle"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
/>
android:layout_weight=
"1"
android:text=
"Not Going"
/>
</LinearLayout>
</LinearLayout>
<TextView
<TextView
...
...
app/src/main/res/layout/fragment_people.xml
View file @
fd65a25e
...
@@ -2,25 +2,24 @@
...
@@ -2,25 +2,24 @@
xmlns:tools=
"http://schemas.android.com/tools"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
tools:context=
"in.ac.iitb.gymkhana.iitbapp.fragment.PeopleFragment"
>
tools:context=
"in.ac.iitb.gymkhana.iitbapp.fragment.PeopleFragment"
>
<!-- TODO: Update blank fragment layout -->
<!-- TODO: Update blank fragment layout -->
<!--<android.support.v7.widget.SearchView-->
<!--<android.support.v7.widget.SearchView-->
<!--android:id="@+id/search"-->
<!--android:id="@+id/search"-->
<!--android:layout_width="match_parent"-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--app:defaultQueryHint="Search"-->
<!--app:defaultQueryHint="Search"-->
<!--android:clickable="true"/>-->
<!--android:clickable="true"/>-->
<ListView
<ListView
android:id=
"@+id/list_view"
android:id=
"@+id/list_view"
android:layout_width=
"fill_parent"
android:layout_width=
"fill_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentLeft=
"true"
android:layout_alignParentLeft=
"true"
android:visibility=
"gone"
android:layout_alignParentStart=
"true"
android:layout_alignParentStart=
"true"
android:layout_below=
"@+id/search"
/>
android:layout_below=
"@+id/search"
android:visibility=
"gone"
/>
</RelativeLayout>
</RelativeLayout>
app/src/main/res/layout/post.xml
View file @
fd65a25e
...
@@ -2,27 +2,27 @@
...
@@ -2,27 +2,27 @@
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:
paddingTop=
"8dp
"
android:
orientation=
"horizontal
"
android:
orientation=
"horizontal
"
>
android:
paddingTop=
"8dp
"
>
<ImageView
<ImageView
android:layout_weight=
"1"
android:layout_width=
"0dp"
android:id=
"@+id/event_picture"
android:id=
"@+id/event_picture"
android:layout_height=
"50dp"
/>
android:layout_width=
"0dp"
android:layout_height=
"50dp"
android:layout_weight=
"1"
/>
<LinearLayout
<LinearLayout
android:orientation=
"vertical"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"3"
android:layout_weight=
"3"
android:
layout_height=
"wrap_content
"
>
android:
orientation=
"vertical
"
>
<TextView
<TextView
android:textColor=
"@android:color/black"
android:textSize=
"24sp"
android:id=
"@+id/event_title"
android:id=
"@+id/event_title"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
/>
android:layout_height=
"wrap_content"
android:textColor=
"@android:color/black"
android:textSize=
"24sp"
/>
<TextView
<TextView
android:id=
"@+id/event_details"
android:id=
"@+id/event_details"
...
@@ -32,10 +32,10 @@
...
@@ -32,10 +32,10 @@
</LinearLayout>
</LinearLayout>
<ImageView
<ImageView
android:src=
"@drawable/ic_input_add"
android:id=
"@+id/event_enthu"
android:id=
"@+id/event_enthu"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:
layout_height=
"wrap_content
"
/>
android:
src=
"@drawable/ic_input_add
"
/>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
app/src/main/res/layout/ppl_search_suggestion_item_view.xml
View file @
fd65a25e
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:orientation=
"vertical"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
android:layout_height=
"match_parent"
android:orientation=
"vertical"
>
<TextView
<TextView
android:id=
"@+id/suggestion_item"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:hint=
"suggestion"
android:hint=
"suggestion"
android:padding=
"8dp"
android:padding=
"8dp"
android:textSize=
"20sp"
android:textSize=
"20sp"
/>
android:id=
"@+id/suggestion_item"
/>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
app/src/main/res/menu/activity_main_drawer.xml
View file @
fd65a25e
...
@@ -24,8 +24,8 @@
...
@@ -24,8 +24,8 @@
android:title=
"Mess Menu"
/>
android:title=
"Mess Menu"
/>
<item
<item
android:id=
"@+id/nav_gc_rankings"
android:id=
"@+id/nav_gc_rankings"
android:
title=
"GC Rankings
"
android:
icon=
"@drawable/ic_equalizer_black_48dp
"
android:
icon=
"@drawable/ic_equalizer_black_48dp"
/>
android:
title=
"GC Rankings"
/>
<item
<item
android:id=
"@+id/nav_calendar"
android:id=
"@+id/nav_calendar"
android:icon=
"@drawable/ic_date_range_black_48dp"
android:icon=
"@drawable/ic_date_range_black_48dp"
...
@@ -44,8 +44,8 @@
...
@@ -44,8 +44,8 @@
android:title=
"Map"
/>
android:title=
"Map"
/>
<item
<item
android:id=
"@+id/nav_people"
android:id=
"@+id/nav_people"
android:
title=
"People
"
android:
icon=
"@drawable/ic_supervisor_account_black_48dp
"
android:
icon=
"@drawable/ic_supervisor_account_black_48dp"
/>
android:
title=
"People"
/>
</group>
</group>
<item
android:title=
"Communicate"
>
<item
android:title=
"Communicate"
>
...
...
app/src/main/res/menu/main.xml
View file @
fd65a25e
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
xmlns:app=
"http://schemas.android.com/apk/res-auto"
>
xmlns:app=
"http://schemas.android.com/apk/res-auto"
>
<item
<item
android:id=
"@+id/action_notifications"
android:id=
"@+id/action_notifications"
android:orderInCategory=
"1"
android:icon=
"@drawable/ic_notifications_black_24dp"
android:icon=
"@drawable/ic_notifications_black_24dp"
android:orderInCategory=
"1"
android:title=
"Notifications"
android:title=
"Notifications"
app:showAsAction=
"always"
/>
app:showAsAction=
"always"
/>
</menu>
</menu>
app/src/main/res/menu/search_view_menu.xml
View file @
fd65a25e
...
@@ -4,8 +4,8 @@
...
@@ -4,8 +4,8 @@
xmlns:app=
"http://schemas.android.com/apk/res-auto"
>
xmlns:app=
"http://schemas.android.com/apk/res-auto"
>
<item
<item
android:id=
"@+id/action_search"
android:id=
"@+id/action_search"
app:actionViewClass=
"android.support.v7.widget.SearchView"
app:showAsAction=
"always|collapseActionView"
android:icon=
"@android:drawable/ic_menu_search"
android:icon=
"@android:drawable/ic_menu_search"
android:title=
"Search"
/>
android:title=
"Search"
app:actionViewClass=
"android.support.v7.widget.SearchView"
app:showAsAction=
"always|collapseActionView"
/>
</menu>
</menu>
\ No newline at end of file
build.gradle
View file @
fd65a25e
...
@@ -8,7 +8,7 @@ buildscript {
...
@@ -8,7 +8,7 @@ buildscript {
}
}
dependencies
{
dependencies
{
classpath
'com.android.tools.build:gradle:3.0.
0-beta6
'
classpath
'com.android.tools.build:gradle:3.0.
1
'
classpath
'com.google.gms:google-services:3.1.0'
classpath
'com.google.gms:google-services:3.1.0'
// NOTE: Do not place your application dependencies here; they belong
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
// in the individual module build.gradle files
...
...
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