开发者

How to access a View by an ID of the android namespace

How to access a View by an ID of the android namespace

In hierarchy viewer there are several IDs as shown above, for example "id/timepicker_input". But I can't find a respective timepicker_input - ID when typing

myNumberPicker.findViewById(android.R.id.开发者_如何学C ...? );

So how to access these Views by their ID?


Make shure there is no import android.R... defined and build your project after altering your layouts.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