Commit c7bce99c authored by IT17165662's avatar IT17165662

add animation to range fragment

parent bfbdc7fe
......@@ -10,6 +10,8 @@ import android.text.method.ScrollingMovementMethod;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.TextView;
import com.elearning.probabilityandstatisticsanalyserandeducator.R;
......@@ -26,6 +28,12 @@ public class RangeFragment extends Fragment {
TextView mtextviewmax;
TextView mtextviewmin;
TextView mtextView15;
TextView mtextView16;
Animation blink_anim;
Animation move_anim;
public RangeFragment() {
// Required empty public constructor
......@@ -42,6 +50,17 @@ public class RangeFragment extends Fragment {
mtextviewmax = view.findViewById(R.id.textview_thirrdqr);
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();
Double range = bundle.getDouble("Range_value");
String[] entereddata = bundle.getStringArray("Entered_Values");
......
<?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
<?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>
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="@color/design_default_color_secondary"/>
<solid android:color="#BBDEFB"/>
<corners
......
<?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:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
......@@ -13,4 +13,4 @@
android:id="@+id/fragment_container"/>
</LinearLayout>
\ No newline at end of file
</ScrollView>
\ No newline at end of file
......@@ -2,7 +2,7 @@
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_height="790dp"
android:background="#FED"
tools:context=".calculationfunction.StepsFragment.MedianFragment">
......
......@@ -2,7 +2,7 @@
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_height="790dp"
android:background="#FED"
tools:context=".calculationfunction.StepsFragment.ModeFragment">
......@@ -13,7 +13,7 @@
android:layout_width="223dp"
android:layout_height="43dp"
android:layout_marginStart="1dp"
android:layout_marginTop="560dp"
android:layout_marginTop="570dp"
android:layout_marginEnd="243dp"
android:layout_marginBottom="14dp"
android:textStyle="bold"
......
......@@ -72,10 +72,11 @@
android:textSize="20sp"
android:textStyle="bold" />
<TextView
android:id="@+id/textviw_finalvalue"
style="@style/Base.TextAppearance.AppCompat.Large"
android:layout_width="188dp"
android:layout_width="144dp"
android:layout_height="43dp"
android:layout_marginStart="140dp"
android:layout_marginTop="740dp"
......@@ -86,6 +87,20 @@
android:textSize="20sp"
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
android:id="@+id/textview_inalanswer"
style="@style/Base.TextAppearance.AppCompat.Large"
......@@ -224,17 +239,21 @@
<TextView
android:id="@+id/textView15"
style="@style/Base.TextAppearance.AppCompat.Large"
android:layout_width="217dp"
android:layout_height="46dp"
android:layout_marginStart="220dp"
android:layout_width="165dp"
android:layout_height="58dp"
android:layout_marginStart="0dp"
android:layout_marginTop="10dp"
android:layout_marginEnd="309dp"
android:layout_marginBottom="586dp"
android:background="@drawable/dd56"
android:text="Range"
android:textAlignment="center"
android:textColor="@color/purple_500"
android:textSize="30sp"
android:textStyle="bold" />
android:textStyle="italic"
android:fontFamily="cursive"/>
<TextView
android:id="@+id/textView_orderdata"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment