Java Code Examples for android.support.annotation.StyleRes

The following are top voted examples for showing how to use android.support.annotation.StyleRes. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: DateTimePicker   File: DatePickerDialog.java   View source code 6 votes vote down vote up
private DatePickerDialog(@NonNull Context context, @StyleRes int themeResId,
                         @Nullable OnDateSetListener listener, @Nullable Calendar calendar, int year,
                         int monthOfYear, int dayOfMonth) {
    super(context, resolveDialogTheme(context, themeResId));

    final Context themeContext = getContext();
    final LayoutInflater inflater = LayoutInflater.from(themeContext);
    final View view = inflater.inflate(R.layout.date_picker_dialog, null);
    setView(view);

    setButton(BUTTON_POSITIVE, themeContext.getString(android.R.string.ok), this);
    setButton(BUTTON_NEGATIVE, themeContext.getString(android.R.string.cancel), this);
    // FIXME ? setButtonPanelLayoutHint(LAYOUT_HINT_SIDE);

    if (calendar != null) {
        year = calendar.get(Calendar.YEAR);
        monthOfYear = calendar.get(Calendar.MONTH);
        dayOfMonth = calendar.get(Calendar.DAY_OF_MONTH);
    }

    mDatePicker = view.findViewById(R.id.datePicker);
    mDatePicker.init(year, monthOfYear, dayOfMonth, this);
    mDatePicker.setValidationCallback(mValidationCallback);

    mDateSetListener = listener;
}
 
Example 2
Project: AppMarketUpdater   File: AppMarketsDialog.java   View source code 6 votes vote down vote up
public AppMarketsDialog(@NonNull Context context, @StyleRes int theme, List<AppMarket> appMarkets,
                        final OnAppMarketSelectedListener listener) {
    super(context, theme);
    View view = LayoutInflater.from(context).inflate(R.layout.dialog_app_markets, null);
    RecyclerView recyclerView = (RecyclerView) view.findViewById(R.id.recycler_view);
    recyclerView.setLayoutManager(new GridLayoutManager(context, 3));
    OnAppMarketSelectedListener mChooseListener = new OnAppMarketSelectedListener() {
        @Override
        public void onSelected(int position) {
            dismiss();
            listener.onSelected(position);
        }
    };
    recyclerView.setAdapter(new MarketsAdapter(appMarkets, mChooseListener));
    setContentView(view);
}
 
Example 3
Project: MultipleTheme   File: ThemeManager.java   View source code 5 votes vote down vote up
public static void registerThemeRes(String group, String key, @StyleRes int resid, boolean isDefault) {
    if (sThemeResMap.get(group) == null) {
        sThemeResMap.put(group, new HashMap<String, Integer>());
    }
    sThemeResMap.get(group).put(key, resid);
    if (TextUtils.isEmpty(SharedPreferencesMgr.getString(group, "")) && isDefault) {
        SharedPreferencesMgr.setString(group, key);
    }
}
 
Example 4
Project: android_ui   File: TextAppearance.java   View source code 5 votes vote down vote up
/**
 * Set ups this text appearance holder with text appearance values from the specified <var>resId</var>
 * style.
 *
 * @param context Context used to parse text appearance attributes from the specified style resource.
 * @param resId   Resource id of the desired TextAppearance style from which to parse attributes.
 * @return {@code True} if some of attributes of this text appearance has changed, {@code false}
 * otherwise.
 */
public boolean fromStyle(@NonNull Context context, @StyleRes int resId) {
	this.reset();
	final TypedArray typedArray = context.obtainStyledAttributes(resId, R.styleable.Ui_TextAppearance);
	if (typedArray != null) {
		final int n = typedArray.getIndexCount();
		for (int i = 0; i < n; i++) {
			final int index = typedArray.getIndex(i);
			if (index == R.styleable.Ui_TextAppearance_android_textSize) {
				this.mTextSize = typedArray.getDimensionPixelSize(index, (int) mTextSize);
			} else if (index == R.styleable.Ui_TextAppearance_android_textColor) {
				this.mTextColors = typedArray.getColorStateList(index);
			} else if (index == R.styleable.Ui_TextAppearance_android_textStyle) {
				this.mTextStyle = typedArray.getInt(index, mTextStyle);
			} else if (index == R.styleable.Ui_TextAppearance_android_typeface) {
				this.mTypefaceIndex = typedArray.getInt(index, mTypefaceIndex);
			} else if (index == R.styleable.Ui_TextAppearance_android_fontFamily) {
				this.mFontFamily = typedArray.getString(index);
			} else if (index == R.styleable.Ui_TextAppearance_uiFont) {
				final String fontPath = typedArray.getString(index);
				if (!TextUtils.isEmpty(fontPath)) {
					this.mTypeface = Font.create(fontPath).getTypeface(context);
				}
			}
		}
		typedArray.recycle();
		return n > 0;
	}
	return false;
}
 
