Problem in edittext content
I'm creating a dynamic tabs. In each newly created tabs , i'm opening a file. I 开发者_开发知识库want to get the filename or file descriptor of the selected tab to do file operations on that corresponding file. For example If i want to delete the file, the file and the corresponding tab should be closed. Please give suggestions...........
Thanks in advance.
You can set for each of your tab when you add dynamicall a Tag, which can be your filename or some unique identifier, or even a custom class that holds more data.
Lookup setCurrentTabByTag
精彩评论