jjmaceda / svg-android

Automatically exported from code.google.com/p/svg-android
0 stars 0 forks source link

Not works (blank screen) #59

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. put jar file into libs directory
2. put .java files into project folder
3. change namespace of jar files to namespace project
4. put android.svg into raw directory
5. run

What is the expected output? What do you see instead?
- You should see the picture but can not see anything

What version of the product are you using? On what operating system?
- Android studio 1.2.1.1 on Linux (Ubuntu 14.10)

Please provide any additional information below.
- No more information.

Original issue reported on code.google.com by yan.uniko.102@gmail.com on 17 May 2015 at 9:31

GoogleCodeExporter commented 8 years ago
Into MainActivity:

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    // Create a new ImageView
    ImageView imageView = new ImageView(this);
    // Set the background color to white
    imageView.setBackgroundColor(0xffcccccc);
    // Parse the SVG file from the resource
    SVG svg = SVGParser.getSVGFromResource(getResources(), R.raw.android);
    // Get a drawable from the parsed SVG and set it as the drawable for the ImageView
    imageView.setImageDrawable(svg.createPictureDrawable());
    // Set the ImageView as the content view for the Activity
    setContentView(imageView);
}

Original comment by yan.uniko.102@gmail.com on 17 May 2015 at 9:32

GoogleCodeExporter commented 8 years ago
just use SOFTWARE_LAYER_TYPE on Android >GINGERBREAD_MR1

Original comment by myspotin...@gmail.com on 18 May 2015 at 6:40

GoogleCodeExporter commented 8 years ago
I use Android 4.4, works only on <= 2.3.3?

Original comment by yan.uniko.102@gmail.com on 18 May 2015 at 6:43