Android Open Source - gridView Item






From Project

Back to project page gridView.

License

The source code is released under:

Apache License

If you think the Android project gridView listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.datayumyum.pos;
/*from w w w  .j  av a  2 s.  co m*/
import android.util.Log;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

import java.util.HashMap;

/**
 * Created by sto on 3/15/14.
 */
public class Item extends HashMap {
    final static String TAG = "com.datayumyum.pos.Item";

    Item bind(JSONObject jsonObject) {
        JSONArray jsonArray = jsonObject.names();
        for (int i = 0; i < jsonArray.length(); i++) {
            try {
                String name = (String) jsonArray.get(i);
                Object value = jsonObject.get(name);
                put(name, value);
            } catch (JSONException e) {
                Log.e(TAG, e.getMessage());
            }
        }
        return this;
    }
}




Java Source Code List

com.datayumyum.pos.CategoryAdapter.java
com.datayumyum.pos.DownloadImageTask.java
com.datayumyum.pos.GridViewActivity.java
com.datayumyum.pos.ItemButton.java
com.datayumyum.pos.ItemRepository.java
com.datayumyum.pos.Item.java
com.datayumyum.pos.SwipeDismissListViewTouchListener.java
com.datayumyum.pos.SwipeDismissTouchListener.java
com.datayumyum.pos.SwipeListener.java