// Path: app/src/main/java/com/antest1/kcanotify/KcaApiData.java
// public static JsonObject getExpeditionInfo(int mission_no, String locale) {
//     JsonObject data = null;
//     int mission_key = mission_no;
//     String key = String.valueOf(mission_key);
//     if (!kcExpeditionData.has(key)) {
//         if (mission_no % 2 == 1) key = "203";
//         else key = "204";
//     }
//     JsonObject rawdata = kcExpeditionData.getAsJsonObject(key);
//     data = new JsonParser().parse(rawdata.toString()).getAsJsonObject();
//     JsonObject name = data.getAsJsonObject("name");
//     if (name.has(locale)) {
//         data.addProperty("name", name.get(locale).getAsString());
//     } else {
//         data.addProperty("name", name.get("en").getAsString());
//     }
//     return data;
// }
// 
// Path: app/src/main/java/com/antest1/kcanotify/KcaApiData.java
// public static String getShipTypeAbbr(int idx) {
//     if (kcStypeData != null && idx < kcStypeData.size()) {
//         return kcStypeData.get(idx).getAsString();
//     } else {
//         return "";
//     }
// }
// 
// Path: app/src/main/java/com/antest1/kcanotify/KcaUtils.java
// public static String joinStr(List<String> list, String delim) {
//     String resultStr = "";
//     if (list.size() > 0) {
//         int i;
//         for (i = 0; i < list.size() - 1; i++) {
//             resultStr = resultStr.concat(list.get(i));
//             resultStr = resultStr.concat(delim);
//         }
//         resultStr = resultStr.concat(list.get(i));
//     }
//     return resultStr;
// }


import android.content.Context;
import androidx.core.content.ContextCompat;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.google.common.base.Predicate;
import com.google.common.collect.Collections2;
import com.google.gson.Gson;
import com.google.gson.JsonArray;
import com.google.gson.JsonObject;
import com.google.gson.reflect.TypeToken;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;
import static com.antest1.kcanotify.KcaApiData.getExpeditionInfo;
import static com.antest1.kcanotify.KcaApiData.getShipTypeAbbr;
import static com.antest1.kcanotify.KcaUtils.joinStr;
            holder.value_spitem1_type = v.findViewById(R.id.value_spitem1_type);
            holder.value_spitem2_type = v.findViewById(R.id.value_spitem2_type);
            holder.value_spitem1_count = v.findViewById(R.id.value_spitem1_count);
            holder.value_spitem2_count = v.findViewById(R.id.value_spitem2_count);
            holder.value_condition = v.findViewById(R.id.value_condition);

            holder.background_labels = new View[7];
            holder.background_labels[0] = holder.label_no_abs;
            holder.background_labels[1] = v.findViewById(R.id.label_no);
            holder.background_labels[2] = v.findViewById(R.id.label_item_abs);
            holder.background_labels[3] = v.findViewById(R.id.label_item1);
            holder.background_labels[4] = v.findViewById(R.id.label_item2);
            holder.background_labels[5] = v.findViewById(R.id.label_condition);
            holder.background_labels[6] = v.findViewById(R.id.item_bottom);

            holder.greatsuccess_values = new View[7];
            holder.greatsuccess_values[0] = holder.value_resources_abs;
            holder.greatsuccess_values[1] = holder.value_fuel;
            holder.greatsuccess_values[2] = holder.value_ammo;
            holder.greatsuccess_values[3] = holder.value_steel;
            holder.greatsuccess_values[4] = holder.value_bauxite;
            holder.greatsuccess_values[5] = holder.value_hq_exp;
            holder.greatsuccess_values[6] = holder.value_ship_exp;
            v.setTag(holder);
        }

        JsonObject item = listViewItemList.get(position);
        Log.e("KCA", String.valueOf(position) + " " + item.toString() );
        final ViewHolder holder = (ViewHolder) v.getTag();

