【Android】SeekBarを表示する【Java/Kotlin】

今回はSeekBarを実装します。

SeekBarとはドラッグで進行状態を設定できるViewです。

他アプリのYoutubeでは動画再生時に再生時間の表示や変更するためのバーとして使用されています。

ユーザビリティに優れているので様々なアプリに使用されます。

SeekBarを表示する

まずはレイアウトXMLに定義して表示しましょう!

<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent">
    
<SeekBar
    android:id="@+id/seekBar"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    app:layout_constraintTop_toTopOf="parent"
    app:layout_constraintBottom_toBottomOf="parent" />

</androidx.constraintlayout.widget.ConstraintLayout>

実は表示するだけでSeekBarのつまみの部分が動かせます。

ですがこのままではユーザーがどの位置までつまみを移動したのかは分かりません。

SeekBarのつまみの変更を検知する

次はつまみの変更を検知しましょう

上記を実装する事によりつまみが一番左になった場合に処理を実行する等が可能になります。

SeekBarには欠かせない実装になります。

// SeekBarのインスタンスを取得
SeekBar seekBar = findViewById(R.id.seekBar);
// SeekBarのつまみの変更を検知する
seekBar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {
    @Override
    public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
        // つまみが変更された時に処理が実行される
    }

    @Override
    public void onStartTrackingTouch(SeekBar seekBar) {
        // ユーザーがタップ開始した時に処理が実行される
    }

    @Override
    public void onStopTrackingTouch(SeekBar seekBar) {
        // ユーザーがタップ終了した時に処理が実行される
    }
});
// SeekBarのインスタンスを取得
val seekBar = findViewById<SeekBar>(R.id.seekBar)
// SeekBarのつまみの変更を検知する
seekBar.setOnSeekBarChangeListener(object : OnSeekBarChangeListener {
    override fun onProgressChanged(seekBar: SeekBar, progress: Int, fromUser: Boolean) {
        // つまみが変更された時に処理が実行される
    }

    override fun onStartTrackingTouch(seekBar: SeekBar) {
        // ユーザーがタップ開始した時に処理が実行される
    }

    override fun onStopTrackingTouch(seekBar: SeekBar) {
        // ユーザーがタップ終了した時に処理が実行される
    }

setOnSeekBarChangeListener()の説明

引数型説明
第一引数SeekBar.OnSeekBarChangeListener進捗が変更されたときに通知するコールバック

onProgressChanged()の説明

つまみが変更された時に処理が実行される

引数型説明
第一引数SeekBar進捗が変更されたSeekBarのインスタンス
第二引数Int変更された進捗の数値
第三引数Booleanユーザーが進捗を変更したかどうか

onStartTrackingTouch()の説明

ユーザーがタップ開始した時に処理が実行される

引数型説明
第一引数SeekBarユーザーがタップ開始したSeekBarのインスタンス

onStopTrackingTouch()の説明

ユーザーがタップ終了した時に処理が実行される

引数型説明
第一引数SeekBarユーザーがタップ終了したSeekBarのインスタンス

SeekBarの進捗を変更する

ユーザがつまみの位置を変更すると進捗の変更ができます。

では、アプリが進捗を変更する場合はどうすればよいでしょうか

下記で進捗を変更できます。

// SeekBarのインスタンスを取得
SeekBar seekBar = findViewById(R.id.seekBar);
// SeekBarの進捗を設定
seekBar.setProgress(95);
// SeekBarのインスタンスを取得
val seekBar = findViewById<SeekBar>(R.id.seekBar)
// SeekBarの進捗を設定
seekBar.progress = 95

setProgress()の説明

引数型説明
第一引数Int設定した値がつまみの位置に設定される

デフォルトで下限が0、上限が100
0を設定した場合はつまみの位置は最左部
100を設定した場合はつまみの位置は最右部

SeekBarにセカンダリプログレスを表示する

先行処理している処理の進捗状況もSeekBarに表示することが可能です。

他アプリのYoutubeでは動画読み込み済みを示すために使用されています。

// SeekBarのインスタンスを取得
SeekBar seekBar = findViewById(R.id.seekBar);
// SeekBarのセカンダリプログレスバーの進捗を設定
seekBar.setSecondaryProgress(50);
// SeekBarのインスタンスを取得
val seekBar = findViewById<SeekBar>(R.id.seekBar)
// SeekBarのセカンダリプログレスバーの進捗を設定
seekBar.secondaryProgress = 50

setSecondaryProgress()の説明

引数型説明
第一引数Int設定した値がセカンダリプログレスバーの進捗に設定される

最後に

いかがでしたでしょうか

SeekBarは動画の再生位置の設定音量の変更等によく使われていたりしますね。

それでは

コメント

  1. […] 前回はSeekBarを表示する方法をまとめました。 […]

タイトルとURLをコピーしました

Warning: Undefined array key 0 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 1 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 2 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 3 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 4 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 5 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 6 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 7 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 8 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 9 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 10 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 11 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 12 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 13 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 14 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 15 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 16 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 17 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 18 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 19 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 20 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 21 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 22 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 23 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 24 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 25 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 26 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 27 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 28 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 29 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 30 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 31 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 32 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 33 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 34 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 35 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 36 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 37 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 38 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 39 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 40 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 41 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 42 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 43 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 44 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 45 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 46 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 47 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 48 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 49 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 50 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 51 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 52 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 53 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 54 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 55 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 56 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 57 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 58 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 59 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 60 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 61 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 62 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 63 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 64 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 65 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 66 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 67 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 68 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 69 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 70 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 71 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 72 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 73 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 74 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 75 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 76 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 77 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 78 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 79 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 80 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 81 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 82 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 83 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 84 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 85 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 86 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 87 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 88 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 89 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 90 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 91 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 92 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 93 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 94 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 95 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 96 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 97 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 98 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 99 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 100 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 101 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 102 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 103 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 104 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 105 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 106 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 107 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 108 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 109 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 110 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 111 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 112 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 113 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 114 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 115 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 116 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 117 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 118 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 119 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 120 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 121 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 122 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 123 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 124 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 125 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 126 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 127 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 128 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 129 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 130 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 131 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 132 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 133 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 134 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 135 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 136 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 137 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 138 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 139 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 140 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 141 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 142 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 143 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 144 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 145 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 146 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 147 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 148 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 149 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 150 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 151 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 152 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 153 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 154 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 155 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 156 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 157 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 158 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 159 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 160 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 161 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 162 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 163 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 164 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 165 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 166 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Warning: Undefined array key 167 in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php on line 54

Fatal error: Uncaught Error: Call to a member function getWord() on null in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Util/JsonUtil.php:55 Stack trace: #0 /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/JsonFormatter.php(59): Weglot\Util\JsonUtil::set(Object(Weglot\Client\Api\WordCollection), Array, 'headline', 168) #1 /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Parser.php(604): Weglot\Parser\Formatter\JsonFormatter->handle(Array, 168) #2 /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Parser.php(615): Weglot\Parser\Parser->formatters('\n{\n "@context"...', Object(Weglot\Client\Api\TranslateEntry), Array, 168) #3 /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Parser.php(394): Weglot\Parser\Parser->formatters('<!doctype html>...', Object(Weglot\Client\Api\TranslateEntry), Array) #4 /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/src/services/class-translate-service-weglot.php(259): Weglot\Parser\Parser->translate('<!doctype html>...', 'ja', 'en', Array, 'https://android...') #5 [internal function]: WeglotWP\Services\Translate_Service_Weglot->weglot_treat_page('<!doctype html>...', 9) #6 /home/androidtech/android-tech.jp/public_html/wp-includes/functions.php(5471): ob_end_flush() #7 /home/androidtech/android-tech.jp/public_html/wp-includes/class-wp-hook.php(324): wp_ob_end_flush_all('') #8 /home/androidtech/android-tech.jp/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array) #9 /home/androidtech/android-tech.jp/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #10 /home/androidtech/android-tech.jp/public_html/wp-includes/load.php(1304): do_action('shutdown') #11 [internal function]: shutdown_action_hook() #12 {main} thrown in /home/androidtech/android-tech.jp/public_html/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Util/JsonUtil.php on line 55