This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SoundPoolManager.getInstance().play(getContext(), R.raw.any_sound); | |
MediaPlayerManager.getInstance().play(getContext(), R.raw.any_sound); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @param in | |
* @return | |
*/ | |
private String readStream(InputStream in) { | |
BufferedReader reader = null; | |
StringBuffer response = new StringBuffer(); | |
try { | |
reader = new BufferedReader(new InputStreamReader(in)); | |
String line = ""; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public View getGroupView(int groupPosition, boolean isExpanded, | |
View convertView, ViewGroup parent) { | |
String headerTitle = (String) getGroup(groupPosition); | |
if (convertView == null) { | |
LayoutInflater infalInflater = (LayoutInflater) this._context | |
.getSystemService(Context.LAYOUT_INFLATER_SERVICE); | |
convertView = infalInflater.inflate(R.layout.expandable_list_group, null); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.widgets; | |
import android.content.Context; | |
import android.os.Bundle; | |
import android.support.v4.content.ContextCompat; | |
import android.view.LayoutInflater; | |
import android.view.MotionEvent; | |
import android.view.View; | |
import android.view.ViewGroup; |