Android教程網
  1. 首頁
  2. Android 技術
  3. Android 手機
  4. Android 系統教程
  5. Android 游戲
 Android教程網 >> Android技術 >> 關於Android編程 >> Android Metro菜單

Android Metro菜單

編輯:關於Android編程

今天繼續說一下安卓的菜單,之前介紹了:。相信大家對於Metro風格並不陌生,下面就在安卓平台上實現一下這個效果,如圖:

                                              \\         

            實現思路:

                               利用動畫來實現移動的效果,使用的是TranslateAnimation這個方法。先看一下布局文件:

   activity_main.xml

 

[java]  <?xml version="1.0" encoding="utf-8"?> 
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
    android:background="#000000" 
    android:orientation="vertical" > 
 
    <!-- 第一層 --> 
 
    <LinearLayout 
        android:layout_width="fill_parent" 
        android:layout_height="fill_parent" 
        android:layout_weight="1" 
        android:orientation="horizontal" > 
 
        <!-- 第一層 橫向 --> 
 
 
        <!-- 第一層 橫向左 --> 
 
        <LinearLayout 
            android:layout_width="fill_parent" 
            android:layout_height="fill_parent" 
            android:layout_weight="1" 
            android:orientation="vertical" > 
 
            <LinearLayout 
                android:layout_width="fill_parent" 
                android:layout_height="fill_parent" 
                android:layout_weight="1" 
                android:orientation="horizontal" > 
 
                <!-- 1 --> 
 
                <RelativeLayout 
                    android:id="@+id/nine_one" 
                    android:layout_width="fill_parent" 
                    android:layout_height="fill_parent" 
                    android:layout_weight="1" 
                    android:background="#FFFF00" > 
                </RelativeLayout> 
                <!-- 2 --> 
 
                <RelativeLayout 
                    android:id="@+id/nine_two" 
                    android:layout_width="fill_parent" 
                    android:layout_height="fill_parent" 
                    android:layout_weight="1" 
                    android:background="#FFC0CB" > 
                </RelativeLayout> 
            </LinearLayout> 
            <!-- 4 --> 
 
            <RelativeLayout 
                android:id="@+id/nine_four" 
                android:layout_width="fill_parent" 
                android:layout_height="fill_parent" 
                android:layout_weight="1" 
                android:background="#EE30A7" > 
            </RelativeLayout> 
            <!-- 5 --> 
 
            <RelativeLayout 
                android:id="@+id/nine_five" 
                android:layout_width="fill_parent" 
                android:layout_height="fill_parent" 
                android:layout_weight="1" 
                android:background="#EE4000" > 
            </RelativeLayout> 
        </LinearLayout> 
        <!-- 第一層 橫向右 --> 
 
        <LinearLayout 
            android:layout_width="fill_parent" 
            android:layout_height="fill_parent" 
            android:layout_weight="2" 
            android:orientation="vertical" > 
 
            <!-- 3 --> 
 
            <RelativeLayout 
                android:id="@+id/nine_three" 
                android:layout_width="fill_parent" 
                android:layout_height="fill_parent" 
                android:layout_weight="2" 
                android:background="#FF8C69" > 
            </RelativeLayout> 
            <!-- 6 --> 
 
            <RelativeLayout 
                android:id="@+id/nine_six" 
                android:layout_width="fill_parent" 
                android:layout_height="fill_parent" 
                android:layout_weight="1" 
                android:background="#8C8C8C" > 
            </RelativeLayout> 
        </LinearLayout> 
    </LinearLayout> 
    <!-- 第二層 --> 
 
    <LinearLayout 
        android:layout_width="fill_parent" 
        android:layout_height="fill_parent" 
        android:layout_weight="3" 
        android:baselineAligned="false" 
        android:orientation="horizontal" > 
 
        <!-- 7 --> 
 
        <RelativeLayout 
            android:id="@+id/nine_seven" 
            android:layout_width="fill_parent" 
            android:layout_height="fill_parent" 
            android:layout_weight="1" 
            android:background="#8B3E2F" > 
        </RelativeLayout> 
        <!-- 8 --> 
        <!-- 9 --> 
 
        <RelativeLayout 
            android:id="@+id/nine_nine" 
            android:layout_width="fill_parent" 
            android:layout_height="fill_parent" 
            android:layout_weight="1" 
            android:background="#A52A2A" > 
        </RelativeLayout> 
    </LinearLayout> 
 
