android工具LogcatView-手機中如何查看logcat神器?

android工具LogcatView-手機中如何查看logcat神器?

日志記錄抓取

沒有數據線的時候,就用這個輸出日志吧

使用簡單,一行代碼搞定 點擊鏈接可以用瀏覽器打開 可抓取大部分Android Studio中Logcat打印的內容 可以搜索內容 可按tag過濾 可根據日志等級篩選(提供隱藏方法)
A 所有內容 O System.out 輸出的內容 W 警告級別的內容 E 錯誤級別的內容

集成

Step 1. Add the JitPack repository to your build file

Add it in your root build.gradle at the end of repositories:

allprojects {
    repositories {
        ...
        maven { url 'https://www.jitpack.io' }
    }
}

Step 2. Add the dependency

dependencies {
        compile 'com.github.huangdali:LogcatView:v1.1.2'
}

使用

    new LogcatDialog(this).show();

版本記錄

v1.1.2 (2017.10.09)

【優化】更精確的網頁鏈接判斷 【優化】鏈接顏色使用默認值

v1.0.9 (2017.10.09)

【新增】內容中有web鏈接的可點擊用瀏覽器打開

v1.0.8 (2017.10.09)

【新增】重寫有兩個參數的構造方法

v1.0.5 (2017.09.30)

【新增】項目初始化

關於樣式

如果你的activity繼承至AppCompatActivity,請跳過此步驟】如果你的Activity不是繼承至AppCompatActivity,那麼樣式可能會很醜,可以通過下面的設置:

1、在style.xml中定義

#00000000 
        @android:color/transparent  

2、設置主題

  LogcatDialog logcatDialog = new LogcatDialog(mContext,R.style.Translucent_NoTitle);
  logcatDialog.show();

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *