Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
20_21-J03
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
20_21-J03
20_21-J03
Commits
c7bce99c
Commit
c7bce99c
authored
Apr 27, 2021
by
IT17165662
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add animation to range fragment
parent
bfbdc7fe
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
69 additions
and
11 deletions
+69
-11
app/src/main/java/com/elearning/probabilityandstatisticsanalyserandeducator/calculationfunction/StepsFragment/RangeFragment.java
...ator/calculationfunction/StepsFragment/RangeFragment.java
+19
-0
app/src/main/res/anim/blinkeffect.xml
app/src/main/res/anim/blinkeffect.xml
+11
-0
app/src/main/res/anim/moveanimation.xml
app/src/main/res/anim/moveanimation.xml
+9
-0
app/src/main/res/drawable/cardcutbackground.xml
app/src/main/res/drawable/cardcutbackground.xml
+1
-1
app/src/main/res/drawable/dd1.webp
app/src/main/res/drawable/dd1.webp
+0
-0
app/src/main/res/drawable/dd3.jpg
app/src/main/res/drawable/dd3.jpg
+0
-0
app/src/main/res/drawable/dd5.png
app/src/main/res/drawable/dd5.png
+0
-0
app/src/main/res/drawable/dd56.jpg
app/src/main/res/drawable/dd56.jpg
+0
-0
app/src/main/res/drawable/emoji1.jpg
app/src/main/res/drawable/emoji1.jpg
+0
-0
app/src/main/res/layout/activity_descriptive_statistics_calcuation.xml
...res/layout/activity_descriptive_statistics_calcuation.xml
+2
-2
app/src/main/res/layout/fragment_median.xml
app/src/main/res/layout/fragment_median.xml
+1
-1
app/src/main/res/layout/fragment_mode.xml
app/src/main/res/layout/fragment_mode.xml
+2
-2
app/src/main/res/layout/fragment_range.xml
app/src/main/res/layout/fragment_range.xml
+24
-5
No files found.
app/src/main/java/com/elearning/probabilityandstatisticsanalyserandeducator/calculationfunction/StepsFragment/RangeFragment.java
View file @
c7bce99c
...
@@ -10,6 +10,8 @@ import android.text.method.ScrollingMovementMethod;
...
@@ -10,6 +10,8 @@ import android.text.method.ScrollingMovementMethod;
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.view.animation.Animation
;
import
android.view.animation.AnimationUtils
;
import
android.widget.TextView
;
import
android.widget.TextView
;
import
com.elearning.probabilityandstatisticsanalyserandeducator.R
;
import
com.elearning.probabilityandstatisticsanalyserandeducator.R
;
...
@@ -26,6 +28,12 @@ public class RangeFragment extends Fragment {
...
@@ -26,6 +28,12 @@ public class RangeFragment extends Fragment {
TextView
mtextviewmax
;
TextView
mtextviewmax
;
TextView
mtextviewmin
;
TextView
mtextviewmin
;
TextView
mtextView15
;
TextView
mtextView16
;
Animation
blink_anim
;
Animation
move_anim
;
public
RangeFragment
()
{
public
RangeFragment
()
{
// Required empty public constructor
// Required empty public constructor
...
@@ -42,6 +50,17 @@ public class RangeFragment extends Fragment {
...
@@ -42,6 +50,17 @@ public class RangeFragment extends Fragment {
mtextviewmax
=
view
.
findViewById
(
R
.
id
.
textview_thirrdqr
);
mtextviewmax
=
view
.
findViewById
(
R
.
id
.
textview_thirrdqr
);
mtextviewmin
=
view
.
findViewById
(
R
.
id
.
textviw_firstqr
);
mtextviewmin
=
view
.
findViewById
(
R
.
id
.
textviw_firstqr
);
mtextView15
=
view
.
findViewById
(
R
.
id
.
textView15
);
mtextView16
=
view
.
findViewById
(
R
.
id
.
textviw_finalvue
);
blink_anim
=
AnimationUtils
.
loadAnimation
(
getContext
(),
R
.
anim
.
blinkeffect
);
// mtextView15.startAnimation(blink_anim);
mtextView16
.
startAnimation
(
blink_anim
);
move_anim
=
AnimationUtils
.
loadAnimation
(
getContext
(),
R
.
anim
.
moveanimation
);
mtextView15
.
startAnimation
(
move_anim
);
Bundle
bundle
=
getArguments
();
Bundle
bundle
=
getArguments
();
Double
range
=
bundle
.
getDouble
(
"Range_value"
);
Double
range
=
bundle
.
getDouble
(
"Range_value"
);
String
[]
entereddata
=
bundle
.
getStringArray
(
"Entered_Values"
);
String
[]
entereddata
=
bundle
.
getStringArray
(
"Entered_Values"
);
...
...
app/src/main/res/anim/blinkeffect.xml
0 → 100644
View file @
c7bce99c
<?xml version="1.0" encoding="utf-8"?>
<set
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<alpha
android:duration=
"600"
android:fromAlpha=
"0.0"
android:interpolator=
"@android:anim/accelerate_interpolator"
android:toAlpha=
"1.0"
android:repeatMode=
"reverse"
android:repeatCount=
"infinite"
/>
</set>
\ No newline at end of file
app/src/main/res/anim/moveanimation.xml
0 → 100644
View file @
c7bce99c
<?xml version="1.0" encoding="utf-8"?>
<set
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:fillAfter=
"true"
android:interpolator=
"@android:anim/linear_interpolator"
>
<translate
android:fromXDelta=
"0%p"
android:toXDelta=
"58%p"
android:duration=
"800"
/>
</set>
app/src/main/res/drawable/cardcutbackground.xml
View file @
c7bce99c
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:shape=
"rectangle"
>
android:shape=
"rectangle"
>
<solid
android:color=
"
@color/design_default_color_secondary
"
/>
<solid
android:color=
"
#BBDEFB
"
/>
<corners
<corners
...
...
app/src/main/res/drawable/dd1.webp
0 → 100644
View file @
c7bce99c
File added
app/src/main/res/drawable/dd3.jpg
0 → 100644
View file @
c7bce99c
5.92 KB
app/src/main/res/drawable/dd5.png
0 → 100644
View file @
c7bce99c
6.94 KB
app/src/main/res/drawable/dd56.jpg
0 → 100644
View file @
c7bce99c
30.2 KB
app/src/main/res/drawable/emoji1.jpg
0 → 100644
View file @
c7bce99c
32.9 KB
app/src/main/res/layout/activity_descriptive_statistics_calcuation.xml
View file @
c7bce99c
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<
LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<
ScrollView
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:tools=
"http://schemas.android.com/tools"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
...
@@ -13,4 +13,4 @@
...
@@ -13,4 +13,4 @@
android:id=
"@+id/fragment_container"
/>
android:id=
"@+id/fragment_container"
/>
</LinearLayout>
</ScrollView>
\ No newline at end of file
\ No newline at end of file
app/src/main/res/layout/fragment_median.xml
View file @
c7bce99c
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<FrameLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<FrameLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
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=
"
790dp
"
android:background=
"#FED"
android:background=
"#FED"
tools:context=
".calculationfunction.StepsFragment.MedianFragment"
>
tools:context=
".calculationfunction.StepsFragment.MedianFragment"
>
...
...
app/src/main/res/layout/fragment_mode.xml
View file @
c7bce99c
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<FrameLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<FrameLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
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=
"
790dp
"
android:background=
"#FED"
android:background=
"#FED"
tools:context=
".calculationfunction.StepsFragment.ModeFragment"
>
tools:context=
".calculationfunction.StepsFragment.ModeFragment"
>
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
android:layout_width=
"223dp"
android:layout_width=
"223dp"
android:layout_height=
"43dp"
android:layout_height=
"43dp"
android:layout_marginStart=
"1dp"
android:layout_marginStart=
"1dp"
android:layout_marginTop=
"5
6
0dp"
android:layout_marginTop=
"5
7
0dp"
android:layout_marginEnd=
"243dp"
android:layout_marginEnd=
"243dp"
android:layout_marginBottom=
"14dp"
android:layout_marginBottom=
"14dp"
android:textStyle=
"bold"
android:textStyle=
"bold"
...
...
app/src/main/res/layout/fragment_range.xml
View file @
c7bce99c
...
@@ -72,10 +72,11 @@
...
@@ -72,10 +72,11 @@
android:textSize=
"20sp"
android:textSize=
"20sp"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
/>
<TextView
<TextView
android:id=
"@+id/textviw_finalvalue"
android:id=
"@+id/textviw_finalvalue"
style=
"@style/Base.TextAppearance.AppCompat.Large"
style=
"@style/Base.TextAppearance.AppCompat.Large"
android:layout_width=
"1
88
dp"
android:layout_width=
"1
44
dp"
android:layout_height=
"43dp"
android:layout_height=
"43dp"
android:layout_marginStart=
"140dp"
android:layout_marginStart=
"140dp"
android:layout_marginTop=
"740dp"
android:layout_marginTop=
"740dp"
...
@@ -86,6 +87,20 @@
...
@@ -86,6 +87,20 @@
android:textSize=
"20sp"
android:textSize=
"20sp"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
/>
<TextView
android:id=
"@+id/textviw_finalvue"
style=
"@style/Base.TextAppearance.AppCompat.Large"
android:layout_width=
"165dp"
android:layout_height=
"124dp"
android:layout_marginStart=
"220dp"
android:layout_marginTop=
"785dp"
android:layout_marginEnd=
"50dp"
android:layout_marginBottom=
"14dp"
android:background=
"@drawable/emoji1"
android:textColor=
"#008000"
android:textSize=
"20sp"
android:textStyle=
"bold"
/>
<TextView
<TextView
android:id=
"@+id/textview_inalanswer"
android:id=
"@+id/textview_inalanswer"
style=
"@style/Base.TextAppearance.AppCompat.Large"
style=
"@style/Base.TextAppearance.AppCompat.Large"
...
@@ -224,17 +239,21 @@
...
@@ -224,17 +239,21 @@
<TextView
<TextView
android:id=
"@+id/textView15"
android:id=
"@+id/textView15"
style=
"@style/Base.TextAppearance.AppCompat.Large"
style=
"@style/Base.TextAppearance.AppCompat.Large"
android:layout_width=
"
217
dp"
android:layout_width=
"
165
dp"
android:layout_height=
"
46
dp"
android:layout_height=
"
58
dp"
android:layout_marginStart=
"
22
0dp"
android:layout_marginStart=
"0dp"
android:layout_marginTop=
"10dp"
android:layout_marginTop=
"10dp"
android:layout_marginEnd=
"309dp"
android:layout_marginEnd=
"309dp"
android:layout_marginBottom=
"586dp"
android:layout_marginBottom=
"586dp"
android:background=
"@drawable/dd56"
android:text=
"Range"
android:text=
"Range"
android:textAlignment=
"center"
android:textAlignment=
"center"
android:textColor=
"@color/purple_500"
android:textColor=
"@color/purple_500"
android:textSize=
"30sp"
android:textSize=
"30sp"
android:textStyle=
"bold"
/>
android:textStyle=
"italic"
android:fontFamily=
"cursive"
/>
<TextView
<TextView
android:id=
"@+id/textView_orderdata"
android:id=
"@+id/textView_orderdata"
...
...
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