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)));
}
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();
}
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)));
}
Aggregations