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

Does not take into consideration id references inside layouts (i.e. RelativeLayout) #15

Closed
GoogleCodeExporter opened this issue Jun 14, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Run the tool
2. Find an id that is used to place views relative to it inside a RelativeLayout
3. Delete the id.

What is the expected output? What do you see instead?
There are no errors when running the application, it just messes up the UI.

What version of the product are you using? On what operating system?
Current latest:1.4.1

Please provide any additional information below.

I created a tool that automatically deletes the resources that have been found. 
Once it deletes all the "unused" ids, the relative layouts whose views ids have 
been deleted, is really messed up. That's how I figured out that dependencies 
for ids inside the same file and not being checked.


Original issue reported on code.google.com by pe...@instinctiv.com on 24 Nov 2011 at 8:05

@GoogleCodeExporter
Copy link
Author

I have a such items inside RelativeLayout:

<ImageView
  android:id="@+id/logo"
  ... />

<ProgressBar
  ...
  android:layout_below="@+id/logo"
  ... />

"logo" will be reported as unused.

Original comment by helio...@gmail.com on 9 Dec 2011 at 9:14

@GoogleCodeExporter
Copy link
Author

Your references should not not be layout_below="@+id/logo".  They should be 
layout_below="@id/logo".

@+id defines a new id.  @id references an id.

Original comment by skenned...@gmail.com on 9 Dec 2011 at 4:56

  • Changed state: WontFix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant