Search in sources :

Example 6 with TextView

use of org.holoeverywhere.widget.TextView in project mobile-android by photo.

the class AccountActivity method init.

void init() {
    getGoogleLoginFragment();
    Button googleLoginButton = (Button) findViewById(R.id.account_google_login_button);
    googleLoginButton.setText(Html.fromHtml(getString(R.string.account_google_login_button)));
    findViewById(R.id.google_login_view).setVisibility(CommonUtils.isFroyoOrHigher() ? View.GONE : View.GONE);
    TextView signInInstructions = (TextView) findViewById(R.id.instant_sign_in_instructions);
    signInInstructions.setText(Html.fromHtml(getString(R.string.instant_sign_in_instructions)));
    TextView signUpInstructions = (TextView) findViewById(R.id.signup_instructions);
    signUpInstructions.setMovementMethod(LinkMovementMethod.getInstance());
    signUpInstructions.setText(Html.fromHtml(getString(R.string.account_signup_instructions)));
}
Also used : Button(android.widget.Button) TextView(org.holoeverywhere.widget.TextView)

Example 7 with TextView

use of org.holoeverywhere.widget.TextView in project HoloEverywhere by Prototik.

the class TimePickerDialog method setCurrentItemShowing.

// Show either Hours or Minutes.
private void setCurrentItemShowing(int index, boolean animateCircle, boolean delayLabelAnimate, boolean announce) {
    mTimePicker.setCurrentItemShowing(index, animateCircle);
    TextView labelToAnimate;
    if (index == HOUR_INDEX) {
        int hours = mTimePicker.getHours();
        if (!mIs24HourMode) {
            hours = hours % 12;
        }
        mTimePicker.setContentDescription(mHourPickerDescription + ": " + hours);
        if (announce) {
            DateTimePickerUtils.tryAccessibilityAnnounce(mTimePicker, mSelectHours);
        }
        labelToAnimate = mHourView;
    } else {
        int minutes = mTimePicker.getMinutes();
        mTimePicker.setContentDescription(mMinutePickerDescription + ": " + minutes);
        if (announce) {
            DateTimePickerUtils.tryAccessibilityAnnounce(mTimePicker, mSelectMinutes);
        }
        labelToAnimate = mMinuteView;
    }
    mHourView.setSelected(index == HOUR_INDEX);
    mMinuteView.setSelected(index == MINUTE_INDEX);
    ObjectAnimator pulseAnimator = DateTimePickerUtils.getPulseAnimator(labelToAnimate, 0.85f, 1.1f);
    if (delayLabelAnimate) {
        pulseAnimator.setStartDelay(PULSE_ANIMATOR_DELAY);
    }
    pulseAnimator.start();
}
Also used : ObjectAnimator(com.nineoldandroids.animation.ObjectAnimator) TextView(org.holoeverywhere.widget.TextView)

Example 8 with TextView

use of org.holoeverywhere.widget.TextView in project mobile-android by photo.

the class AccountLogin method init.

void init() {
    getLoginFragment();
    getRecoverPasswordFragment();
    TextView signInInstructions = (TextView) findViewById(R.id.sign_in_instructions);
    signInInstructions.setText(Html.fromHtml(getString(R.string.sign_in_instructions)));
}
Also used : TextView(org.holoeverywhere.widget.TextView)

Aggregations

TextView (org.holoeverywhere.widget.TextView)8 View (android.view.View)3 Resources (android.content.res.Resources)2 OnClickListener (android.view.View.OnClickListener)2 Activity (android.app.Activity)1 TypedValue (android.util.TypedValue)1 ViewGroup (android.view.ViewGroup)1 AlphaAnimation (android.view.animation.AlphaAnimation)1 Animation (android.view.animation.Animation)1 Button (android.widget.Button)1 ImageView (android.widget.ImageView)1 RelativeLayout (android.widget.RelativeLayout)1 ObjectAnimator (com.nineoldandroids.animation.ObjectAnimator)1 DateFormatSymbols (java.text.DateFormatSymbols)1 ArrayList (java.util.ArrayList)1