Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图从图库中隐藏我所有应用程序的图像。我所做的是使用“。” 在我的根文件夹中隐藏它,但之后我的画廊仍然显示我的隐藏,如屏幕截图所示。如何以编程方式删除它?有没有比隐藏文件夹更好的方法从图库中删除这些图像?
您应该在要隐藏的文件夹中放置一个名为“.nomedia”的文件。
如果您想以编程方式隐藏图像,最好的办法是加密或更改文件扩展名(例如,myPic.jpg -> myPic.data)
您可能还需要刷新您的画廊才能进行这些更改。