开发者

How do I create a specific key for each control on a form in Android?

开发者 https://www.devze.com 2023-01-11 23:26 出处:网络
Trying to assign a key to 开发者_C百科each field in android to reference in Java.If I understand what you mean

Trying to assign a key to 开发者_C百科each field in android to reference in Java.


If I understand what you mean

In XML :

android:id="your_id"

and to retrieve it in your code :

findViewById(R.id.your_id)
0

精彩评论

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