title: What is the best practice for naming the id of XML Element in Android?
body: <p>I am not sure if anyone was bugged with this issue before, but it is one big pain for me.</p>
  
  <p>How do you give an id to xml element in android? </p>
  
  <p>Right now, I set the id with the pattern <strong>[activity/fragment name][element type][specific name]</strong>. For example, if I had an EditText to keep an email which is used in LoginActivity, I will give the id 'LoginEditTextEmail'. </p>
  
  <p>The problem I'm facing is, with this approach, the id often ends up in a very long one.</p>
  
  <p>How do you set the id? What is the best practice?</p>