Post number #521022, ID: 3522c7
|
how do i link 2 xml files? srry new on android studio
Post number #521208, ID: 6270d4
|
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.
Post number #521232, ID: 0fadc0
|
>>521022 Define 'link'. Linking in *nix may not be the same as the 'link' you have in mind.
Post number #521239, ID: 762bfc
|
>>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?
Post number #521248, ID: 0fadc0
|
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.
Post number #521269, ID: 3aa7c8
|
^
Total number of posts: 7,
last modified on:
Fri Jan 1 00:00:00 1547361677
| how do i link 2 xml files?
srry new on android studio