Android ListView 作为 DirectoryListener 和 EditText(多行)作为 TextEditor
我正在开发一个带有 NDK 接口/库的 Android 应用程序。 目前,我设计了所有 Java 类/活动和方法,这些类/活动和方法将进一步调用本机 C++ 函数。
在继续之前,我想问你一个问题:
我设计了一个 TextEditor 活动来创建新的 TXT 文件。 第一:我想将文件存储在存储和应用程序文件夹中,是否可行? 第二:我可以在哪个目录中找到这些文件?
我设计了一个 DirectoryList 活动,其中包括一个 ListView。 第一:我想在列表中显示以前保存的TXT文件,通过在正确的文件夹中搜索并仅执行我需要的文件(带有前缀“a_”),该怎么做? 第二:我可以在列表项中添加“双击”功能,以便我可以重新打开文本编辑器来修改文件吗?
先感谢您。 亚历克斯
I'm developing an android application with NDK interface/library.
At the moment I designed all the Java classes/activities and methods that further will call the native c++ functions.
Before going on, I'd like to ask you a question:
I designed a TextEditor activity for creating a new TXT file.
First: I want to store the file on storage and app folder, is it feasible?
Second: Which would be the directory where I can find the files?
I designed a DirectoryList activity, which includes a ListView.
First: I want to show the previously saved TXT files in the list, by searching in the right folder and carrying out only the files I need (with a prefix "a_"), how can it be done?
Second: Can I add a "double click" feature to the list items, so that I can re-open the TextEditor for modifying the files?
Thank you in advance.
Alex
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
解决如下:
Solved as following: