zoukankan      html  css  js  c++  java
  • 安卓/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>

  • 相关阅读:
    AngularJS之ng-repeat指令
    AngularJS之ng-controller指令
    HttpClient通过Post上传文件
    response.setHeader()的用法
    response 设置响应头的常用几种方法
    理解HTTP session原理及应用
    mysqldump 利用rr隔离实现一致性备份
    Struts标签、Ognl表达式、el表达式、jstl标签库这四者之间的关系和各自作用
    AngularJS之ng-model指令
    AngularJS之ng-app指令
  • 原文地址:https://www.cnblogs.com/jiww/p/5572448.html
Copyright © 2011-2022 走看看