开发者

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

开发者 https://www.devze.com 2023-01-21 06:39 出处:网络
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

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

精彩评论

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

关注公众号