Example 5
Project: android_ui   File: CheckBoxWidget.java   View source code 5 votes vote down vote up
/**
 */
@Override
@SuppressWarnings("deprecation")
public void setTextAppearance(@NonNull Context context, @StyleRes int resId) {
	super.setTextAppearance(context, resId);
	this.ensureDecorator();
	mDecorator.setFontFromStyle(resId);
}
 
Example 6
Project: NumberPadTimePicker   File: CustomThemeModel.java   View source code 5 votes vote down vote up
@StyleRes
public int getBaseBottomSheetTheme() {
    switch (getBaseThemeValue(sharedPrefs)) {
        case 0:
        default:
            return R.style.Theme_Design_Light_BottomSheetDialog;
        case 1:
            return R.style.Theme_Design_BottomSheetDialog;
    }
}
 
Example 7
Project: android_ui   File: SwitchWidget.java   View source code 5 votes vote down vote up
/**
 */
@Override
@SuppressWarnings("deprecation")
public void setTextAppearance(@NonNull Context context, @StyleRes int resId) {
	super.setTextAppearance(context, resId);
	this.ensureDecorator();
	mDecorator.setFontFromStyle(resId);
}
 
Example 8
Project: boohee_v5.6   File: DialogFragment.java   View source code 5 votes vote down vote up
public void setStyle(int style, @StyleRes int theme) {
    this.mStyle = style;
    if (this.mStyle == 2 || this.mStyle == 3) {
        this.mTheme = 16973913;
    }
    if (theme != 0) {
        this.mTheme = theme;
    }
}
 
Example 9
Project: NumberPadTimePicker   File: CustomThemeModel.java   View source code 5 votes vote down vote up
@StyleRes
public int getBaseAlertTheme() {
    switch (getBaseThemeValue(sharedPrefs)) {
        case 0:
        default:
            return R.style.Theme_AppCompat_Light_Dialog_Alert;
        case 1:
            return R.style.Theme_AppCompat_Dialog_Alert;
    }
}
 
Example 10
Project: mapbox-plugins-android   File: LocationLayer.java   View source code 5 votes vote down vote up
LocationLayer(MapView mapView, MapboxMap mapboxMap, @StyleRes int styleRes) {
  this.mapboxMap = mapboxMap;
  this.context = mapView.getContext();
  addSources();
  addLayers();
  applyStyle(styleRes);
}
 
Example 11
Project: Android-skin-support   File: SkinMaterialNavigationView.java   View source code 5 votes vote down vote up
@Override
public void setItemTextAppearance(@StyleRes int resId) {
    super.setItemTextAppearance(resId);
    if (resId != INVALID_ID) {
        TypedArray a = getContext().obtainStyledAttributes(resId, R.styleable.SkinTextAppearance);
        if (a.hasValue(R.styleable.SkinTextAppearance_android_textColor)) {
            mTextColorResId = a.getResourceId(R.styleable.SkinTextAppearance_android_textColor, INVALID_ID);
        }
        a.recycle();
        applyItemTextColorResource();
    }
}
 
Example 12
Project: Alerter   File: Alert.java   View source code 5 votes vote down vote up
/**
 * Set the Text's text appearance of the Title
 *
 * @param textAppearance The style resource id
 */
public void setTextAppearance(@StyleRes final int textAppearance) {
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
        tvText.setTextAppearance(textAppearance);
    } else {
        tvText.setTextAppearance(tvText.getContext(), textAppearance);
    }
}
 
Example 13
Project: OpenHub   File: ThemeHelper.java   View source code 5 votes vote down vote up
@StyleRes
public static int getAboutTheme(String theme){
    switch (theme){
        case PrefUtils.LIGHT_TEAL:
            return R.style.ThemeLightTeal_AboutActivity;
        case PrefUtils.LIGHT_INDIGO:
            return R.style.ThemeLight_AboutActivity;
        case PrefUtils.DARK:
            return R.style.ThemeDark_AboutActivity;
        default:
            return R.style.ThemeLightTeal_AboutActivity;
    }
}
 
