java - Multi-interface function reuse?
伊谢尔伦
伊谢尔伦 2017-06-05 11:10:46
0
1
582

There are multiple activities in my application, and each of these activities has the same custom combination control, and the functions called by the combination control are the same, but these functions are dependent on the activity. Is there any way to associate the custom combination control with those functions without writing the same code in every activity? Those functions are in BaseActvity, and other activities inherit BaseActivity.
ps: The location of those functions cannot be changed;

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(1)
黄舟

The control instance is used as a parameter to call the BaseActivity method? Or describe the problem in more detail.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template