Summary of work from March 23 to March 27

        3月23--3月27工作总结

1. The button triggers the Activity jump. How do I need to pass parameters to the Fragment of the target Actvity?
Add the newInstance method to the Activity, pass in the required parameters, set it to the Bundle, and finally get it in onCreate.
The setArguments method must be completed after the fragment is created and before the Activity is added. Do not call add first, and then set the arguments 2. How does
Java define generic classes and generic methods?
The definition of a generic class:
class Demo{
private T object;
public Demo(T object){
this.object=object;
}
}

The definition of a generic method:
public String toString(T ot){
………
}
where the method is declared as a generic method

Guess you like

Origin blog.csdn.net/skateboard1/article/details/44729665