Android: Why Should Ids Of Views Should Be Positive Numbers?
In View.java, setId - 'Sets the identifier for this view. The identifier does not have to be unique in this view's hierarchy. The identifier should be a positive number.' & fi
Solution 1:
It most likely is just a design decision. Negative identifiers are commonly used to notify that there's something wrong with the underlying entity, thus using negative id's is often frowned upon.
Post a Comment for "Android: Why Should Ids Of Views Should Be Positive Numbers?"