Back to project page NoiseBridge_General.
The source code is released under:
GPLv3.txt
If you think the Android project NoiseBridge_General listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.noysbrij.fragments; import android.os.*; import android.support.v4.app.*; import android.util.*; import android.view.*; import android.widget.*; import com.noysbrij.noisebridgeGeneral.*; import com.noysbrij.noisebridgeGeneral.TicketsExpandableListAdapter; // w w w. ja v a2 s .co m public class ListViewFragment extends Fragment { public String ARG_URI = "listId"; // SparseArray<Group> groups = new SparseArray<Group>(); @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate( R.layout.layout_tickets, container, false); // Bundle args = getArguments(); // More efficient than HashMap for mapping integers to objects // createData(); // ExpandableListView listView = (ExpandableListView) findViewById(R.id.list_view); // TicketsExpandableListAdapter adapter = new TicketsExpandableListAdapter(this, groups); // listView.setAdapter(adapter); // } // // // public void createData() { // for (int j = 0; j < 5; j++) { // Group group = new Group("Test " + j); // for (int i = 0; i < 5; i++) { // group.children.add("Sub Item" + i); // } // groups.append(j, group); // } // } // try // { //// displayTickets(); // //problem with static contest // //but webview works // // Log.e(TAG, "Debug #1"); // // Log.i(TAG, "ticketsListView2: "+ticketsListView.toString()); // // textId.setText(R.string.textIdLabel + "" + result.profileId.get(Integer.parseInt(enterId.getText().toString())).matches.get(5).score); // } // catch (NumberFormatException e) // { // // Log.i(TAG, "Debug #5"); // // Toast.makeText(this, R.string.bad_int, Toast.LENGTH_SHORT).show(); // } // return view; } }