Привет, я занимаюсь разработкой приложения, в котором я использую векторную графику для создания пользовательских фигур, однако моя проблема в том, что первая фигура не создается, а вторая создается должным образом, но не получает полную ширину.
Вот мой текущий вывод
и вот что я пытаюсь достичь
Пожалуйста, любая помощь будет оценена
main.xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
tools:context="com.ct.listrtrial.fragments.ProfileFragment">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:layout_width="match_parent"
android:layout_height="250dp"
android:src="@drawable/profile_first_image"/>
<ImageView
android:layout_width="match_parent"
android:layout_height="170dp"
android:src="@drawable/profile_second_image"/>
<de.hdodenhof.circleimageview.CircleImageView
android:layout_width="146dp"
android:layout_height="146dp"
android:src="@drawable/ellipse2"
android:layout_gravity="center"
/>
<ImageView
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_gravity="right"
android:src="@drawable/pencil"/>
</FrameLayout>
</LinearLayout>
и мои два векторных рисунка
profile_first_image.xml
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="248dp"
android:height="148dp"
android:viewportHeight="12"
android:viewportWidth="12">
<path
android:fillColor="#f1c40f"
android:pathData="M 0,0 L 0,11 C 1,12 5,12 8,12 C 12,12 12,11 12,11 L 12,0 0,0"
android:strokeWidth="0.1"/>
</vector>
profile_second_image.xml
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="#FFFFFF"/>
<size
android:width="30dp"
android:height="15dp"/>
<corners
android:bottomLeftRadius="20dp"
android:bottomRightRadius="20dp"/>
</shape>