欧美一区二区三区老妇人-欧美做爰猛烈大尺度电-99久久夜色精品国产亚洲a-亚洲福利视频一区二区

Android怎么實(shí)現(xiàn)底部彈出按鈕菜單升級(jí)版

這篇文章主要介紹Android怎么實(shí)現(xiàn)底部彈出按鈕菜單升級(jí)版,文中介紹的非常詳細(xì),具有一定的參考價(jià)值,感興趣的小伙伴們一定要看完!

成都創(chuàng)新互聯(lián)公司-專(zhuān)業(yè)網(wǎng)站定制、快速模板網(wǎng)站建設(shè)、高性價(jià)比江州網(wǎng)站開(kāi)發(fā)、企業(yè)建站全套包干低至880元,成熟完善的模板庫(kù),直接使用。一站式江州網(wǎng)站制作公司更省心,省錢(qián),快速模板網(wǎng)站建設(shè)找我們,業(yè)務(wù)覆蓋江州地區(qū)。費(fèi)用合理售后完善,10余年實(shí)體公司更值得信賴。

具體內(nèi)容如下

只貼出關(guān)鍵代碼

 case R.id.myself_share:
        //我的分享
        getShareMune();

getShareMune()

private void getShareMune() {

    final Dialog mdialog = new Dialog(getActivity(), R.style.photo_dialog);
    mdialog.setContentView(View.inflate(getActivity(), R.layout.layout_popwindow, null));
    // 彈出對(duì)話框
    Window window = mdialog.getWindow();
    WindowManager.LayoutParams lp = window.getAttributes();
    lp.gravity = Gravity.BOTTOM;
    lp.y = 20;
    window.setContentView(R.layout.layout_popwindow);
    final Button qq = (Button) window.findViewById(R.id.btn_QQ);
    final Button sina = (Button) window.findViewById(R.id.btn_sina);
    final Button firend = (Button) window.findViewById(R.id.btn_wechatfirend);
    final Button firend1 = (Button) window.findViewById(R.id.btn_wechatfirend1);
    final Button more = (Button) window.findViewById(R.id.btn_more);
    final Button back = (Button) window.findViewById(R.id.btn_cancel);

    //QQ
    qq.setOnClickListener(new View.OnClickListener() {
      @Override
      public void onClick(View v) {
        showZiDingYi(QQ.NAME);
        mdialog.dismiss();
      }
    });
    //新浪
    sina.setOnClickListener(new View.OnClickListener() {
      @Override
      public void onClick(View v) {
//        showZiDingYi(SinaWeibo.NAME);
        mdialog.dismiss();
      }
    });
    //微信好友
    firend.setOnClickListener(new View.OnClickListener() {
      @Override
      public void onClick(View v) {
        showZiDingYi(Wechat.NAME);
        mdialog.dismiss();
      }
    });
    //微信朋友圈
    firend1.setOnClickListener(new View.OnClickListener() {
      @Override
      public void onClick(View v) {
        showZiDingYi(WechatMoments.NAME);
        mdialog.dismiss();
      }
    });
    //更多
    more.setOnClickListener(new View.OnClickListener() {
      @Override
      public void onClick(View v) {
        mdialog.dismiss();
      }
    });
    //取消
    back.setOnClickListener(new View.OnClickListener() {
      @Override
      public void onClick(View v) {

      }
    });
    mdialog.show();

  }

這里還有個(gè)Style

<style name="photo_dialog" parent="android:style/Theme.Dialog">
    <item name="android:windowAnimationStyle">@style/AnimBottom</item>
    <item name="android:windowFrame">@null</item>
    <!-- 邊框 -->
    <item name="android:windowIsFloating">true</item>
    <!-- 是否浮現(xiàn)在activity之上 -->
    <item name="android:windowIsTranslucent">true</item>
    <!-- 半透明 -->
    <item name="android:windowNoTitle">true</item>
    <!-- 無(wú)標(biāo)題 -->
    <item name="android:windowBackground">@android:color/transparent</item>
    <!-- 背景透明 -->
    <item name="android:backgroundDimEnabled">true</item>
    <!-- 模糊 -->
  </style>


