danger/u/
This thread is permanently archived
need help on android studio

| how do i link 2 xml files?
srry new on android studio


| Generally linking files can be done with the GNU coreutils "ln" command.
Examples:
ln file1.xml file2.xml
This would create a "hardlink" of file1.xml file2.xml.
ln -s file1.xml file2.xml
This would create a "soft-" or "symbolic link" of file1.xml to file2.xml
Hardlinks won't work across separate file systems. Symbolic links will do, but the filesystem must support it (e.g. FAT32 doesn't)
I hope I could help you.


| >>521208
thanks


| >>521022
Define 'link'. Linking in *nix may not be the same as the 'link' you have in mind.


| >>0fadco
ok, so i have 2 xml files, right? lets say A & B. i dragged a button in xml A. i wanna know how the button can take me to xml B when i run the app. any idea how?


| Oh, you'd want to switch views then. You can do this plenty of ways. If you structure your apps to have Activity, then you can do a `startActivity()`, and if it's Fragment you can do a `replace()` or `add()` using the FragmentManager.

XMLs by themselves can't move to each other (normally). Think of them as a photo of an IKEA furniture instead of the actual furniture themselves.


| ^

Total number of posts: 7, last modified on: Fri Jan 1 00:00:00 1547361677

This thread is permanently archived