All the tutorials say that the images should be added to the Resources/drawable folder in case of Xamarin Android application. And that works absolutely fine. My question - is it possible to create a custom folder inside Resources to better organize the images? It's not very good to have them all in root of drawable folder.
The image is not displayed. When it is straight in the root of drawable, it works fine. Is it possible to have a nonflat image folder structure?
No, drawable can't have subdirectories. you can't put it.
You Can Add Folder name raw and you will able to access it from Resource.Raw
Related
I have some images stores in the resources folder of a project as shown. I am able to find the images through My.Resorces.arc1/arc2/arc3 but i am not able to locate the image called directions2 stored at the same resources folder.
Can anyone please help me on this
1.Check your image file have proper file extensions [.jpg,.png etc]
2.Rebuild your project and try again.
The path is shown in Resource file. See the
I have a project using react-native. When ready to upgrade the js bundle file, I come across a problem: In this upgrading, I need add some image resouce, so I have to copy the dest file to the src/main/res/ folder and regenerate the project. It's seem not so 'dynamically'.The second way is encoding the image resource using base64; it's work but ugly,especially there are lots of images. Certainly I could use network Images as react-native document describes, but it's 'expensively'. So is another way that loading new static images and needn't regenerate the project?
<Image source={require('./intro.png')} />
You can require images just like you require js files.
In the above example intro.png would be in the same folder as the js file.
Hope that helps
I tried everything and my android app icon doesn't work, can anybody help me?
y tried create a new project and paste just the app folder and it still the same.
I'm using the 3.5.1 Titanium SDK.
thanks for the help!
Agree with #Ashish. You need to put the icons in the
platform / android / res
folder. Under this folder I have a number of folders with an image named "appicon.png" in each of them:
drawable-hdpi
drawable-ldpi
drawable-mdpi
drawable-xhdpi
drawable-xxhdpi
drawable-xxxhdpi
I use ticons by Fokke Zandbergen to generate the icons. Works like a charm :-)
On that page you can also find a link to a description about Androids 9-patch images (that you will need for different background images to scale correctly). One quick note on the splash and background images. I have put them in
app / assets / android / images / res-long-port-hdpi (and other resolutions)
And that also works well.
/John
Try to add the respective resolution appcions to the below folder structure and clean and build.
Platform ---> android ---> res
In the res folder there are resolution specific folders where you can place your appicons.
did you every try this :
open you object using titanium studio
open tiapp.xml and chose Overview tag
click Browse and choose a picture in Application icon option
build you project
While you add the appicon.png in the image folders, make sure that you are also adding in the folder:
app -> platform -> android -> res -> (hdpi folder)
Otherwise, it shows the default titanium app-icon.
I'm new to resources with coding. I just want to create a standalone exe that has a couple of png images bundled inside of it.
Is there a way to do this? I have tried setting the build action of the images to embedded resource but when the program is compiled there seems to be no exe at all. I'm sure there's a simple way that this is done.
Use My.Resources. Don't add the image files to the project in the Solution Explorer yourself. Open the project properties and add the files on the Resources page. If you add Image1.png and Image2.png then you can access them in code using My.Resources.Image1 and My.Resources.Image2. You don't have to do anything extra.
I'd like to create a folder/file (similar to how the .app files/folders work) so that I can have a directory within my file. But still show the document icon that I setup via the xcode project interface under the info panel.
No idea how to go about this, any ideas?
Solution:
So basically, you just hit an option in Xcode under the document saying that you do want it to be a bundle. Then you just create a folder with the extension you have in your document (info.plist). Thanks y'all.
I think what you are looking for are Packages.
See About Bundles and Document Packages for more details.