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

Child Nodes Left Margin and setDisplayHomeAsUpEnabled not working #10

Closed
ghost opened this issue Mar 27, 2015 · 4 comments
Closed

Child Nodes Left Margin and setDisplayHomeAsUpEnabled not working #10

ghost opened this issue Mar 27, 2015 · 4 comments

Comments

@ghost
Copy link

ghost commented Mar 27, 2015

I implemented the library on my android app, but i have 2 problems:

  • The child nodes doesn't have any left margin, so the tree looks like a simple list of itens.
  • And setDisplayHomeAsUpEnabled isnt working in the TreeNode fragment.

This happened to someone ?

@bmelnychuk
Copy link
Owner

There is similar issue with padding for android 4 (if Im not mistaken).
I don't think that treeView can disable setDisplayHomeAsUpEnabled functionality. Does it work if you remove treeView from fragment?

@ghost
Copy link
Author

ghost commented Mar 27, 2015

Just tried setDisplayHomeAsUpEnabled without the treeView and still not work, probably not related.
About the padding issue, Is there a workaround for it?

@ghost ghost closed this as completed Mar 30, 2015
@ghost ghost reopened this Mar 30, 2015
@ghost
Copy link
Author

ghost commented Mar 30, 2015

UPDATE:
if setDisplayHomeAsUpEnabled doesn't work in the fragment treeview do this on onOptionsItemSelected:

public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case R.id.expandAll:
tView.expandAll();
break;
case R.id.collapseAll:
tView.collapseAll();
break;
case android.R.id.home:
NavUtils.navigateUpFromSameTask(getActivity()); /* IMPORTANT PART HERE*/
return true;
}
return true;
}

@bmelnychuk
Copy link
Owner

Padding issue should be fixed with latest changes

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

No branches or pull requests

1 participant