All Questions
800
questions
0
votes
1
answer
35
views
SVG pixelized edges in Android Jetpack Compose
I converted the logo from SVG to XML in Android Studio. One change I had to make was replacing 'Fill' with '#pattern' with 'FillColor' because #pattern is not supported in Android. I don't think that ...
0
votes
0
answers
20
views
How can I use an SVG vector drawable (XML) as an Icon for NotificationCompat.Builder().setSmallIcon(Icon icon)
I have an SVG vector drawable button.xml that I want to use as an Icon for a notification builder in either of the setSmallIcons ..
new NotificationCompat.Builder(this, "arbitrary")
...
0
votes
1
answer
81
views
How to see / view the Android vector drawable XML?
How can I visually see a picture from an Android vector drawable XML?
I disassembled the Apk-file, and now I want to replace the icons, but how can I visually see them in the code. Is there a program ...
0
votes
0
answers
54
views
Extracting path data from an ImageBitmap in Kotlin/Jetpack Compose
I am working on extracting data from a user-drawn signature in my Jetpack Compose Android App. I need to convert a user drawn signature into a format that can be used within an SVG's <path> tag, ...
1
vote
0
answers
35
views
Fetching SVG from Flask
I am creating an Android app in which an SVG image is fetched from a Flask server. This is the Kotlin-Jetpack Compose code:
@Composable
fun SvgUrlFetch() {
val imageUrl by remember { mutableStateOf(&...
0
votes
0
answers
16
views
Android doesn't respect the android:fillColor in SVG path - How can we workaround on this limitation?
By using the following XML
layout.xml with red tint color
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/...
-1
votes
2
answers
441
views
Resize an Icon in Jetpack Compose
I'm attempting to render an SVG icon that is stored on the device, which I have successfully accomplished. However, I'm encountering a problem with resizing the icon, and the .size() modifier doesn't ...
1
vote
0
answers
181
views
Glide not showing SVG image
I'm using Glide to show SVG flag inside an ImageView. When i use PNG url it works perfectly, instead when i use SVG url it doesn't work.
private void loadImage(String country, ImageView flag) {
...
0
votes
2
answers
120
views
Dividing an SVG Circle into Three Equal Parts with Responsive Design in Ionic Mobile App
I'm working on an Ionic mobile application, and I need to divide an SVG circle into three equal parts with a focus on responsive design. I've experimented with the element, but I'm facing challenges ...
0
votes
0
answers
34
views
center svg image android programmatically composable
I have svg image I want to make it center of screen. I am using Android composable.
My code is
@Composable
fun SvgDrawing() {
val pathData = "M275 462q140 -29 316 -14q49 4 54 35q0 20 -39 92l-...
1
vote
0
answers
193
views
How can I dynamically edit the fill of a path in an SVG at runtime in Android Kotlin Jetpack Compose?
I am attempting to display a world map SVG file where I can dynamically edit the fill color of each country. Each country has a path in the SVG with an associated id that is the country's 2 letter ...
0
votes
1
answer
40
views
SVG file is not displayed in android flutter app
This is my pubspec.yaml file code:
flutter:
assets:
- assets/logo.png
- assets/welcome_bg.jpg
- assets/logo-nbg.png
- assets/create_screen_icon.svg
- assets/upload_image.svg
...
0
votes
0
answers
24
views
Create a link in SVG shown in Android Studio App
I show full screen SVGs in an WebView. Now I want to add a weblink in parts of the SVG so the user can tap on the content and the system browser opens and show the URL
with a browser on my PC it works ...
0
votes
1
answer
108
views
Attribute "data-name" is not allowed here
I am working in Android Studio and have +100 errors in my different svg files.
Android Studio suggests to remove all of the "data-name" attributes. I have tried to "sync project with ...
0
votes
0
answers
53
views
Font for text inside SVG in jetpack compose
I want to show svg from remote server. It has text tags in it. When I load the svg into app its font differs.
I tried changed url of font that loads from app’s res folder. Make it load from another ...