Related questions
Question 134 - H14-231_V1.0 discussion
When the developer jumps to a new page through the button button, the following code is created. If you don't add '' Button button = (Button) findComponentByld(ResourceTable.ld_button) ;' What happens to this line of code?
Public void onStart(Intent intent){
super.onStart(intent);
super.setUlContent
(ResourceTable.Layout_ability_main);
Button button =
(Button)findComponentByld(ResourceTable.ld_button);
button.setClickedListener(listener -> present(new
SecondAbilitySlice(),new Intent()));
}
A.
When you click the button again, the ability crashes
B.
button button does not show up on the layout
C.
Clicking the button does not respond
D.
Click the button button to jump to a new page
Your answer:
0 comments
Sorted by
Leave a comment first