// Path: app/src/main/java/com/aepronunciation/ipa/MainActivity.java
// public static final String TEST_MODE_KEY = "testMode";


import android.content.Context;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
import androidx.core.content.ContextCompat;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.View.OnClickListener;
import android.widget.RelativeLayout;
import java.util.ArrayList;
import java.util.HashMap;
import static com.aepronunciation.ipa.MainActivity.TEST_MODE_KEY;
package com.aepronunciation.ipa;




public class KeyboardFragment extends Fragment implements OnClickListener {

    View view;

    private HashMap<Integer, String> mLayoutToString;
    private HashMap<Integer, String> mTextViewToString;

    private KeyboardListener mListener; // communicate with the parent activity

    // Container Activity must implement this interface
    public interface KeyboardListener {
        void onKeyTouched(String keyString);
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        initializeMaps();
    }

    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {

        view = inflater.inflate(R.layout.fragment_keyboard, container, false);

        if (getArguments() != null) {
// Path: app/src/main/java/com/aepronunciation/ipa/MainActivity.java
// public static final String TEST_MODE_KEY = "testMode";


// Path: app/src/main/java/com/aepronunciation/ipa/KeyboardFragment.java
import android.content.Context;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
import androidx.core.content.ContextCompat;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.View.OnClickListener;
import android.widget.RelativeLayout;
import java.util.ArrayList;
import java.util.HashMap;
import static com.aepronunciation.ipa.MainActivity.TEST_MODE_KEY;

package com.aepronunciation.ipa;




public class KeyboardFragment extends Fragment implements OnClickListener {

    View view;

    private HashMap<Integer, String> mLayoutToString;
    private HashMap<Integer, String> mTextViewToString;

    private KeyboardListener mListener; // communicate with the parent activity

    // Container Activity must implement this interface
    public interface KeyboardListener {
        void onKeyTouched(String keyString);
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        initializeMaps();
    }

    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {

        view = inflater.inflate(R.layout.fragment_keyboard, container, false);

        if (getArguments() != null) {
            SoundMode testMode = SoundMode.fromString(getArguments().getString(TEST_MODE_KEY));