• 安卓/res/menu/的使用


    <?xml version="1.0" encoding="utf-8"?>

    <menu xmlns:android="http://schemas.android.com/apk/res/android" >

      <item android:title="@string/color">

        <menu >

          <!-- 定义一组单选菜单项 -->

          <group android:checkableBehavior="single">

            <!-- 定义多个菜单项 -->

              <item

                android:id="@+id/red"

                android:title="@string/color_red"

                ></item>

              <item                    

                android:id="@+id/green"                    

                 android:title="@string/color_green"                    

                ></item>                

              <item                    

                android:id="@+id/blue"                    

                android:title="@string/color_blue"                    

                ></item>           

            </group>        

        </menu>    

      </item>    

       <item android:title="@string/width">        

        <menu >            

          <!-- 定义一组菜单项 -->            

          <group >                

            <!-- 定义三个菜单项 -->                

            <item                    

              android:id="@+id/width_1"                    

              android:title="@string/width_1"                    

                ></item>                

              <item                    

              android:id="@+id/width_3"                    

              android:title="@string/width_3"                    

               ></item>                

            <item                    

              android:id="@+id/width_5"                    

              android:title="@string/width_5"                    

              ></item>            

           </group>        

        </menu>    

      </item>    

      <item        

         android:id="@+id/blur"        

        android:title="@string/blur"        

         />    

      <item        

        android:id="@+id/emboss"        

         android:title="@string/emboss"        

        />

    </menu>

  • 相关阅读:
    Linux常用命令_(系统设置)
    Linux常用命令_(系统管理)
    Linux常用命令_(基本命令)
    敏捷测试的流程
    Web测试Selenium:如何选取元素
    Selenium学习
    Selenium介绍
    Selenium测试规划
    HTTPS传输协议原理
    常见的加密算法
  • 原文地址:https://www.cnblogs.com/jiww/p/5572448.html
Copyright © 2020-2023  润新知