Example 14
Project: android_ui   File: PullController.java   View source code 5 votes vote down vote up
/**
 * Performs configuration of this controller from the given <var>attrs</var>.
 *
 * @param context      Context used to obtain values for the given attributes.
 * @param attrs        Set of attributes with values to be used to set up this controller.
 * @param defStyleAttr An attribute which contains a reference to a default style resource, for
 *                     the view attached to this controller, within a theme of the given context.
 * @param defStyleRes  Resource id of the default style for the view attached to this controller.
 * @return {@code True} if some setting of this controller has been changed, {@code false} otherwise.
 */
@SuppressWarnings("ResourceType")
public boolean setUpFromAttrs(@NonNull Context context, AttributeSet attrs, @AttrRes int defStyleAttr, @StyleRes int defStyleRes) {
	final TypedArray typedArray = context.obtainStyledAttributes(attrs, R.styleable.Ui_PullController, defStyleAttr, defStyleRes);
	if (typedArray != null) {
		this.ensurePullHelper();
		final int n = typedArray.getIndexCount();
		for (int i = 0; i < n; i++) {
			final int index = typedArray.getIndex(i);
			if (index == R.styleable.Ui_PullController_uiPullMode) {
				setPullMode(typedArray.getInteger(index, mPullHelper.getPullMode()));
			} else if (index == R.styleable.Ui_PullController_uiPullMinVelocity) {
				setPullMinVelocity(typedArray.getFloat(index, getPullMinVelocity()));
			} else if (index == R.styleable.Ui_PullController_uiPullDistanceFraction) {
				setPullDistanceFraction(typedArray.getFloat(index, getPullDistanceFraction()));
			} else if (index == R.styleable.Ui_PullController_uiPullDistance) {
				setPullDistance(typedArray.getDimensionPixelSize(index, (int) getPullDistance()));
			} else if (index == R.styleable.Ui_PullController_uiPullCollapseDuration) {
				setPullCollapseDuration(typedArray.getInt(index, (int) mAnimations.pullCollapseDuration));
			} else if (index == R.styleable.Ui_PullController_uiPullCollapseDelay) {
				setPullCollapseDelay(typedArray.getInt(index, (int) mAnimations.pullCollapseDelay));
			}
		}
		typedArray.recycle();
		return n > 0;
	}
	return false;
}
 
Example 15
Project: MusicX-music-player   File: Config.java   View source code 5 votes vote down vote up
@Override
public Config activityTheme(@StyleRes int theme) {
    final Resources r = mContext.getResources();
    final String name = r.getResourceName(theme);
    final String defType = r.getResourceTypeName(theme);
    mEditor.putString(KEY_ACTIVITY_THEME, name);
    mEditor.putString(KEY_ACTIVITY_THEME_DEFTYPE, defType);
    return this;
}
 
Example 16
Project: mapbox-plugins-android   File: LocationLayerPlugin.java   View source code 5 votes vote down vote up
/**
 * Construct a {@code LocationLayerPlugin}
 *
 * @param mapView        the MapView to apply the My Location layer plugin to
 * @param mapboxMap      the MapboxMap to apply the My Location layer plugin with
 * @param locationEngine the {@link LocationEngine} this plugin should use to update
 * @param styleRes       customize the user location icons inside your apps {@code style.xml}
 * @since 0.1.0
 */
public LocationLayerPlugin(@NonNull MapView mapView, @NonNull MapboxMap mapboxMap,
                           @Nullable LocationEngine locationEngine, @StyleRes int styleRes) {
  this.locationEngine = locationEngine;
  this.mapboxMap = mapboxMap;
  this.mapView = mapView;
  this.styleRes = styleRes;
  mapView.addOnMapChangedListener(this);
  initialize();
}
 
Example 17
Project: MusicX-music-player   File: Config.java   View source code 5 votes vote down vote up
@CheckResult
@StyleRes
public static int activityTheme(@NonNull Context context, @Nullable String key) {
    final SharedPreferences prefs = prefs(context, key);
    final String valueStr = prefs.getString(KEY_ACTIVITY_THEME, null);
    String valueTypeStr = prefs.getString(KEY_ACTIVITY_THEME_DEFTYPE, null);
    if (valueStr != null) {
        if (valueTypeStr == null) valueTypeStr = "style";
        return context.getResources().getIdentifier(valueStr, valueTypeStr, context.getPackageName());
    }
    return 0;
}
 
