Here are the examples of the java api @android.annotation.IdRes taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
2 Examples
19
Source : RadioGroup.java
with Apache License 2.0
from lulululbj
with Apache License 2.0
from lulululbj
/**
* <p>Returns the identifier of the selected radio button in this group.
* Upon empty selection, the returned value is -1.</p>
*
* @return the unique id of the selected radio button in this group
*
* @see #check(int)
* @see #clearCheck()
*
* @attr ref android.R.styleable#RadioGroup_checkedButton
*/
@IdRes
public int getCheckedRadioButtonId() {
return mCheckedId;
}
19
Source : ViewStub.java
with Apache License 2.0
from lulululbj
with Apache License 2.0
from lulululbj
/**
* Returns the id taken by the inflated view. If the inflated id is
* {@link View#NO_ID}, the inflated view keeps its original id.
*
* @return A positive integer used to identify the inflated view or
* {@link #NO_ID} if the inflated view should keep its id.
*
* @see #setInflatedId(int)
* @attr ref android.R.styleable#ViewStub_inflatedId
*/
@IdRes
public int getInflatedId() {
return mInflatedId;
}