You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In which situation do you have such a import?
With fragments_ and acitvities_ it should be the problem.
Because it should only import *one* file. If it's import "more" with
fragment_ or activtiy_ syntax you use a wrong id ;)
But you are right with <include> layouts (or generics).
Like `generic_loader_black.xml` and `generic_placeholder.xml` (for example).
If we use that in a layout like `fragment_login` like:
```xml
<include layout="@layout/generic_loader_black"/>
<include layout="@layout/generic_placeholder"/>
```
then we would have such a import you describe:
```kotlin
import kotlinx.android.synthetic.main.generic_loader_black.*
import kotlinx.android.synthetic.main.generic_placerholder.*
```
Then we don't know where a import like `spinner` came from.
From the placeholder or the loader...
Am I right here? 🤔
On the other hand.
I'm a friend of **don't use the same ID anywhere in the app**.
So a simple click on it will redirect us to the file. And we see directly
where we use it.
Additionally: This "pattern" is way more common than taking a look to the
imports :D
If we use the kotlin android-extension we have something like that in our imports:
From my point of view that can be easly added as star imports. There is no need to use them as a single import...
The text was updated successfully, but these errors were encountered: