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
b9352151
Commit
b9352151
authored
Feb 01, 2019
by
Varun Patil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hide calendar while loading
parent
11012ec6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
app/src/main/java/app/insti/fragment/CalendarFragment.java
app/src/main/java/app/insti/fragment/CalendarFragment.java
+4
-0
app/src/main/res/layout/fragment_calendar.xml
app/src/main/res/layout/fragment_calendar.xml
+2
-1
No files found.
app/src/main/java/app/insti/fragment/CalendarFragment.java
View file @
b9352151
...
...
@@ -35,6 +35,8 @@ import retrofit2.Call;
import
retrofit2.Callback
;
import
retrofit2.Response
;
import
static
android
.
view
.
View
.
VISIBLE
;
/**
* A simple {@link Fragment} subclass.
*/
...
...
@@ -122,6 +124,8 @@ public class CalendarFragment extends BaseFragment {
NewsFeedResponse
newsFeedResponse
=
response
.
body
();
events
=
newsFeedResponse
.
getEvents
();
DateFormat
formatter
=
new
SimpleDateFormat
(
"dd/MM/yyyy"
);
getView
().
findViewById
(
R
.
id
.
calendar_layout
).
setVisibility
(
VISIBLE
);
try
{
Date
todayWithZeroTime
=
formatter
.
parse
(
formatter
.
format
(
today
));
showEventsForDate
(
todayWithZeroTime
);
...
...
app/src/main/res/layout/fragment_calendar.xml
View file @
b9352151
...
...
@@ -10,7 +10,8 @@
android:id=
"@+id/calendar_layout"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
android:visibility=
"gone"
>
<RelativeLayout
android:layout_width=
"wrap_content"
...
...
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