</LinearLayout> 

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:background="#000000"
    android:orientation="vertical" >

    <!-- 第一層 -->

    <LinearLayout
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_weight="1"
        android:orientation="horizontal" >

        <!-- 第一層 橫向 -->


        <!-- 第一層 橫向左 -->

        <LinearLayout
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:layout_weight="1"
            android:orientation="vertical" >

            <LinearLayout
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:layout_weight="1"
                android:orientation="horizontal" >

                <!-- 1 -->

                <RelativeLayout
                    android:id="@+id/nine_one"
                    android:layout_width="fill_parent"
                    android:layout_height="fill_parent"
                    android:layout_weight="1"
                    android:background="#FFFF00" >
                </RelativeLayout>
                <!-- 2 -->

                <RelativeLayout
                    android:id="@+id/nine_two"
                    android:layout_width="fill_parent"
                    android:layout_height="fill_parent"
                    android:layout_weight="1"
                    android:background="#FFC0CB" >
                </RelativeLayout>
            </LinearLayout>
            <!-- 4 -->

            <RelativeLayout
                android:id="@+id/nine_four"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:layout_weight="1"
                android:background="#EE30A7" >
            </RelativeLayout>
            <!-- 5 -->

            <RelativeLayout
                android:id="@+id/nine_five"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:layout_weight="1"
                android:background="#EE4000" >
            </RelativeLayout>
        </LinearLayout>
        <!-- 第一層 橫向右 -->

        <LinearLayout
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:layout_weight="2"
            android:orientation="vertical" >

            <!-- 3 -->

            <RelativeLayout
                android:id="@+id/nine_three"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:layout_weight="2"
                android:background="#FF8C69" >
            </RelativeLayout>
            <!-- 6 -->

            <RelativeLayout
                android:id="@+id/nine_six"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:layout_weight="1"
                android:background="#8C8C8C" >
            </RelativeLayout>
        </LinearLayout>
    </LinearLayout>
    <!-- 第二層 -->

    <LinearLayout
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_weight="3"
        android:baselineAligned="false"
        android:orientation="horizontal" >

        <!-- 7 -->

        <RelativeLayout
            android:id="@+id/nine_seven"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:layout_weight="1"
            android:background="#8B3E2F" >
        </RelativeLayout>
        <!-- 8 -->
        <!-- 9 -->

        <RelativeLayout
            android:id="@+id/nine_nine"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:layout_weight="1"
            android:background="#A52A2A" >
        </RelativeLayout>
    </LinearLayout>

</LinearLayout>    它的效果是這樣的:

                                             

有獎征集活動系列——【HTML5游戲編程之旅】        專訪賀炘:軟件測試應講究策略和方法      低價搶購開源中國論壇門票      “2013年度中國優秀開源項目征集”活動最後一天      體驗Intel感知技術

Android Metro菜單

分類: Android 2013-06-08 14:38 198人閱讀 評論(0) 收藏 舉報

    今天繼續說一下安卓的菜單,之前介紹了:。相信大家對於Metro風格並不陌生,下面就在安卓平台上實現一下這個效果,如圖:

                                                 \\

            實現思路:

                               利用動畫來實現移動的效果,使用的是TranslateAnimation這個方法。先看一下布局文件:

   activity_main.xml

 

