Java Code Examples for android.widget.TextView#setAnimation()
The following examples show how to use
android.widget.TextView#setAnimation() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PrayingFragment.java From MuslimMateAndroid with GNU General Public License v3.0 | 4 votes |
/** * Function to init fragment view * * @param rootView Main view of fragment */ private void init(View rootView) { pray1 = (RelativeLayout) rootView.findViewById(R.id.p1); pray2 = (RelativeLayout) rootView.findViewById(R.id.p2); pray3 = (RelativeLayout) rootView.findViewById(R.id.p3); pray4 = (RelativeLayout) rootView.findViewById(R.id.p4); pray5 = (RelativeLayout) rootView.findViewById(R.id.p5); pray6 = (RelativeLayout) rootView.findViewById(R.id.p6); final HGDate hgDate = new HGDate(); monthDay = (TextView) rootView.findViewById(R.id.textView3); monthDay.setText(NumbersLocal.convertNumberType(getContext(),hgDate.getDay()+"") ); monthView = (TextView) rootView.findViewById(R.id.textView4); monthView.setText(Dates.gregorianMonthName(getContext(), hgDate.getMonth()-1)+""); weekDay = (TextView) rootView.findViewById(R.id.textView); weekDay.setText(Dates.weekDayName(getContext(), hgDate.weekDay() + 1)); hgDate.toHigri(); HmonthDay = (TextView) rootView.findViewById(R.id.textView5); HmonthDay.setText(NumbersLocal.convertNumberType(getContext(), String.valueOf(hgDate.getDay()).trim())); HmonthView = (TextView) rootView.findViewById(R.id.textView6); HmonthView.setText(Dates.islamicMonthName(getContext(), Integer.valueOf(hgDate.getMonth()) - 1).trim()); Animation animation = AnimationUtils.loadAnimation(getContext(), R.anim.bottom_top); fajr = (TextView) rootView.findViewById(R.id.fajrTime); fajr.setAnimation(animation); sunrise = (TextView) rootView.findViewById(R.id.sunriseTime); sunrise.setAnimation(animation); zuhr = (TextView) rootView.findViewById(R.id.zuhrTime); zuhr.setAnimation(animation); asr = (TextView) rootView.findViewById(R.id.asrTime); asr.setAnimation(animation); magrib = (TextView) rootView.findViewById(R.id.magribTime); magrib.setAnimation(animation); isha = (TextView) rootView.findViewById(R.id.ishaTime); isha.setAnimation(animation); salahNow = (TextView) rootView.findViewById(R.id.textView7); remain = (TextView) rootView.findViewById(R.id.textView8); locationInfo = ConfigPreferences.getLocationConfig(getContext()); if (locationInfo != null) { lr = new LocationReader(context); lr.read(locationInfo.latitude,locationInfo.longitude); country = (TextView) rootView.findViewById(R.id.textView2); country.setText((getResources().getConfiguration() .locale.getDisplayLanguage() .equals("العربية") ? locationInfo.name_english : locationInfo.name)); city = (TextView) rootView.findViewById(R.id.textView32); city.setText(getString(R.string.near) + " " + (getResources().getConfiguration() .locale.getDisplayLanguage() .equals("العربية") ? locationInfo.city_ar : locationInfo.city)); if (lr.isAvailable()){ getPrayer(); } } }