【Android】EditTextで文字を入力する【Java/Kotlin】

今回はEditTextで文字を入力してみましょう

アプリでログインIDやパスワードを入力するときなどは必須ですね!

では早速実装していきます。

EditTextを表示する

まずが入力するためにEditTextを表示しましょう!

EditTextを画面に表示すればあとはユーザーがEditTextをタップすれば文字が入力できます。

ではレイアウトXMLでEditTextを表示しましょう

<?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">
    
    <EditText
        android:id="@+id/editText"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintBottom_toBottomOf="parent" />

</androidx.constraintlayout.widget.ConstraintLayout>

EditTextを表示するだけであとはユーザーがタップするだけでキーボードが表示されます。

簡単ですね!

クラスファイルからEditTextに文字を表示する

クラスファイルからもEditTextに文字を入力して表示する事ができます。

ログイン画面などですでにログインIDが入力されている時がありますよね。

元々入力させたい時などに使用します。

// EditTextのインスタンスを取得
EditText editText = findViewById(R.id.editText);
// EditTextに文字を設定する
editText.setText("hogehoge");
// EditTextのインスタンスを取得
val editText = findViewById<EditText>(R.id.editText)
// EditTextに文字を設定する
editText.setText("hogehoge")

setText()の説明

引数型説明
第一引数CharSequenceEditTextに表示する文字列を設定

EditTextの入力欄にヒントを表示する

EditTextを表示するだけではユーザーが「何のためのEditTextなのか?」と疑問に思ってしまいます。

それを回避するために入力欄にヒントを表示しましょう

こちらはレイアウトXML,クラスファイルどちらからでも設定できます!

<EditText
    android:id="@+id/editText"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:hint="ログインIDを入力"  <- EditTextにヒントを設定する
    app:layout_constraintTop_toTopOf="parent"
    app:layout_constraintBottom_toBottomOf="parent" />
// EditTextのインスタンスを取得
EditText editText = findViewById(R.id.editText);
// EditTextにヒントを設定する
editText.setHint("ログインIDを入力");
// EditTextのインスタンスを取得
val editText = findViewById<EditText>(R.id.editText)
// EditTextにヒントを設定する
editText.hint = "ログインIDを入力"

これでEditTextの用途がユーザーに伝わりますね!

setHint()の説明

引数型説明
第一引数CharSequenceEditTextが空の場合に表示する文字列を設定

EditTextに入力できる文字数を制限する

デフォルトの入力できる文字数の制限はほぼありません。

文字数を制限する場合はEditTextに最大文字数を指定する必要があります。

<EditText
    android:id="@+id/editText"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:maxLength="5"  <- EditTextに入力できる文字数を制限する
    app:layout_constraintTop_toTopOf="parent"
    app:layout_constraintBottom_toBottomOf="parent" />
// EditTextのインスタンスを取得
EditText editText = findViewById(R.id.editText);
// EditTextに入力できる文字数を制限する
editText.setFilters(new InputFilter[] { new InputFilter.LengthFilter(5) });
// EditTextのインスタンスを取得
val editText = findViewById<EditText>(R.id.editText)
// EditTextに入力できる文字数を制限する
editText.filters = arrayOf<InputFilter>(LengthFilter(5))

android:maxLengthの説明

入力型説明
android:maxLengthInt入力できる文字数を指定したInt値に設定

setFilters()の説明

引数型説明
第一引数CharSequenceEditTextに表示する文字列を設定

EditTextに入力した文字をマスクする

パスワードなど入力した文字をマスクしたい場合があると思います。

マスクしたい場合はinputTypeを使用します。

<EditText
    android:id="@+id/editText"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:inputType="textPassword"  <- EditTextに入力した文字をマスクする
    app:layout_constraintTop_toTopOf="parent"
    app:layout_constraintBottom_toBottomOf="parent" />
// EditTextのインスタンスを取得
EditText editText = findViewById(R.id.editText);
// EditTextに入力した文字をマスクする
editText.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_PASSWORD);
// EditTextのインスタンスを取得
val editText = findViewById<EditText>(R.id.editText)
// EditTextに入力した文字をマスクする
editText.inputType = InputType.TYPE_CLASS_TEXT or InputType.TYPE_TEXT_VARIATION_PASSWORD

android:inputTypeの説明

引数型説明
第一引数CharSequenceEditTextに表示する文字列を設定

inputType()の説明

引数型説明
第一引数CharSequenceEditTextに表示する文字列を設定

最後に

いかがでしたでしょうか

EditTextは基本的にはアプリにほぼ必須なイメージです。

次回はEditTextのデザインを変更しようと思います!

コメント

  1. […] 前回はEditTextで文字を入力する方法をまとめました。 […]

タイトルと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

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', 164) #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, 164) #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, 164) #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