[java] view plaincopyprint?
  1. <?xml version="1.0" encoding="utf-8"?>  
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"  
  3.     android:layout_width="fill_parent"  
  4.     android:layout_height="fill_parent"  
  5.     android:background="#000000"  
  6.     android:orientation="vertical" >  
  7.   
  8.     <!-- 第一層 -->  
  9.   
  10.     <LinearLayout  
  11.         android:layout_width="fill_parent"  
  12.         android:layout_height="fill_parent"  
  13.         android:layout_weight="1"  
  14.         android:orientation="horizontal" >  
  15.   
  16.         <!-- 第一層 橫向 -->  
  17.   
  18.   
  19.         <!-- 第一層 橫向左 -->  
  20.   
  21.         <LinearLayout  
  22.             android:layout_width="fill_parent"  
  23.             android:layout_height="fill_parent"  
  24.             android:layout_weight="1"  
  25.             android:orientation="vertical" >  
  26.   
  27.             <LinearLayout  
  28.                 android:layout_width="fill_parent"  
  29.                 android:layout_height="fill_parent"  
  30.                 android:layout_weight="1"  
  31.                 android:orientation="horizontal" >  
  32.   
  33.                 <!-- 1 -->  
  34.   
  35.                 <RelativeLayout  
  36.                     android:id="@+id/nine_one"  
  37.                     android:layout_width="fill_parent"  
  38.                     android:layout_height="fill_parent"  
  39.                     android:layout_weight="1"  
  40.                     android:background="#FFFF00" >  
  41.                 </RelativeLayout>  
  42.                 <!-- 2 -->  
  43.   
  44.                 <RelativeLayout  
  45.                     android:id="@+id/nine_two"  
  46.                     android:layout_width="fill_parent"  
  47.                     android:layout_height="fill_parent"  
  48.                     android:layout_weight="1"  
  49.                     android:background="#FFC0CB" >  
  50.                 </RelativeLayout>  
  51.             </LinearLayout>  
  52.             <!-- 4 -->  
  53.   
  54.             <RelativeLayout  
  55.                 android:id="@+id/nine_four"  
  56.                 android:layout_width="fill_parent"  
  57.                 android:layout_height="fill_parent"  
  58.                 android:layout_weight="1"  
  59.                 android:background="#EE30A7" >  
  60.             </RelativeLayout>  
  61.             <!-- 5 -->  
  62.   
  63.             <RelativeLayout  
  64.                 android:id="@+id/nine_five"  
  65.                 android:layout_width="fill_parent"  
  66.                 android:layout_height="fill_parent"  
  67.                 android:layout_weight="1"  
  68.                 android:background="#EE4000" >  
  69.             </RelativeLayout>  
  70.         </LinearLayout>  
  71.         <!-- 第一層 橫向右 -->  
  72.   
  73.         <LinearLayout  
  74.             android:layout_width="fill_parent"  
  75.             android:layout_height="fill_parent"  
  76.             android:layout_weight="2"  
  77.             android:orientation="vertical" >  
  78.   
  79.             <!-- 3 -->  
  80.   
  81.             <RelativeLayout  
  82.                 android:id="@+id/nine_three"  
  83.                 android:layout_width="fill_parent"  
  84.                 android:layout_height="fill_parent"  
  85.                 android:layout_weight="2"  
  86.                 android:background="#FF8C69" >  
  87.             </RelativeLayout>  
  88.             <!-- 6 -->  
  89.   
  90.             <RelativeLayout  
  91.                 android:id="@+id/nine_six"  
  92.                 android:layout_width="fill_parent"  
  93.                 android:layout_height="fill_parent"  
  94.                 android:layout_weight="1"  
  95.                 android:background="#8C8C8C" >  
  96.             </RelativeLayout>  
  97.         </LinearLayout>  
  98.     </LinearLayout>  
  99.     <!-- 第二層 -->  
  100.   
  101.     <LinearLayout  
  102.         android:layout_width="fill_parent"  
  103.         android:layout_height="fill_parent"  
  104.         android:layout_weight="3"  
  105.         android:baselineAligned="false"  
  106.         android:orientation="horizontal" >  
  107.   
  108.         <!-- 7 -->  
  109.   
  110.         <RelativeLayout  
  111.             android:id="@+id/nine_seven"  
  112.             android:layout_width="fill_parent"  
  113.             android:layout_height="fill_parent"  
  114.             android:layout_weight="1"  
  115.             android:background="#8B3E2F" >  
  116.         </RelativeLayout>  
  117.         <!-- 8 -->  
  118.         <!-- 9 -->  
  119.   
  120.         <RelativeLayout  
  121.             android:id="@+id/nine_nine"  
  122.             android:layout_width="fill_parent"  
  123.             android:layout_height="fill_parent"  
  124.             android:layout_weight="1"  
  125.             android:background="#A52A2A" >  
  126.         </RelativeLayout>  
  127.     </LinearLayout>  
  128.   
  129. </LinearLayout>  
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:background="#000000"
    android:orientation="vertical" >

    <!-- 第一層 -->

    <LinearLayout
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_weight="1"
        android:orientation="horizontal" >

        <!-- 第一層 橫向 -->


        <!-- 第一層 橫向左 -->

        <LinearLayout
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:layout_weight="1"
            android:orientation="vertical" >

            <LinearLayout
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:layout_weight="1"
                android:orientation="horizontal" >

                <!-- 1 -->

                <RelativeLayout
                    android:id="@+id/nine_one"
                    android:layout_width="fill_parent"
                    android:layout_height="fill_parent"
                    android:layout_weight="1"
                    android:background="#FFFF00" >
                </RelativeLayout>
                <!-- 2 -->

                <RelativeLayout
                    android:id="@+id/nine_two"
                    android:layout_width="fill_parent"
                    android:layout_height="fill_parent"
                    android:layout_weight="1"
                    android:background="#FFC0CB" >
                </RelativeLayout>
            </LinearLayout>
            <!-- 4 -->

            <RelativeLayout
                android:id="@+id/nine_four"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:layout_weight="1"
                android:background="#EE30A7" >
            </RelativeLayout>
            <!-- 5 -->

            <RelativeLayout
                android:id="@+id/nine_five"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:layout_weight="1"
                android:background="#EE4000" >
            </RelativeLayout>
        </LinearLayout>
        <!-- 第一層 橫向右 -->

        <LinearLayout
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:layout_weight="2"
            android:orientation="vertical" >

            <!-- 3 -->

            <RelativeLayout
                android:id="@+id/nine_three"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:layout_weight="2"
                android:background="#FF8C69" >
            </RelativeLayout>
            <!-- 6 -->

            <RelativeLayout
                android:id="@+id/nine_six"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:layout_weight="1"
                android:background="#8C8C8C" >
            </RelativeLayout>
        </LinearLayout>
    </LinearLayout>
    <!-- 第二層 -->

    <LinearLayout
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_weight="3"
        android:baselineAligned="false"
        android:orientation="horizontal" >

        <!-- 7 -->

        <RelativeLayout
            android:id="@+id/nine_seven"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:layout_weight="1"
            android:background="#8B3E2F" >
        </RelativeLayout>
        <!-- 8 -->
        <!-- 9 -->

        <RelativeLayout
            android:id="@+id/nine_nine"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:layout_weight="1"
            android:background="#A52A2A" >
        </RelativeLayout>
    </LinearLayout>

