且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

(找不到ID引用)没有资源与给定名称相匹配

更新时间:2022-06-05 07:15:48

使用@+id是正确的方法. @+id创建一个新的ID,但前提是该名称不存在.

Using @+id is the right way to do it. @+id creates a new id but only if one with that name doesn't already exist.

如果您不想这样做,对于这种特殊的简单情况,将TextEdit移动到Button下方就足够了.

If you don't want to do that, for this particular simple case it would suffice to move the TextEdit below the Button.