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
protected TextView genericView() { | |
TextView txtView = new TextView(ctx); | |
txtView.setLayoutParams(new AbsListView.LayoutParams(ViewGroup.LayoutParams.FILL_PARENT, 64)); | |
txtView.setGravity(Gravity.CENTER_VERTICAL | Gravity.LEFT); | |
txtView.setPadding(38, 0, 0, 0); | |
return textView; | |
} |
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
//Vistas para el Grupo | |
@Override | |
public View getGroupView(int groupPosition, boolean isExpanded,View convertView, ViewGroup parent) { | |
TextView txtView = genericView(); | |
String text=getGroup(groupPosition).toString(); | |
txtView.setText(text); | |
return txtView; | |
} | |
//Vistas para el Child |
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 int getChildrenCount(int groupPosition) { | |
int size=mapList.get(getMapGroup(groupPosition)).size(); | |
return size; | |
} | |
@Override | |
public String getGroup(int groupPosition) { | |
String group=(String)getMapGroup(groupPosition); | |
return group; |
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 boolean hasStableIds() { | |
return true; | |
} | |
@Override | |
public boolean isChildSelectable(int groupPosition, int childPosition) { | |
return true; | |
} |
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
//Esto me hara mi adaptador personalizado con listado de personas. | |
//this siempre y cuando sea un Context y mapList un Map<String, List<T>> | |
CustomExpandableListAdapter<Person> myAdapter=new CustomExpandableListAdapter<Person>(this, mapList); |
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
<?php | |
$file_script="data.sql"; | |
//possible option: restore|backup | |
$action="restore"; | |
$user="root"; | |
$pwd="root"; | |
$bd="test"; | |
if($action=="restore"){ |
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
<?php | |
$file_script="data.sql"; | |
//possible option: restore|backup | |
$action="restore"; | |
$user="root"; | |
$pwd="root"; | |
$bd="test"; | |
if($action=="restore"){ |
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
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 | |
http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.blognecronet.miproyecto</groupId> | |
<artifactId>MySQLProyecto</artifactId> | |
<version>1.0</version> |
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
/*Este codigo esta en start.php*/ | |
<?php | |
/*La funcion my_echo($string) es la funcion que publicaremos*/ | |
function my_echo($string) { | |
return $string; | |
} | |
/* Exponemos la funcion con el metodo propio del API RESTful de Elgg */ |
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
function mySecureMethod($parametro=60) { | |
return 'Metodo Verificado Parametro parametro: '.$minutes; | |
} | |
expose_function("test.secureMethod", | |
"mySecureMethod", | |
array("parametro" => array('type' => 'int', | |
'required' => false)), |