// Path: src/com/timefleeting/app/TopBottomScrollView.java
// public interface OnScrollToBottomListener {
// 	public void onScrollBottomListener(boolean isBottom);
// }
// 
// Path: src/com/timefleeting/app/TopBottomScrollView.java
// public interface OnScrollToTopListener {
// 	public void onScrollTopListener(boolean isTop);
// }


import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import com.daimajia.androidanimations.library.Techniques;
import com.daimajia.androidanimations.library.YoYo;
import com.fourmob.datetimepicker.date.DatePickerDialog;
import com.fourmob.datetimepicker.date.DatePickerDialog.OnDateSetListener;
import com.nineoldandroids.animation.Animator;
import com.nineoldandroids.animation.Animator.AnimatorListener;
import com.timefleeting.app.TopBottomScrollView.OnScrollToBottomListener;
import com.timefleeting.app.TopBottomScrollView.OnScrollToTopListener;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.text.Editable;
import android.text.InputFilter;
import android.text.TextWatcher;
import android.text.style.ReplacementSpan;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.TextureView;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.animation.Animation;
import android.view.animation.Animation.AnimationListener;
import android.view.animation.AnimationSet;
import android.view.animation.TranslateAnimation;
import android.view.Window;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemSelectedListener;
import android.widget.ArrayAdapter;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ScrollView;
import android.widget.Spinner;
import android.widget.TextView;
import android.widget.Toast;
				}
			}
			
			saveId = getIntent().getIntExtra("ID", -1);
			
			dateTextView.setText(dateTextView.getText().toString().substring(0,  10) + " " + Language.getDayOfWeekText(calDayOfWeek(getIntent().getStringExtra("RemindTime"))));
			
			((TextView)findViewById(R.id.past_edit_top_title)).setText(Language.getEditPastTitleLayoutText(isOld));

			YoYo.with(Techniques.Shake)
			.duration(2000)
			.delay(GlobalSettings.TIP_ANIMATION_DELAY)
			.playOn(infoRemainTextView);
			
			YoYo.with(Techniques.Shake)
			.duration(2000)
			.delay(GlobalSettings.TIP_ANIMATION_DELAY)
			.playOn(editLogo);
			
		} else {
			dateString = createTimeString;
			dateTextView.setText(dateString.substring(0,  10) + " " + Language.getDayOfWeekText(calDayOfWeek(dateString)));
			infoLinearLayout.getLayoutParams().height = 0;
			saveId = -1;
		}
		
		
		if (scrollView == null) {
			Log.d("TimeFleeting", "ISNULL");
		} else {
// Path: src/com/timefleeting/app/TopBottomScrollView.java
// public interface OnScrollToBottomListener {
// 	public void onScrollBottomListener(boolean isBottom);
// }
// 
// Path: src/com/timefleeting/app/TopBottomScrollView.java
// public interface OnScrollToTopListener {
// 	public void onScrollTopListener(boolean isTop);
// }


// Path: src/com/timefleeting/app/EditPastActivity.java
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import com.daimajia.androidanimations.library.Techniques;
import com.daimajia.androidanimations.library.YoYo;
import com.fourmob.datetimepicker.date.DatePickerDialog;
import com.fourmob.datetimepicker.date.DatePickerDialog.OnDateSetListener;
import com.nineoldandroids.animation.Animator;
import com.nineoldandroids.animation.Animator.AnimatorListener;
import com.timefleeting.app.TopBottomScrollView.OnScrollToBottomListener;
import com.timefleeting.app.TopBottomScrollView.OnScrollToTopListener;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.text.Editable;
import android.text.InputFilter;
import android.text.TextWatcher;
import android.text.style.ReplacementSpan;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.TextureView;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.animation.Animation;
import android.view.animation.Animation.AnimationListener;
import android.view.animation.AnimationSet;
import android.view.animation.TranslateAnimation;
import android.view.Window;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemSelectedListener;
import android.widget.ArrayAdapter;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ScrollView;
import android.widget.Spinner;
import android.widget.TextView;
import android.widget.Toast;

				}
			}
			
			saveId = getIntent().getIntExtra("ID", -1);
			
			dateTextView.setText(dateTextView.getText().toString().substring(0,  10) + " " + Language.getDayOfWeekText(calDayOfWeek(getIntent().getStringExtra("RemindTime"))));
			
			((TextView)findViewById(R.id.past_edit_top_title)).setText(Language.getEditPastTitleLayoutText(isOld));

			YoYo.with(Techniques.Shake)
			.duration(2000)
			.delay(GlobalSettings.TIP_ANIMATION_DELAY)
			.playOn(infoRemainTextView);
			
			YoYo.with(Techniques.Shake)
			.duration(2000)
			.delay(GlobalSettings.TIP_ANIMATION_DELAY)
			.playOn(editLogo);
			
		} else {
			dateString = createTimeString;
			dateTextView.setText(dateString.substring(0,  10) + " " + Language.getDayOfWeekText(calDayOfWeek(dateString)));
			infoLinearLayout.getLayoutParams().height = 0;
			saveId = -1;
		}
		
		
		if (scrollView == null) {
			Log.d("TimeFleeting", "ISNULL");
		} else {
			scrollView.setOnScrollToBottomLintener(new OnScrollToBottomListener() {