</LinearLayout>
    它的效果是這樣的:

 

                                                                                                     \

                                                       

           之後在MainActivity裡面對每一個Layout進行動畫移動就可以實現平移的效果了。

MainActivity.java:


[java]  import android.app.Activity; 
import android.content.Intent; 
import android.os.Bundle; 
import android.util.DisplayMetrics; 
import android.view.LayoutInflater; 
import android.view.Menu; 
import android.view.View; 
import android.view.View.OnClickListener; 
import android.view.Window; 
import android.view.animation.TranslateAnimation; 
import android.widget.RelativeLayout; 
import android.widget.Toast; 
 
/**
 * 
 */ 
public class MainActivity extends Activity { 
    private View viewNine; 
    private LayoutInflater inflater; 
    private RelativeLayout nine_one, nine_two, nine_three, nine_four, 
            nine_five, nine_six, nine_seven, nine_nine; 
    private TranslateAnimation myAnimation_Right, myAnimation_Bottom; 
    private TranslateAnimation myAnimation_Left, myAnimation_Top; 
 
    @Override 
    protected void onCreate(Bundle savedInstanceState) { 
        super.onCreate(savedInstanceState); 
        requestWindowFeature(Window.FEATURE_NO_TITLE); 
        inflater = LayoutInflater.from(this); 
        viewNine = inflater.inflate(R.layout.activity_main, null); 
 
        nine_one = (RelativeLayout) viewNine.findViewById(R.id.nine_one); 
        nine_two = (RelativeLayout) viewNine.findViewById(R.id.nine_two); 
        nine_three = (RelativeLayout) viewNine.findViewById(R.id.nine_three); 
        nine_four = (RelativeLayout) viewNine.findViewById(R.id.nine_four); 
        nine_five = (RelativeLayout) viewNine.findViewById(R.id.nine_five); 
        nine_six = (RelativeLayout) viewNine.findViewById(R.id.nine_six); 
        nine_seven = (RelativeLayout) viewNine.findViewById(R.id.nine_seven); 
        nine_nine = (RelativeLayout) viewNine.findViewById(R.id.nine_nine); 
        setContentView(viewNine); 
 
        nine_four.setOnClickListener(new OnClickListener() { 
 
            @Override 
            public void onClick(View v) { 
 
                Intent intent=new Intent(MainActivity.this,OneActivity.class); 
                startActivity(intent); 
            } 
        }); 
        nine_six.setOnClickListener(new OnClickListener() { 
 
            @Override 
            public void onClick(View v) { 
                 
            } 
        }); 
        myAnimation(); 
        addAnimation();  
    } 
 
