Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Naming view element ID in project #22

Open
judemin opened this issue Aug 24, 2021 · 3 comments
Open

Naming view element ID in project #22

judemin opened this issue Aug 24, 2021 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@judemin
Copy link
Collaborator

judemin commented Aug 24, 2021

It seems that we should name view elements (TextView, Button, etc.) more intuitive than now.
When referencing elements by ID it's hard to recognize.

My suggestion is to name it according to the below form

layoutName_elementName_type

<Button
        android:id="@+id/transmit_submit_button"
...
@judemin judemin added the enhancement New feature or request label Aug 24, 2021
@eunzinn
Copy link
Collaborator

eunzinn commented Aug 24, 2021

Good! then I'll edit it like this.

  • informButton -> enter_inform_button
  • listenerButton -> enter_listener_button

@kuro11pow2
Copy link
Member

layoutName_elementName_type

Good! I agree with your opinion.

@kmsaidev
Copy link
Collaborator

I think so, too! I agree with your idea. I'll change it soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants