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
public static JSONObject convertKeyValueToJSON(LinkedTreeMap<String, Object> ltm) { | |
JSONObject jo=new JSONObject(); | |
Object[] objs = ltm.entrySet().toArray(); | |
for (int l=0;l<objs.length;l++) | |
{ | |
Map.Entry o= (Map.Entry) objs[l]; | |
try { | |
if (o.getValue() instanceof LinkedTreeMap) | |
jo.put(o.getKey().toString(),convertKeyValueToJSON((LinkedTreeMap<String, Object>) o.getValue())); | |
else |
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
final Item[] items = { | |
new Item("Email", android.R.drawable.ic_menu_add), | |
new Item("Facebook", android.R.drawable.ic_menu_delete), | |
new Item("...", 0),//no icon for this one | |
}; | |
ListAdapter adapter = new ArrayAdapter<Item>( | |
this, | |
android.R.layout.select_dialog_item, | |
android.R.id.text1, |
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
String[] ss = getResources().getStringArray(R.array.authors_array); | |
final String[] items = { ss[1],ss[2],ss[3],ss[4],ss[5],ss[6],ss[7],ss[8],ss[0] }; | |
AlertDialog.Builder builder = new AlertDialog.Builder(this); | |
builder.setTitle("نتيجه جستجو"); | |
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, | |
R.layout.row_for_spinner, R.id.lblText, items); | |
builder.setAdapter(adapter, new DialogInterface.OnClickListener() { | |
@Override | |
public void onClick(DialogInterface dialog, int which) { |
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
apiVersion: apps/v1beta1 | |
kind: StatefulSet | |
metadata: | |
name: {{ template "fullname" . }} | |
namespace: "{{ .Values.namespace }}" | |
labels: | |
chart: "chartNameVersion" | |
spec: | |
serviceName: {{ template "fullname" . }} | |
replicas: {{ .Values.replicaCount }} |
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
apiVersion: apps/v1beta1 | |
kind: StatefulSet | |
metadata: | |
name: {{ template "fullname" . }} | |
namespace: "{{ .Values.namespace }}" | |
labels: | |
chart: "chartNameVersion" | |
spec: | |
serviceName: {{ template "fullname" . }} | |
replicas: {{ .Values.replicaCount }} |
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
hello |
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
allprojects { | |
repositories { | |
jcenter() | |
flatDir { | |
dirs 'libs' | |
} | |
} | |
} | |
dependencies { |
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
android { | |
compileSdkVersion 22 | |
buildToolsVersion "22.0.1" | |
defaultConfig { | |
applicationId "com.company.app" | |
minSdkVersion 13 | |
targetSdkVersion 21 | |
versionCode 14 // increment with every release | |
versionName '1.4.8' // change with every release | |
setProperty("archivesBaseName", "MyCompany-MyAppName-$versionName") |
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
.center-align-vertically { | |
position: absolute; | |
top: 50%; | |
transform: translateY(-50%); | |
} |
NewerOlder