    // 啟動動畫  
    private void addAnimation() { 
 
        nine_one.startAnimation(myAnimation_Right); 
        nine_two.startAnimation(myAnimation_Bottom); 
        nine_three.startAnimation(myAnimation_Left); 
        nine_four.startAnimation(myAnimation_Bottom); 
        nine_five.startAnimation(myAnimation_Left); 
        nine_six.startAnimation(myAnimation_Top); 
        nine_seven.startAnimation(myAnimation_Left); 
        nine_nine.startAnimation(myAnimation_Left); 
 
    } 
 
    // 動畫定義  
    private void myAnimation() { 
        DisplayMetrics displayMetrics = new DisplayMetrics(); 
        displayMetrics = this.getResources().getDisplayMetrics(); 
        // 獲得屏幕寬度  
        int screenWidth = displayMetrics.widthPixels; 
        // 獲得屏幕高度  
        int screenHeight = displayMetrics.heightPixels; 
         
        myAnimation_Right = new TranslateAnimation(screenWidth, 0, 0, 0); 
        myAnimation_Right.setDuration(1800); 
 
        myAnimation_Bottom = new TranslateAnimation(0, 0, screenHeight, 0); 
        myAnimation_Bottom.setDuration(1500); 
 
        myAnimation_Left = new TranslateAnimation(-screenWidth, 0, 0, 0); 
        myAnimation_Left.setDuration(2000); 
 
        myAnimation_Top = new TranslateAnimation(0, 0, -screenHeight, 0); 
        myAnimation_Top.setDuration(2500); 
    } 
 
