其他分享
首页 > 其他分享> > 制作矢量图,spinner标签,incloud标签

制作矢量图,spinner标签,incloud标签

作者:互联网

.svg 导入到drawable,新建vector asset。

<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="20dp"
    android:height="20dp"
    android:viewportWidth="1024"
    android:viewportHeight="1024">
  <!--    成功解决图标过大的问题-->
<!--  解锁新技能 制作矢量图svg-->
  <path
      android:pathData="M166.99,690.6m109.45,-109.45l304.71,-304.71q109.45,-109.45 218.89,0l0,0q109.45,109.45 0,218.89l-304.71,304.71q-109.45,109.45 -218.89,0l0,0q-109.45,-109.45 0,-218.89Z"
      android:fillColor="#E9F1FF"/>
  <path
      android:pathData="M331,949a256,256 0,0 1,-181 -437l121.71,-121.75A32,32 0,1 1,317 435.51L195.22,557.25a192,192 0,0 0,0 271.53c74.86,74.86 196.66,74.86 271.53,0L588.49,707a32,32 0,0 1,45.26 45.26L512,874a254.33,254.33 0,0 1,-181 75zM729.66,643.12A32,32 0,0 1,707 588.5l121.78,-121.75a192,192 0,1 0,-271.52 -271.53L435.5,317a32,32 0,1 1,-45.25 -45.26L512,150a256,256 0,0 1,362 362L752.29,633.75a31.9,31.9 0,0 1,-22.63 9.37z"
      android:fillColor="#2C5CCB"/>
  <path
      android:pathData="M376.24,679.76a32,32 0,0 1,-22.63 -54.62l271.53,-271.53a32,32 0,0 1,45.25 45.25L398.86,670.39a31.89,31.89 0,0 1,-22.62 9.37z"
      android:fillColor="#2C5CCB"/>
</vector>

制作spinner

<!--    解锁新标签<Spinner>用于制作,选择窗
         spinnerMode用于确定弹出类型-->
    <Spinner
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:entries="@array/edu"
        android:spinnerMode="dialog"/>

位置在String;

  <array name="edu">
        <item>请选择最高学历</item>
        <item>本科</item>
        <item>专科</item>
        <item>中专</item>
        <item>高中</item>
        <item>中学</item>
    </array>

制作任务栏

  <include layout="@layout/header"/>

标签:导入到,矢量图,标签,spinnerMode,spinner,制作
来源: https://blog.csdn.net/weixin_56549515/article/details/120807286