Hello, I have long been tormented by two questions:

1) For example, there is an import

import android.widget.*; 

It imports all widgets into android. Does this somehow affect the size of the application? If yes, then it means that you need to write imports correctly.

 import android.widget.Button; 

Or is it not important at all?

2) For example, I need some widget from the library. Can I just connect it, and not the entire library? Or it will not affect the size of the application?

    1 answer 1

    Imports do not affect application weight. Imports are needed to prevent conflicts between classes with the same name. All classes that you can import are already included in your application.