<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    posts - 93,  comments - 2,  trackbacks - 0
    1.建立FrameLayout,因為該布局方式只顯示下層內(nèi)容,如:
     1 <FrameLayout
     2     xmlns:android="http://schemas.android.com/apk/res/android"
     3     android:layout_width="match_parent"
     4     android:layout_height="fill_parent">
     5     <LinearLayout
     6         android:layout_width="fill_parent"
     7         android:layout_height="fill_parent"
     8         android:orientation="vertical" 
     9         android:id="@+id/main"
    10         android:background="@color/white"
    11         >
    12         <LinearLayout 
    13             android:layout_width="fill_parent"
    14             android:layout_height="wrap_content"
    15             >
    16             <GridView
    17                 android:id="@+id/gridview_send"
    18                 android:layout_width="fill_parent"
    19                 android:layout_height="fill_parent"
    20                 android:layout_marginLeft="20dp"
    21                 android:layout_marginTop="40dp"
    22                 android:listSelector="@color/bule_overlay"
    23                 android:numColumns="4" >
    24                    </GridView>
    25         </LinearLayout>
    26         <ImageView 
    27             android:layout_width="fill_parent"
    28             android:layout_height="wrap_content"
    29             android:src="@drawable/service_public_diver"
    30             android:layout_marginLeft="20dp"
    31             android:layout_marginRight="20dp"
    32             android:layout_marginTop="40px"
    33             /> 
    34          <EditText
    35             android:id="@+id/issueContent"
    36             android:layout_width="fill_parent"
    37             android:layout_height="wrap_content"
    38             android:minLines="4"
    39             android:gravity="top"
    40             android:layout_marginLeft="20dp"
    41             android:layout_marginRight="20dp"
    42             android:layout_marginTop="30px"
    43             android:textColor="#e3e3e3"
    44             android:hint="請輸入內(nèi)容"
    45             android:background="@null"
    46             android:textSize="46px"/>
    47          <ImageView 
    48             android:layout_width="fill_parent"
    49             android:layout_height="wrap_content"
    50             android:src="@drawable/service_public_diver"
    51             android:layout_marginLeft="20dp"
    52             android:layout_marginRight="20dp"
    53             android:layout_marginTop="40dp"
    54             /> 
    55     </LinearLayout>
    56     <LinearLayout 
    57         android:id="@+id/layerMask"
    58         android:layout_width="fill_parent"
    59         android:layout_height="fill_parent"
    60         android:orientation="vertical" 
    61         android:background="@drawable/common_title_back"
    62         android:visibility="gone">
    63      </LinearLayout>
    64 </FrameLayout>

    2.在layerMasK中添加view內(nèi)容
        private LinearLayout layerMask;//遮罩層
      layerMask = (LinearLayout)contentView.findViewById(R.id.layerMask);
        addInnerLayout(R.layout.fragment_takephotoathand_layer,layerMask);
        //設(shè)置點擊不退出遮罩層
      layerMask.setOnTouchListener(new OnTouchListener(){  
                @Override  
                public boolean onTouch(View v, MotionEvent event) {  
                    return true;  
                }  
            });

        private void addInnerLayout(int layoutResID,LinearLayout view){
    LayoutInflater inflater = (LayoutInflater) ((Activity) mContext).getLayoutInflater();
    View CurView = inflater.inflate(layoutResID, null);
    LinearLayout.LayoutParams lineparam = new LinearLayout.LayoutParams(RelativeLayout.LayoutParams.MATCH_PARENT,
    RelativeLayout.LayoutParams.MATCH_PARENT);
    view.addView(CurView,lineparam);
    }
    3.控制顯示
        layerMask.setVisibility(View.VISIBLE);
    posted on 2014-09-11 08:13 Terry Zou 閱讀(1241) 評論(0)  編輯  收藏 所屬分類: Android
    <2014年9月>
    31123456
    78910111213
    14151617181920
    21222324252627
    2829301234
    567891011

    常用鏈接

    留言簿(2)

    隨筆分類

    隨筆檔案

    文章分類

    文章檔案

    相冊

    收藏夾

    Java

    搜索

    •  

    最新隨筆

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 美女黄色免费网站| 亚洲va精品中文字幕| 理论片在线观看免费| 亚洲 自拍 另类小说综合图区| 国产亚洲欧美在线观看| 四虎影永久在线高清免费| 免费看又黄又爽又猛的视频软件| 亚洲乱码中文字幕综合234| 国产免费人成视频尤勿视频 | 边摸边吃奶边做爽免费视频99| 免费观看毛片视频| 免费人成再在线观看网站| 亚洲一区二区女搞男| 日本免费人成视频在线观看| 亚洲精品一卡2卡3卡三卡四卡| 美女视频黄a视频全免费| 亚洲精品无码人妻无码| 亚洲av高清在线观看一区二区 | 国产成人高清亚洲一区91| 亚洲人成色77777在线观看大| 中国一级毛片免费看视频| 亚洲毛片免费观看| 免费观看的av毛片的网站| 中文在线观看永久免费| 亚洲国产精品网站久久| 国产麻豆剧传媒精品国产免费| 久久www免费人成精品香蕉| 亚洲精品在线免费观看视频| 免费看美女被靠到爽| 两性色午夜视频免费网| 久久精品亚洲AV久久久无码| 亚洲A∨精品一区二区三区| 麻豆精品成人免费国产片| 亚洲中文字幕一区精品自拍| 亚洲国产精品第一区二区三区| 亚洲综合精品香蕉久久网97| 无码乱人伦一区二区亚洲| 在线a亚洲老鸭窝天堂av高清| 亚洲第一页日韩专区| 日本人的色道免费网站| 成人一级免费视频|