Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d1c89b1d authored by ztenghui's avatar ztenghui Committed by Tenghui Zhu
Browse files

Add stroke related test to the VectorDrawableTest

Change-Id: I7dceebd58d9365cf8e2a31dfeec418aa439bacb6
parent 52e5701e
Loading
Loading
Loading
Loading
+45 −0
Original line number Diff line number Diff line
<!--
 Copyright (C) 2014 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:height="64dp"
    android:viewportHeight="200"
    android:viewportWidth="200"
    android:width="64dp" >

    <group>
        <path
            android:name="background1"
            android:fillColor="#FF000000"
            android:pathData="M 0,0 l 100,0 l 0, 100 l -100, 0 z" />
        <path
            android:name="background2"
            android:fillColor="#FF000000"
            android:pathData="M 100,100 l 100,0 l 0, 100 l -100, 0 z" />
    </group>
    <group
        android:translateX="50"
        android:translateY="50" >
        <path
            android:name="twoLines"
            android:pathData="M 100,20 l 0 80 l -30 -80"
            android:strokeColor="#FF00FF00"
            android:strokeLineCap="butt"
            android:strokeLineJoin="miter"
            android:strokeMiterLimit="5"
            android:strokeWidth="20" />
    </group>

</vector>
 No newline at end of file
+45 −0
Original line number Diff line number Diff line
<!--
 Copyright (C) 2014 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:height="64dp"
    android:viewportHeight="200"
    android:viewportWidth="200"
    android:width="64dp" >

    <group>
        <path
            android:name="background1"
            android:fillColor="#FF000000"
            android:pathData="M 0,0 l 100,0 l 0, 100 l -100, 0 z" />
        <path
            android:name="background2"
            android:fillColor="#FF000000"
            android:pathData="M 100,100 l 100,0 l 0, 100 l -100, 0 z" />
    </group>
    <group
        android:translateX="50"
        android:translateY="50" >
        <path
            android:name="twoLines"
            android:pathData="M 100,20 l 0 80 l -30 -80"
            android:strokeColor="#FF00FF00"
            android:strokeLineCap="round"
            android:strokeLineJoin="round"
            android:strokeMiterLimit="10"
            android:strokeWidth="20" />
    </group>

</vector>
 No newline at end of file
+45 −0
Original line number Diff line number Diff line
<!--
 Copyright (C) 2014 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:height="64dp"
    android:viewportHeight="200"
    android:viewportWidth="200"
    android:width="64dp" >

    <group>
        <path
            android:name="background1"
            android:fillColor="#FF000000"
            android:pathData="M 0,0 l 100,0 l 0, 100 l -100, 0 z" />
        <path
            android:name="background2"
            android:fillColor="#FF000000"
            android:pathData="M 100,100 l 100,0 l 0, 100 l -100, 0 z" />
    </group>
    <group
        android:translateX="50"
        android:translateY="50" >
        <path
            android:name="twoLines"
            android:pathData="M 100,20 l 0 80 l -30 -80"
            android:strokeColor="#FF00FF00"
            android:strokeLineCap="square"
            android:strokeLineJoin="bevel"
            android:strokeMiterLimit="10"
            android:strokeWidth="20" />
    </group>

</vector>
 No newline at end of file
+3 −0
Original line number Diff line number Diff line
@@ -53,6 +53,9 @@ public class VectorDrawablePerformance extends Activity {
            R.drawable.vector_drawable23,
            R.drawable.vector_drawable24,
            R.drawable.vector_drawable25,
            R.drawable.vector_drawable26,
            R.drawable.vector_drawable27,
            R.drawable.vector_drawable28,
    };

    @Override