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
2b269e05
Commit
2b269e05
authored
Feb 02, 2019
by
Varun Patil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fade in calendar
parent
69f560d5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
app/src/main/java/app/insti/fragment/CalendarFragment.java
app/src/main/java/app/insti/fragment/CalendarFragment.java
+11
-3
No files found.
app/src/main/java/app/insti/fragment/CalendarFragment.java
View file @
2b269e05
...
...
@@ -15,6 +15,8 @@ import android.support.v7.widget.Toolbar;
import
android.view.LayoutInflater
;
import
android.view.View
;
import
android.view.ViewGroup
;
import
android.view.animation.AlphaAnimation
;
import
android.widget.LinearLayout
;
import
android.widget.TextView
;
import
android.widget.Toast
;
...
...
@@ -221,9 +223,15 @@ public class CalendarFragment extends BaseFragment {
if
(!
events
.
contains
(
event
))
events
.
add
(
event
);
}
// Make the calendar visible
getView
().
findViewById
(
R
.
id
.
calendar_layout
).
setVisibility
(
VISIBLE
);
getActivity
().
findViewById
(
R
.
id
.
loadingPanel
).
setVisibility
(
View
.
GONE
);
// Make the calendar visible if it isn't
final
LinearLayout
calendarLayout
=
getView
().
findViewById
(
R
.
id
.
calendar_layout
);
if
(
calendarLayout
.
getVisibility
()
==
View
.
GONE
)
{
calendarLayout
.
setVisibility
(
VISIBLE
);
getView
().
findViewById
(
R
.
id
.
loadingPanel
).
setVisibility
(
View
.
GONE
);
AlphaAnimation
anim
=
new
AlphaAnimation
(
0.0f
,
1.0f
);
anim
.
setDuration
(
250
);
calendarLayout
.
startAnimation
(
anim
);
}
// Initialize to show today's date
if
(
setToday
)
{
...
...
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