<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                當遇到Activity被回收(橫豎屏、內存不足)時,Activity會重建,而去調用onCreate()方法,在onCreate()方法中調用了設置首項透明度的方法。這樣就會出現,選中的View和內容Fragment的不對應的。 ~~~ //Bundle的鍵,作用:自定義的VIew繼承的有可能不是View,有可能是TextView、ImageView, //重寫下面兩個方法,以便記住原本的Bundle(不能抹掉原來的XXView的恢復和銷毀的過程) private static final String INSTANCE_STATUS="instance_status"; private static final String STATUS_ALPHA="status_alpha"; //Bundle的鍵 //當Activity重建的時候,恢復Alpha值 @Override protected Parcelable onSaveInstanceState() { Bundle bundle=new Bundle(); bundle.putParcelable(INSTANCE_STATUS, super.onSaveInstanceState()); //把父級存儲的變量放到INSTANCE_STATUS中 bundle.putFloat(STATUS_ALPHA, mAlpha); //存儲自己需要保存的東西 return bundle; } @Override protected void onRestoreInstanceState(Parcelable state) { if(state instanceof Bundle){ Bundle bundle=(Bundle) state; mAlpha=bundle.getFloat(STATUS_ALPHA); //取出自己保存的東西 super.onRestoreInstanceState(bundle.getParcelable(INSTANCE_STATUS)); //取出系統保存的東西,并調用系統的恢復 return; } super.onRestoreInstanceState(state); } ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看