Example 18
Project: head   File: HeadToolBar.java   View source code 5 votes vote down vote up
@Override
public void setSubtitleTextAppearance(Context context, @StyleRes int resId) {
    mSubtitleTextAppearance = resId;
    if (mSubtitleTextView != null) {
        mSubtitleTextView.setTextAppearance(context, resId);
    }
}
 
Example 19
Project: boohee_v5.6   File: ActionMenuView.java   View source code 5 votes vote down vote up
public void setPopupTheme(@StyleRes int resId) {
    if (this.mPopupTheme != resId) {
        this.mPopupTheme = resId;
        if (resId == 0) {
            this.mPopupContext = getContext();
        } else {
            this.mPopupContext = new ContextThemeWrapper(getContext(), resId);
        }
    }
}
 
Example 20
Project: SingleSelectBar   File: SingleSelectBar.java   View source code 5 votes vote down vote up
/**
 * Set a text appearance for all tabs.
 *
 * @param textAppearance The style of tab text.
 */
public void setTabTextAppearance(@StyleRes int textAppearance) {
    itemTextAppearance = textAppearance;

    int colorSelected = getSelectedColorFromStyle(getContext());
    if (colorSelected >= 0) {
        resHelper.setColorSelected(colorSelected);
    }
    
    for (Tab tab : tabs) {
        tab.view.setTabTextAppearance(textAppearance);
    }
}
 
Example 21
Project: Android-skin-support   File: SkinMaterialTextInputLayout.java   View source code 5 votes vote down vote up
private void loadErrorTextColorResFromAttributes(@StyleRes int resId) {
    if (resId != INVALID_ID) {
        TypedArray errorTA = getContext().obtainStyledAttributes(resId, skin.support.R.styleable.SkinTextAppearance);
        if (errorTA.hasValue(skin.support.R.styleable.SkinTextAppearance_android_textColor)) {
            mErrorTextColorResId = errorTA.getResourceId(skin.support.R.styleable.SkinTextAppearance_android_textColor, INVALID_ID);
        }
        errorTA.recycle();
    }
    applyErrorTextColorResource();
}
 
Example 22
Project: Alerter   File: Alerter.java   View source code 5 votes vote down vote up
/**
 * Set the Text's text appearance
 *
 * @param textAppearance The style resource id
 * @return This Alerter
 */
public Alerter setTextAppearance(@StyleRes final int textAppearance) {
    if (getAlert() != null) {
        getAlert().setTextAppearance(textAppearance);
    }

    return this;
}
 
Example 23
Project: Expandable-Action-Button   File: ExpandableButtonView.java   View source code 5 votes vote down vote up
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
public ExpandableButtonView(@NonNull Context context, @Nullable AttributeSet attrs,
                            @AttrRes int defStyleAttr, @StyleRes int defStyleRes) {
    super(context, attrs, defStyleAttr, defStyleRes);
    init(context);
    initAttrs(attrs);
}
 
Example 24
Project: Android-skin-support   File: SkinMaterialTextInputLayout.java   View source code 5 votes vote down vote up
private void loadCounterTextColorResFromAttributes(@StyleRes int resId) {
    if (resId != INVALID_ID) {
        TypedArray counterTA = getContext().obtainStyledAttributes(resId, skin.support.R.styleable.SkinTextAppearance);
        if (counterTA.hasValue(skin.support.R.styleable.SkinTextAppearance_android_textColor)) {
            mCounterTextColorResId = counterTA.getResourceId(skin.support.R.styleable.SkinTextAppearance_android_textColor, INVALID_ID);
        }
        counterTA.recycle();
    }
    applyCounterTextColorResource();
}
 
Example 25
Project: ChromeLikeTabSwitcher   File: TabSwitcher.java   View source code 5 votes vote down vote up
/**
 * Obtains all attributes from a specific attribute set.
 *
 * @param attributeSet
 *         The attribute set, the attributes should be obtained from, as an instance of the type
 *         {@link AttributeSet} or null, if no attributes should be obtained
 * @param defaultStyle
 *         The default style to apply to this view. If 0, no style will be applied (beyond what
 *         is included in the theme). This may either be an attribute resource, whose value will
 *         be retrieved from the current theme, or an explicit style resource
 * @param defaultStyleResource
 *         A resource identifier of a style resource that supplies default values for the view,
 *         used only if the default style is 0 or can not be found in the theme. Can be 0 to not
 *         look for defaults
 */
