i need an example of launch_background.xml file in android folder that contains and image and (text)...basically my main problem is that i can't place text in this splash screen..so to be specific...i want to achieve splash screen that contains and image and under it there is some text...
i achieved the image preview with bitmap tag inside of an item tag
but no Textview tag can be placed inside layer-list tag :( (not showing)
i know that i can make the text as an svg file and place it in item tag..but i want to do it with TextView tag...so i can control it
any help would be much appreciated...thanks in advance.
Ok to give a solution to my own problem... at first I didn't like to place my text inside a separate .png file for the purpose of reducing the apk file size. I placed it inside an svg file for the size purpose but I couldn't place that text in svg beneath the centered image... unless by hardcoding values with the attributes: "android:gravity=center" "android:top=200dp" ...and I don't feel comfortable with hardcoded values... so I searched and found this package "flutter_native_splash" Flutter Native Splash.
Placed the desired image and beneath it the desired text and the package generated the appropriate image densities for the various screens containing the image and text...
Related
I'm experimenting with .net maui. i'm using vs 17.3 preview 4. I'd like to change the spash screen. i would think that i would change the content of the spash.svg file. I've changed the content of the file. I've left the property of the file as mauispashscreen. I've created a simple png file and have converted it with an online svg converter. the file is viewable with msft edge browser. All i get is a purple screen without the text changes. I'm just trying to do something simple. what should i look for in the setup of the file or the project? any suggestions are appreciated.
Wally
At first, please double click your project and check if there is the code in your projectname.csproj file or not. It seems when you delete the splash.svg file and add a new one in the resources, the code will be auto deleted.
<MauiSplashScreen Include="Resources\Splash\splash.svg" Color="#512BD4" />
And then, I have tried to convert a png to svg, but the picture can't show perfectly as the splash. So I download a svg from the svg picture website and it can work well.
It seems maui can't make all the svg show as the splash screen perfectly. You can also download one instead of converting the png.
I have an SVG type file. I want to show it in my Flutter app using flutter_svg package. But when I imported it, the color turns into black.
According to this answer, I 'm using this software to clean it.
For some files, it's worked really well. But, I have an issue with this file.
When I'm trying to show it in my app, the stroke width decreased and my SVG becomes really thin.
This is what I want:
But, this is what I've got:
Does anyone have an idea how to solve this?
ATTACHMENT: This is the SVG file link
You need to create a path from the outline stroke line.
this is your svg: https://gist.github.com/kherel/02f288ecd73f0c29a04b1f2d9c5db3e3
I've used figma
Im using fancybox popup for images. I want to check if a loaded image is svg then assign custome width height for overwirte actual size of a image.pls advice
Simply use this demo https://codepen.io/fancyapps/pen/rYQogO?editors=1010 (from the docs) as an example. This is how you can check current source - current.src
Imagine a pdf with text and a application that test images over the text.
In every test pdf is saved and the next test using same pdf.
The first time you add image under text you can see the results, next time you will try you add image under is not appear because first image cover it.
So...exists something GetBetween or can i choose the layer that i want?
If i use GetUnderContent only first image appears and all others are hide.
If i use GetOverContent then the text is covered by image.
Hi I am working on e-book application where the pages of the book are displayed as SVG files.as a part of my application functionality i should able to select text from the SVG files which are rendered as images on web view.can anbody suggest me a way to do this.Thanks in advance.
How do you display the SVG? I'd think you do that in WebView. In that case you'd have to provide the text as a separate layer using HTML elements as an "overlay" over the displayed SVG.
I don't think iOS/WebView lets you select text from a SVG through WebView.
but why do you say the svg is rendered as "image"?
if you load te .svg file in a UIWebView directly or via an HTML file which load the svg...
it should be able to load the "normal" menu with "copy", "select"...
if you need only the "copy" menuItem
just add this:
-(void)copy:(id)sender{
NSLog(#"COPY!!");
[super copy:sender];
}
in the UIViewController of your UIWebView.
It works for me for all the html pages and for a .svg files with some text inside it
(i mean that the text to copy is in "myFile.svg")