Comments (11)
Thanks for the report.
Can you elaborate further on how you are creating the Activity and
SVGImageView? Are you using an XML layout, or creating the layout in code?
Original comment by [email protected]
on 24 Mar 2014 at 11:07
from androidsvg.
Hi,
I'm creating it in code. As part of a soft keyboard provider I'm
programmatically creating a layout, instantiating and adding a
SVGImageview and passing the layout back to the host.
So in that sense not really a traditional activity
Original comment by [email protected]
on 25 Mar 2014 at 2:00
from androidsvg.
In that case, wouldn't you be using the SVGImageView(Context context)
constructor? That one doesn't call init() so you shouldn't strike the issue
with R.styleable.SVGImageView.
Original comment by [email protected]
on 25 Mar 2014 at 2:03
from androidsvg.
Hmm ok got it... I'll do that instead.
Original comment by [email protected]
on 25 Mar 2014 at 2:37
from androidsvg.
I forgot to say, the other constructors are there for when Android instantiates
the View from a layout file. Thus you shouldn't need to use them.
Does the above solve your problem? If so, I'll close the bug.
Original comment by [email protected]
on 25 Mar 2014 at 2:43
from androidsvg.
Yes thanks for the help!
Original comment by [email protected]
on 25 Mar 2014 at 2:48
from androidsvg.
You're welcome.
Marking this bug "Invalid".
Original comment by [email protected]
on 25 Mar 2014 at 2:50
- Changed state: Invalid
from androidsvg.
I am getting this exact problem when using SVGImageView in and XML layout. I
checked out your code and imported it into my project as an Android library.
Original comment by [email protected]
on 24 Oct 2014 at 4:00
from androidsvg.
Oh, and this is with version 1.2.1 on Android 4.2.2
Original comment by [email protected]
on 24 Oct 2014 at 4:11
from androidsvg.
Have you marked the AndroidSVG project you created as a library?
Propertires->Android, then check/tick "Is Library"
Original comment by [email protected]
on 24 Oct 2014 at 4:21
from androidsvg.
I posted the solution to my problem in
http://code.google.com/p/androidsvg/issues/detail?id=34
Original comment by [email protected]
on 26 Oct 2014 at 7:15
from androidsvg.
Related Issues (20)
- SVGAndroidRenderer.processMaskBitmaps is very slow HOT 1
- SVGParser is not thread-safe [with fix] (SVG parse error: Invalid colour keyword: white) HOT 2
- Feature request: replace text HOT 6
- FAQ promotes extremely bad backward-compatibility practice HOT 6
- Image references missing SVG support. HOT 3
- Canvas changed after renderToCanvas HOT 1
- Position of Rectf ignored when renderToCanvas HOT 1
- Support for hardware acceleration
- Android version support HOT 1
- Android version support HOT 1
- Pattern fills are rendered with visible grid HOT 4
- Provide copy constructor or allow rendering to multiple viewBox at once HOT 3
- migrate the repository HOT 3
- Move project to Github HOT 1
- NullPointerException in 1.2.2-beta1 when parsing SVG document HOT 4
- SVGImageView crashes on Android 5.0 and higher HOT 5
- Proguard breaks reflective CSS selectors HOT 1
- java.lang.ArrayIndexOutOfBoundsException: length=0; index=-2 in SVGAndroidRenderer.arcTo(SourceFile:2572) HOT 1
- Incorrect rendering of SVG image HOT 5
- Unable to execute dex: Multiple dex files define HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from androidsvg.