private void obtainStyledAttributes(@Nullable final AttributeSet attributeSet,
                                    @AttrRes final int defaultStyle,
                                    @StyleRes final int defaultStyleResource) {
    TypedArray typedArray = getContext()
            .obtainStyledAttributes(attributeSet, R.styleable.TabSwitcher, defaultStyle,
                    defaultStyleResource);

    try {
        int globalTheme = typedArray.getResourceId(R.styleable.TabSwitcher_themeGlobal, 0);
        int phoneTheme = typedArray.getResourceId(R.styleable.TabSwitcher_themePhone, 0);
        int tabletTheme = typedArray.getResourceId(R.styleable.TabSwitcher_themeTablet, 0);
        themeHelper = new ThemeHelper(getContext(), globalTheme, phoneTheme, tabletTheme);
        style = new TabSwitcherStyle(this, model, themeHelper);
        obtainLayoutPolicy(typedArray);
        obtainBackground(typedArray);
        obtainTabIcon(typedArray);
        obtainTabBackgroundColor(typedArray);
        obtainTabContentBackgroundColor(typedArray);
        obtainAddTabButtonColor(typedArray);
        obtainTabTitleTextColor(typedArray);
        obtainTabCloseButtonIcon(typedArray);
        obtainToolbarTitle(typedArray);
        obtainToolbarNavigationIcon(typedArray);
        obtainToolbarMenu(typedArray);
        obtainEmptyView(typedArray);
    } finally {
        typedArray.recycle();
    }
}
 
Example 26
Project: Luhn   File: Luhn.java   View source code 5 votes vote down vote up
public static void startLuhn(Context context, LuhnCallback luhnCallback, Bundle cardIOBundle, @StyleRes int style) {
    sLuhnCallback = luhnCallback;
    context.startActivity(new Intent(context, Luhn.class)
            .putExtra(STYLE_KEY, style)
            .putExtra(CARD_IO, cardIOBundle)
    );
}
 
Example 27
Project: StyleableToast   File: StyleableToast.java   View source code 5 votes vote down vote up
private StyleableToast(@NonNull Context context, String text, int length, @StyleRes int style) {
    super(context);
    this.context = context;
    this.text = text;
    this.length = length;
    this.style = style;
}
 
Example 28
Project: boohee_v5.6   File: CollapsingToolbarLayout.java   View source code 4 votes vote down vote up
public void setExpandedTitleTextAppearance(@StyleRes int resId) {
    this.mCollapsingTextHelper.setExpandedTextAppearance(resId);
}
 
Example 29
Project: showroom-android   File: CardSliderActivity.java   View source code 4 votes vote down vote up
TextViewFactory(@StyleRes int styleId, boolean center) {
    this.styleId = styleId;
    this.center = center;
}
 
Example 30
Project: CNode-OAuth-Login-Android   File: CNodeOAuthLoginView.java   View source code 4 votes vote down vote up
@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
public CNodeOAuthLoginView(@NonNull Context context, @Nullable AttributeSet attrs, @AttrRes int defStyleAttr, @StyleRes int defStyleRes) {
    super(context, attrs, defStyleAttr, defStyleRes);
    init(context);
}
 
