📜  在 android 中按 id 查找视图 - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:02.088000             🧑  作者: Mango

代码示例1
This is because findViewById() searches in the activity_main layout, while the button is located in the fragment's layout fragment_main.