Disassembled of. VC client for android and for the sake of interest went to the player markup. They used ImageView for all buttons. Why do so? After all, there is the ImageButton , ToggleButton .
Is it too lazy to do customization?
Disassembled of. VC client for android and for the sake of interest went to the player markup. They used ImageView for all buttons. Why do so? After all, there is the ImageButton , ToggleButton .
Is it too lazy to do customization?
The question gives rise to endless debates and discussions based not on knowledge, but on opinions. To get an answer, rephrase your question so that it can be given an unambiguously correct answer, or delete the question altogether. If the question can be reformulated according to the rules set out in the certificate , edit it .
By definition:
public class ImageButton extends ImageView {...} In fact, the ImageButton differs from the ImageView only in the presence of its predefined style, which in some of its guises seems to emulate the effect of pressing. Not everyone likes it, especially now in an era when flat design has become a trend.
Well, there is one more circumstance: when you take a parent class, you get a little more control over the object's behavior (in exchange for the amount of code, of course). Some progers think it is ice.
There is such a term as ПРИ́ХОТЬ that matters: Moody desire, whim.
Programmers they often write porridge a place of small code. Often faced with this, they strongly twist everything and so on ... I saw the markup where TextView made invisible and stored passwords in it)))))))))
Source: https://ru.stackoverflow.com/questions/608704/
All Articles
ImageViewmore appropriate to use than theImageButton, fewer movements - pavlofff