0

I now want to modify one of my XML files so that it has two distinct areas. Sample Image (Sparating the 9->5 portion of the face, from the 5->9 portion of the face ). My idea is to use two different colors to differentiate the area. How do i make that happen?

What I am having right now:

<vector
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:height="200dp"
    android:width="200dp"
    android:viewportHeight="100"
    android:viewportWidth="100" >
  <group
      android:name="minutes"
      android:pivotX="50"
      android:pivotY="50"
      android:rotation="0">
    <path
        android:strokeColor="@android:color/holo_green_dark"
        android:strokeWidth="@integer/stroke_width"
        android:strokeLineCap="round"
        android:pathData="M 50,50 L 50,12"/>
  </group>
  <group
      android:name="hours"
      android:pivotX="50"
      android:pivotY="50"
      android:rotation="0">
    <path
        android:strokeColor="@android:color/holo_blue_dark"
        android:strokeWidth="@integer/stroke_width"
        android:strokeLineCap="round"
        android:pathData="M 50,50 L 24,50"/>
  </group>
  <path
      android:pathData="@string/path_circle"/>
</vector>
lew
  • 52
  • 10
  • Check this link [here](https://stackoverflow.com/questions/13929877/how-to-make-gradient-background-in-android) this might solve your problem. Thank you. – Lalrem Lian B Tlung Mar 27 '22 at 04:08

0 Answers0