還有一個(gè)XML

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="wrap_content"
  android:gravity="center_horizontal"
  android:orientation="vertical">

  <LinearLayout
    android:id="@+id/pop_layout"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical">

    <Button
      android:id="@+id/btn_QQ"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:background="@drawable/button_alter_top_radiu"
      android:padding="@dimen/standard_30px"
      android:text="分享到QQ"
      android:textColor="@color/black" />
    <View
      android:layout_width="match_parent"
      android:layout_height="0.5dp"
      android:background="@color/color_dialog_line" />
    <Button
      android:id="@+id/btn_sina"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:background="@drawable/linearlayout_border_no_radiu"
      android:padding="@dimen/standard_30px"
      android:text="分享到新浪"
      android:textColor="@color/black" />
    <View
      android:layout_width="match_parent"
      android:layout_height="0.5dp"
      android:background="@color/color_dialog_line" />
    <Button
      android:id="@+id/btn_wechatfirend"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:background="@drawable/linearlayout_border_no_radiu"
      android:padding="@dimen/standard_30px"
      android:text="分享到微信好友"
      android:textColor="@color/black" />
    <View
      android:layout_width="match_parent"
      android:layout_height="0.5dp"
      android:background="@color/color_dialog_line" />
    <Button
      android:id="@+id/btn_wechatfirend1"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:background="@drawable/linearlayout_border_no_radiu"
      android:padding="@dimen/standard_30px"
      android:text="分享到微信朋友圈"
      android:textColor="@color/black" />
    <View
      android:layout_width="match_parent"
      android:layout_height="0.5dp"
      android:background="@color/color_dialog_line" />

    <Button
      android:id="@+id/btn_more"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:background="@drawable/button_alter_bottom_radiu"
      android:padding="@dimen/standard_30px"
      android:text="分享到更多..."
      android:textColor="@color/black" />

    <Button
      android:layout_marginTop="@dimen/standard_20px"
      android:id="@+id/btn_cancel"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:background="@drawable/button_radius_white_lemonchiffon"
      android:padding="@dimen/standard_30px"
      android:text="取消"
      android:textColor="@color/black" />
  </LinearLayout>
</RelativeLayout>

上效果圖

Android怎么實(shí)現(xiàn)底部彈出按鈕菜單升級(jí)版

以上是“Android怎么實(shí)現(xiàn)底部彈出按鈕菜單升級(jí)版”這篇文章的所有內(nèi)容,感謝各位的閱讀!希望分享的內(nèi)容對(duì)大家有幫助,更多相關(guān)知識(shí),歡迎關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道!

網(wǎng)頁(yè)標(biāo)題:Android怎么實(shí)現(xiàn)底部彈出按鈕菜單升級(jí)版
當(dāng)前鏈接:http://chinadenli.net/article46/joeghg.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供品牌網(wǎng)站建設(shè)、App設(shè)計(jì)、網(wǎng)站營(yíng)銷(xiāo)、動(dòng)態(tài)網(wǎng)站、企業(yè)網(wǎng)站制作、營(yíng)銷(xiāo)型網(wǎng)站建設(shè)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

營(yíng)銷(xiāo)型網(wǎng)站建設(shè)
欧美不卡午夜中文字幕| 国产精品欧美日韩中文字幕| 国产精品亚洲精品亚洲| 91麻豆精品欧美视频| 韩国日本欧美国产三级| 日本黄色高清视频久久| 国产又粗又深又猛又爽又黄| 91免费一区二区三区| 日韩夫妻午夜性生活视频| 午夜国产精品国自产拍av | 国产精品熟女乱色一区二区| 亚洲少妇一区二区三区懂色| 好吊视频有精品永久免费| 微拍一区二区三区福利| 久草视频这里只是精品| 精品推荐久久久国产av| 暴力性生活在线免费视频| 亚洲高清中文字幕一区二区三区| 国产在线一区中文字幕| 成人精品一区二区三区在线| 欧美一级黄片免费视频| 少妇在线一区二区三区| 亚洲欧美日韩国产综合在线| 国自产拍偷拍福利精品图片| 粉嫩国产美女国产av| 精品少妇人妻一区二区三区| 六月丁香六月综合缴情| 日韩丝袜诱惑一区二区| 免费精品一区二区三区| 国产又大又黄又粗又免费| 国产又大又硬又粗又黄| 男人的天堂的视频东京热| 国产一区在线免费国产一区| 一区中文字幕人妻少妇| 国产又粗又猛又大爽又黄| 国内外免费在线激情视频| 午夜激情视频一区二区| 亚洲精品中文字幕熟女| 中文字幕日韩欧美理伦片| 成人精品一级特黄大片| 亚洲欧美日韩色图七区|