How can I create app.tss in Titanium? I'm following this link http://www.smashingmagazine.com/2014/03/10/4-ways-build-mobile-application-part4-appcelerator-titanium/
I think that app.tss is not an alloy controller so I can't just right click on the app in Project Explorer and create an alloy contoller.
Should I just right click and create a new file and label it app.tss. Would that have a negative effect on entire project?
I think that app.tss is not an alloy controller so I can't just right click on the app in Project Explorer and create an alloy contoller.
Yes, you are right it is not an Alloy Controller. Files with an extension TSS are Titanium Style Sheets. app.tss contains styles accessible globally and it is in a folder called app/styles. You should have it in your project by default.
If you don't then just do right click on the folder styles -> New -> Alloy Style
Related
I am trying build a custom sharesheet in react-native like how spotify or locket does it (I assume this is a custom sharesheet). I was wondering how you can build a custom one where I only show iMessage and instagram and change the styles. I noticed the react-native-share-sheet and the Share from react native doesn't let you customize it so I was wondering if this is possible to build in react-native?
Also building the "share sheet" from scratch would not work since there is no way to pop up the iMessage. (Linking("sms://) opens a new app)
Exmaple for spotify:
Example for locket:
Any help would be appreciated.
Thanks!
I want to change my default icon's app to another one and generate my standalone app (with expobuild:android)
But when I add another image(capture) in my assets folder and replace it in app.js,it gives me an error:
{
"expo": {
"icon": "./assets/capture.png",
}}
I tried many time with and without default icon (I have error just with new image) so i'm sure that error came from the change of icons.
Do you have any idea ;
if you are using a CRNA solution, there is an easy way you can do it. Just go into the /assets folder and just paste there your new icon, then rename it to icon.png, just make sure you already removed the default one. It also works with the splash screen.
But if you created your project with create-react-native-app, you need to do it separatly in Android studio for Android and Xcode for iOS. See more with this link wich helped me too.
https://aboutreact.com/react-native-change-app-icon/
Hope it's gonna help ... Regards
I used this this repo and cloned it, then run one line command to resize the png to all the different formats.
bash resize.sh my-cool-new-app-logo.png
Then drag the folder over and merge/replace icons.
quick insight
I'm developing a plugin that gives the ability to version control and other stuff, for viewing the files added to my vcs I need to show them with a different overlay icon. Using the api how to change file/folder icons?
You need to implement the com.intellij.ide.FileIconProvider interface and register your implementation using the <fileIconProvider> extension point.
I created a new project with xcode 6.0.1 using swift and set deployment target to iOS 7.0.
The screen size is wrong for iPhone 5s in iOS7 - it shouldn't have any black spaces.
In new Xcode 6 projects, you don't have these Default-568h#2x.png images.
Do the next steps to fix it:
1) Open your Images.xcassets and look for LaunchImage. It is probably missing.
2) In this case, click on + (located at the bottom) and click on New Launch Image.
3) Select your project target and open Build Settings tab. Look for "Asset Catalog Compiler - Options" section and then "Asset Catalog Launch Image Set Name", if it is empty type LaunchImage.
Voila!
Try using Default-568h#2x.png image as splash.
Project Properties -> General -> App Icons and Launch Images -> Click (Use Asset Catalog)
Pop-up -> Click (Migrate)
Delete (Launch Screen File)
Finish!!!
In Xcode 7, make sure in addition to what's been said about adding a LaunchImage you also add this entry in the plist file:
I imagine this won't help much, but I have exactly the same problem and found this link. Maybe it helps you, I coulnt find the answer:
Xcode 6 Storyboard the wrong size?
put Default-568h#2x to your app bundle with dimension 640x1136. You can assign launch images using xcode catalog assets alternatively.
Under project properties, ensure you are using the "asset catalog" for launch images. I found my project was using a custom location by default. By switching over to "Use Asset Catalog", the top/bottom black margin went away.
I was facing this problem in XCode8. I figured it out that Launch Screen File was not set.
Go to :
project Properties -> General -> App Icons and Launch Images
Click on drop down and select
Main.storyboard.
This issue is solved when you add the Splash screens for Defualt#2x.png and Defualt-568h#2x.png
We've used an existing example application to start a proof of concept with Worklight, we've made a lot of changes to the original code and we would like to change the application name and customize its icons and splash image. We've managed to make the aforementioned changes (Name, icons and splash) inside xCode, however this doesn't serve the future purpose of an automated build from Worklight to ipa.
Could you please let us know what steps are involved to:
How to rename an existing application in Worklight (changing only the application-descriptor.xml doesn't change the generated binaries though).
How to change icons and splash screens for app.
When you create a new application for a Worklight project, the application name is used throughout several files, so you will need to find all occurrences of the given application name and change them. These are:
main HTML filename
main CSS filename
main JavaScript filename
inside main HTML filename (references to the main CSS and JavaScript files, title)
Inside application-descriptor.xml (the elements: displayName, description, mainFile)
Note, the filenames should not matter to you. In the future they will, hopefully, always get a generic name (like index.html or main.css. ...).
The app icon title in the device is controlled by the displayName element in application-descriptor.xml.
As for the icons and splash images, you can simply place thme (regular icon, retina icon, splash image, retina splash image) with the appropriate filenames in the "nativeResources" folder (sits next to the "native" folder) and they will be copied during build time to the native project (which you will eventually open in Xcode).
You can find out the correct filenames inside the native >> Resources folder.
quote:
however this doesn't serve the future purpose of an automated build
from Worklight to ipa.
Worklight will, of course, never create an .ipa file for you... that's the role of Xcode.