    @Override 
    public boolean onCreateOptionsMenu(Menu menu) { 
        // Inflate the menu; this adds items to the action bar if it is present.  
        // getMenuInflater().inflate(R.menu.activity_main, menu);  
        return true; 
    } 
 

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.DisplayMetrics;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.view.animation.TranslateAnimation;
import android.widget.RelativeLayout;
import android.widget.Toast;

/**
 *
 */
public class MainActivity extends Activity {
 private View viewNine;
 private LayoutInflater inflater;
 private RelativeLayout nine_one, nine_two, nine_three, nine_four,
   nine_five, nine_six, nine_seven, nine_nine;
 private TranslateAnimation myAnimation_Right, myAnimation_Bottom;
 private TranslateAnimation myAnimation_Left, myAnimation_Top;

 @Override
 protected void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  requestWindowFeature(Window.FEATURE_NO_TITLE);
  inflater = LayoutInflater.from(this);
  viewNine = inflater.inflate(R.layout.activity_main, null);

  nine_one = (RelativeLayout) viewNine.findViewById(R.id.nine_one);
  nine_two = (RelativeLayout) viewNine.findViewById(R.id.nine_two);
  nine_three = (RelativeLayout) viewNine.findViewById(R.id.nine_three);
  nine_four = (RelativeLayout) viewNine.findViewById(R.id.nine_four);
  nine_five = (RelativeLayout) viewNine.findViewById(R.id.nine_five);
  nine_six = (RelativeLayout) viewNine.findViewById(R.id.nine_six);
  nine_seven = (RelativeLayout) viewNine.findViewById(R.id.nine_seven);
  nine_nine = (RelativeLayout) viewNine.findViewById(R.id.nine_nine);
  setContentView(viewNine);

  nine_four.setOnClickListener(new OnClickListener() {

   @Override
   public void onClick(View v) {

    Intent intent=new Intent(MainActivity.this,OneActivity.class);
    startActivity(intent);
   }
  });
  nine_six.setOnClickListener(new OnClickListener() {

   @Override
   public void onClick(View v) {
    
   }
  });
  myAnimation();
  addAnimation();
 }

 // 啟動動畫
 private void addAnimation() {

  nine_one.startAnimation(myAnimation_Right);
  nine_two.startAnimation(myAnimation_Bottom);
  nine_three.startAnimation(myAnimation_Left);
  nine_four.startAnimation(myAnimation_Bottom);
  nine_five.startAnimation(myAnimation_Left);
  nine_six.startAnimation(myAnimation_Top);
  nine_seven.startAnimation(myAnimation_Left);
  nine_nine.startAnimation(myAnimation_Left);

 }

 // 動畫定義
 private void myAnimation() {
  DisplayMetrics displayMetrics = new DisplayMetrics();
  displayMetrics = this.getResources().getDisplayMetrics();
  // 獲得屏幕寬度
  int screenWidth = displayMetrics.widthPixels;
  // 獲得屏幕高度
  int screenHeight = displayMetrics.heightPixels;
  
  myAnimation_Right = new TranslateAnimation(screenWidth, 0, 0, 0);
  myAnimation_Right.setDuration(1800);

  myAnimation_Bottom = new TranslateAnimation(0, 0, screenHeight, 0);
  myAnimation_Bottom.setDuration(1500);

  myAnimation_Left = new TranslateAnimation(-screenWidth, 0, 0, 0);
  myAnimation_Left.setDuration(2000);

  myAnimation_Top = new TranslateAnimation(0, 0, -screenHeight, 0);
  myAnimation_Top.setDuration(2500);
 }

 @Override
 public boolean onCreateOptionsMenu(Menu menu) {
  // Inflate the menu; this adds items to the action bar if it is present.
  // getMenuInflater().inflate(R.menu.activity_main, menu);
  return true;
 }

}

  1. 上一頁:
  2. 下一頁:
熱門文章
閱讀排行版
Copyright © Android教程網 All Rights Reserved