Example 31
Project: GitHub   File: HostListActivity.java   View source code 4 votes vote down vote up
@Override
public void onBindViewHolder(ItemViewHolder holder, int position) {
	HostViewHolder hostHolder = (HostViewHolder) holder;

	HostBean host = hosts.get(position);
	hostHolder.host = host;
	if (host == null) {
		// Well, something bad happened. We can't continue.
		Log.e("HostAdapter", "Host bean is null!");
		hostHolder.nickname.setText("Error during lookup");
	} else {
		hostHolder.nickname.setText(host.getNickname());
	}

	switch (this.getConnectedState(host)) {
	case STATE_UNKNOWN:
		hostHolder.icon.setImageState(new int[] { }, true);
		hostHolder.icon.setContentDescription(null);
		if (Build.VERSION.SDK_INT >= 16) {
			hideFromAccessibility(hostHolder.icon, true);
		}
		break;
	case STATE_CONNECTED:
		hostHolder.icon.setImageState(new int[] { android.R.attr.state_checked }, true);
		hostHolder.icon.setContentDescription(getString(R.string.image_description_connected));
		if (Build.VERSION.SDK_INT >= 16) {
			hideFromAccessibility(hostHolder.icon, false);
		}
		break;
	case STATE_DISCONNECTED:
		hostHolder.icon.setImageState(new int[] { android.R.attr.state_expanded }, true);
		hostHolder.icon.setContentDescription(getString(R.string.image_description_disconnected));
		if (Build.VERSION.SDK_INT >= 16) {
			hideFromAccessibility(hostHolder.icon, false);
		}
		break;
	default:
		Log.e("HostAdapter", "Unknown host state encountered: " + getConnectedState(host));
	}

	@StyleRes final int chosenStyleFirstLine;
	@StyleRes final int chosenStyleSecondLine;
	if (HostDatabase.COLOR_RED.equals(host.getColor())) {
		chosenStyleFirstLine = R.style.ListItemFirstLineText_Red;
		chosenStyleSecondLine = R.style.ListItemSecondLineText_Red;
	} else if (HostDatabase.COLOR_GREEN.equals(host.getColor())) {
		chosenStyleFirstLine = R.style.ListItemFirstLineText_Green;
		chosenStyleSecondLine = R.style.ListItemSecondLineText_Green;
	} else if (HostDatabase.COLOR_BLUE.equals(host.getColor())) {
		chosenStyleFirstLine = R.style.ListItemFirstLineText_Blue;
		chosenStyleSecondLine = R.style.ListItemSecondLineText_Blue;
	} else {
		chosenStyleFirstLine = R.style.ListItemFirstLineText;
		chosenStyleSecondLine = R.style.ListItemSecondLineText;
	}

	hostHolder.nickname.setTextAppearance(context, chosenStyleFirstLine);
	hostHolder.caption.setTextAppearance(context, chosenStyleSecondLine);

	CharSequence nice = context.getString(R.string.bind_never);
	if (host.getLastConnect() > 0) {
		nice = DateUtils.getRelativeTimeSpanString(host.getLastConnect() * 1000);
	}

	hostHolder.caption.setText(nice);
}
 
Example 32
Project: GitHub   File: BaseDialog.java   View source code 4 votes vote down vote up
public void setAnimationStyle(@StyleRes int animRes) {
    Window window = dialog.getWindow();
    if (window != null) {
        window.setWindowAnimations(animRes);
    }
}
 
Example 33
Project: letv   File: TextViewCompat.java   View source code 4 votes vote down vote up
public void setTextAppearance(TextView textView, @StyleRes int resId) {
    TextViewCompatDonut.setTextAppearance(textView, resId);
}
 
Example 34
Project: GitHub   File: EasyPopup.java   View source code 4 votes vote down vote up
public <T extends EasyPopup> T setAnimationStyle(@StyleRes int animationStyle) {
    this.mAnimationStyle = animationStyle;
    return (T) this;
}
 
Example 35
Project: EraseView-Android   File: EraseFrameLayout.java   View source code 4 votes vote down vote up
@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
public EraseFrameLayout(@NonNull Context context, @Nullable AttributeSet attrs, @AttrRes int defStyleAttr, @StyleRes int defStyleRes) {
    super(context, attrs, defStyleAttr, defStyleRes);
}
 
Example 36
Project: QuickDrawEverywhere   File: DrawCameraView.java   View source code 4 votes vote down vote up
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
public DrawCameraView(@NonNull Context context, @Nullable AttributeSet attrs, @AttrRes int defStyleAttr, @StyleRes int defStyleRes) {
    super(context, attrs, defStyleAttr, defStyleRes);
    initCameraView();
}
 
Example 37
Project: DateTimePicker   File: CalendarView.java   View source code 4 votes vote down vote up
@StyleRes
int getWeekDayTextAppearance();
 
Example 38
Project: boohee_v5.6   File: NavigationView.java   View source code 4 votes vote down vote up
public void setItemTextAppearance(@StyleRes int resId) {
    this.mPresenter.setItemTextAppearance(resId);
}
 
Example 39
Project: DateTimePicker   File: CalendarView.java   View source code 4 votes vote down vote up
@StyleRes
int getDateTextAppearance();
 
Example 40
Project: letv   File: TextViewCompat.java   View source code 4 votes vote down vote up
public static void setTextAppearance(@NonNull TextView textView, @StyleRes int resId) {
    IMPL.setTextAppearance(textView, resId);
}