// Path: app/src/main/java/com/antest1/kcanotify/KcaApiData.java
// public static JsonObject getExpeditionInfo(int mission_no, String locale) {
//     JsonObject data = null;
//     int mission_key = mission_no;
//     String key = String.valueOf(mission_key);
//     if (!kcExpeditionData.has(key)) {
//         if (mission_no % 2 == 1) key = "203";
//         else key = "204";
//     }
//     JsonObject rawdata = kcExpeditionData.getAsJsonObject(key);
//     data = new JsonParser().parse(rawdata.toString()).getAsJsonObject();
//     JsonObject name = data.getAsJsonObject("name");
//     if (name.has(locale)) {
//         data.addProperty("name", name.get(locale).getAsString());
//     } else {
//         data.addProperty("name", name.get("en").getAsString());
//     }
//     return data;
// }
// 
// Path: app/src/main/java/com/antest1/kcanotify/KcaApiData.java
// public static String getShipTypeAbbr(int idx) {
//     if (kcStypeData != null && idx < kcStypeData.size()) {
//         return kcStypeData.get(idx).getAsString();
//     } else {
//         return "";
//     }
// }
// 
// Path: app/src/main/java/com/antest1/kcanotify/KcaUtils.java
// public static String joinStr(List<String> list, String delim) {
//     String resultStr = "";
//     if (list.size() > 0) {
//         int i;
//         for (i = 0; i < list.size() - 1; i++) {
//             resultStr = resultStr.concat(list.get(i));
//             resultStr = resultStr.concat(delim);
//         }
//         resultStr = resultStr.concat(list.get(i));
//     }
//     return resultStr;
// }


// Path: app/src/main/java/com/antest1/kcanotify/KcaExpeditionTableViewAdpater.java
import android.content.Context;
import androidx.core.content.ContextCompat;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.google.common.base.Predicate;
import com.google.common.collect.Collections2;
import com.google.gson.Gson;
import com.google.gson.JsonArray;
import com.google.gson.JsonObject;
import com.google.gson.reflect.TypeToken;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;
import static com.antest1.kcanotify.KcaApiData.getExpeditionInfo;
import static com.antest1.kcanotify.KcaApiData.getShipTypeAbbr;
import static com.antest1.kcanotify.KcaUtils.joinStr;

            holder.value_spitem1_type = v.findViewById(R.id.value_spitem1_type);
            holder.value_spitem2_type = v.findViewById(R.id.value_spitem2_type);
            holder.value_spitem1_count = v.findViewById(R.id.value_spitem1_count);
            holder.value_spitem2_count = v.findViewById(R.id.value_spitem2_count);
            holder.value_condition = v.findViewById(R.id.value_condition);

            holder.background_labels = new View[7];
            holder.background_labels[0] = holder.label_no_abs;
            holder.background_labels[1] = v.findViewById(R.id.label_no);
            holder.background_labels[2] = v.findViewById(R.id.label_item_abs);
            holder.background_labels[3] = v.findViewById(R.id.label_item1);
            holder.background_labels[4] = v.findViewById(R.id.label_item2);
            holder.background_labels[5] = v.findViewById(R.id.label_condition);
            holder.background_labels[6] = v.findViewById(R.id.item_bottom);

            holder.greatsuccess_values = new View[7];
            holder.greatsuccess_values[0] = holder.value_resources_abs;
            holder.greatsuccess_values[1] = holder.value_fuel;
            holder.greatsuccess_values[2] = holder.value_ammo;
            holder.greatsuccess_values[3] = holder.value_steel;
            holder.greatsuccess_values[4] = holder.value_bauxite;
            holder.greatsuccess_values[5] = holder.value_hq_exp;
            holder.greatsuccess_values[6] = holder.value_ship_exp;
            v.setTag(holder);
        }

        JsonObject item = listViewItemList.get(position);
        Log.e("KCA", String.valueOf(position) + " " + item.toString() );
        final ViewHolder holder = (ViewHolder) v.getTag();

        int no = item.get("no").getAsInt();