在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問答/ Android問答

空指針了,檢查下下面這段代碼

RongIM.init(this, AccountInfo.getInstance().loadAccount().rongcloud.appkey);//初始化聊天模塊

還有 Thread.setDefaultUncaughtExceptionHandler 這個(gè)放在 onCreate 方法的第一行,不然前面的異常捕獲不到。

浪蕩不羈 回答

原因有多種

  1. debug打包配置和release的不同
  2. 打包的時(shí)候沒有關(guān)掉監(jiān)控(新添加的靜態(tài)資源沒有鏈接到)
  3. 加入了需要的Link 的原生模塊
  4. node_moudle的問題 需要?jiǎng)h掉重裝
  5. 微信等第三方模塊的調(diào)試模式和生產(chǎn)模式帳號(hào)沒有分開

暫時(shí)想到這么多

胭脂淚 回答

$('#actNum2')下再嵌套一層divwrap

    <div id="actNum2" class="mes-con">
        <div class="wrap">
            <p><label class="one">1</label>人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華</p>
            <p><label class="one">2</label>人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華</p> 
            <p><label class="one">3</label>人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華</p> 
            <p><label class="one">4</label>人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華</p>
            <p><label class="one">4</label>人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華</p>
            <p><label class="one">4</label>人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華</p>
        </div>
    </div>

同時(shí)修改樣式

.mes-con{
    width: 500px;
    height:200px;
    border:1px solid grey;
    margin:30px auto;
    overflow: hidden;
    position:relative;/*修改點(diǎn)*/
}
.wrap{
    position:absolute; /*修改點(diǎn)*/
}

最后修改js

    function goHelpTirm(){
        var TirmLength=$('#actNum2').find('p').length;
        console.log(TirmLength);
        var num=0;              
        setInterval(function(){  
            num++;  
            if(num > TirmLength){ 
                num=0;  
                $('.wrap').css({'top':'0'});   /*修改點(diǎn)*/
                num=1;  
            }  
            $('.wrap').stop().animate({top:-20*num+'px'});  /*修改點(diǎn)*/
        },1000);  
    }
    goHelpTirm();

原理是最外層固定寬高,超出隱藏,通過設(shè)置內(nèi)層div的top值實(shí)現(xiàn)其無縫滾動(dòng)

孤酒 回答

你可以嘗試點(diǎn)擊Android旁邊的箭頭,每個(gè)都試試。
其次你可以看看Project是不是這些。

尋仙 回答

你先寫一個(gè)DefaultConfig類,然后在各個(gè)項(xiàng)目里都@Import(xxpackage.DefaultConfig)就有了。

墨染殤 回答

因?yàn)間lide 內(nèi)部也引入了com.android.support:appcompat-v7。版本對(duì)應(yīng)為
COMPILE_SDK_VERSION=27
TARGET_SDK_VERSION=27 ANDROID_SUPPORT_VERSION=27.1.0 具體網(wǎng)址為https://github.com/bumptech/g...
還有其他方式如http://bumptech.github.io/gli...

荒城 回答

在CaptureActivity類中找到以下方法:

/**

 * Handler scan result
 * 
 * @param result
 * @param barcode
 */
public void handleDecode(Result result, Bitmap barcode)
{
    inactivityTimer.onActivity();
    playBeepSoundAndVibrate();

    String resultString = result.getText();

    doResult(resultString);
}

/**
 * 增加的部分:對(duì)掃描返回的結(jié)果進(jìn)行處理
 */
private void doResult(String result)
{
    if (result.equals(""))
    {
        ToastUtil.showToastByThread(getApplicationContext(),
                "二維碼掃描失敗,請(qǐng)手動(dòng)輸入!");

    } else
    {
        mHandler.postDelayed(runnable, 1000);
    }

}

/**
 * 增加的部分:實(shí)現(xiàn)多次重復(fù)掃描,否則本界面打開一次,只能聚焦一次,掃描一次。增加這一部分之后就能連續(xù)聚焦,連續(xù)掃描
 */
Handler mHandler = new Handler();
Runnable runnable = new Runnable()
{

    @Override
    public void run()
    {
        if (handler != null)
        {
            try
            {
                mHandler.postDelayed(runnable, 1000);

                handler.restartPreviewAndDecode(); // 實(shí)現(xiàn)多次掃描

            } catch (Exception e)
            {
                e.printStackTrace();
            }
        }
    }
};
焚音 回答

1.上傳的時(shí)候就把gif圖片處理好存儲(chǔ)靜態(tài)預(yù)覽圖和原始圖。
2.或者訪問時(shí)通過參數(shù)再處理,比如七牛就有圖片處理
https://developer.qiniu.com/d...

PS:客戶端處理是不現(xiàn)實(shí)的,因?yàn)槿绻极@取的就是gif的話流量和加載時(shí)間就用掉了,也沒必要在處理了

深記你 回答

Java 要求方法定義的形參必須和實(shí)參一致。
Android 通過分析 XML ,能夠自動(dòng)將組件的點(diǎn)擊事件綁定到你設(shè)置的方法上,并且通過帶入 View 對(duì)象作為實(shí)參的形式進(jìn)行調(diào)用。
而如果你方法定義的形參并不是 View ,那就會(huì)違背 Java 的調(diào)用邏輯,產(chǎn)生異常。

夏木 回答

這些數(shù)字并不是代碼,是類似 R.id.xxx,R.layout.xxx 之類的,本身就是 int 值,代表資源id

尛憇藌 回答

pw_operator_mark怎么找到屬于自己的tv_operator_mark?tv.post是異步吧

涼薄 回答

編輯~/.ssh/config文件,添加以下內(nèi)容:

Host *
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_rsa
病癮 回答

mozilla的文檔這樣寫

When both top and bottom are specified, as long as height is
unspecified, auto, or 100%, both top and bottom distances will be
respected. Otherwise, if height is constrained in any way, the top
property takes precedence and the bottom property is ignored.

也就是,你的后一種寫法可能導(dǎo)致div的大小拉大為全屏,如果div大小已經(jīng)被限制住,right和bottom會(huì)被忽略。

旖襯 回答

cursor.moveToNext();不要在這里寫啊。。。你在Adaper外面,先把數(shù)據(jù)查詢到一個(gè)List里面,Adapter里直接綁定數(shù)據(jù)啊

影魅 回答

默認(rèn)瀏覽器:
Intent intent = new Intent(ACTION_VIEW, Uri.parse("網(wǎng)址"));
startActivity(intent);
外部瀏覽器:
Intent intent = new Intent();
intent.setAction("android.intent.action.VIEW");
intent.setData(Uri.parse("鏈接"));
intent.setClassName("com.android.browser","com.android.browser.BrowserActivity"); startActivity(intent);

幾個(gè)常見
uc瀏覽器":"com.uc.browser", "com.uc.browser.ActivityUpdate"
opera:"com.opera.mini.android", "com.opera.mini.android.Browser"
qq瀏覽器:"com.tencent.mtt", "com.tencent.mtt.MainActivity"

魚梓 回答

在Gradle中強(qiáng)制指定依賴版本就行

configurations.all {
   resolutionStrategy {
       force 'com.android.support:recyclerview-v7:26.1.0'
   }
}
背叛者 回答

我看你的demo,藍(lán)色的邊框應(yīng)該是outline吧。
設(shè)置

button{
    outline:none;
}

試試。

抱歉,我看錯(cuò)問題了,剛看到你說的是藍(lán)色背景。
試試下面的代碼去除高亮。

-webkit-tap-highlight-color:rgba(0,0,0,0);