caffeine icon indicating copy to clipboard operation
caffeine copied to clipboard

Use android resource annotations

Open brentwatson opened this issue 9 years ago • 4 comments

  • @StringRes, @LayoutRes etc should be used throughout.
  • Extend methods to accept res ids where views / strings are currently required:
    • ViewUtils.hideView(view, R.id.my_layout);
    • DialogUtils.quickDialog(context, R.string.my_string);
    • ToastUtils.quickToast(context, R.string.my_string);
    • ...

brentwatson avatar Jan 20 '16 15:01 brentwatson

@brentwatson are you updating this library?

superuserdid avatar Jan 20 '16 23:01 superuserdid

@luxnova ya, we need to give it some love soon.

brentwatson avatar Jan 21 '16 02:01 brentwatson

@brentwatson hmm. I think I have some Util classes you might like for this.

superuserdid avatar Jan 21 '16 21:01 superuserdid

@luxnova :+1: Just PR if you have something that you think fits.

brentwatson avatar Feb 02 '16 16:02 brentwatson