This file contains hidden or 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
| loadAllPokemon() //When the web page is finish to load, the first function to load is this one | |
| // const allPokemon = pokemon["pokemon"] | |
| function loadAllPokemon() { | |
| const allPokemon = pokemon["pokemon"] | |
| renderPokemonListInvView( allPokemon ) | |
| } |
This file contains hidden or 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
| class Dialog private constructor( | |
| val title: String, | |
| val message: String, | |
| val titleColor: Color, | |
| val bodyColor: Color, | |
| val icon: Image, | |
| val onClose: () -> Unit) { | |
| fun show() { | |
| //... |
This file contains hidden or 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
| D/OkHttp: --> POST http://www.fedisal.org.sv:8081/OV/rest/instrumentos/create | |
| D/OkHttp: Content-Type: application/json; charset=UTF-8 | |
| D/OkHttp: Content-Length: 269 | |
| D/OkHttp: BodyRequest: {"fecha":"14/02/2018 05:14:53","instrumento":"1","respuestas":[{"comentario":"","valor":"2","variable":"G1"},{"comentario":"","valor":"3","variable":"G2"},{"comentario":"","valor":"2","variable":"G3"},{"comentario":"El Salvador","valor":"El Salvador","variable":"G4"}]} | |
| D/OkHttp: --> END POST (269-byte body) | |
| D/OkHttp: <-- 200 OK http://www.fedisal.org.sv:8081/OV/rest/instrumentos/create (344ms) | |
| D/OkHttp: X-Powered-By: Servlet/3.0 JSP/2.2 (GlassFish Server Open Source Edition 3.1.2.2 Java/Oracle Corporation/1.7) | |
| D/OkHttp: Server: GlassFish Server Open Source Edition 3.1.2.2 | |
| D/OkHttp: Content-Type: application/json;charset=iso-8859-1 | |
| D/OkHttp: Transfer-Encoding: chunked |
This file contains hidden or 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
| import android.support.v4.app.Fragment; | |
| import android.support.v4.app.FragmentManager; | |
| /** | |
| * Utility class that helps with fragment manipulation. | |
| */ | |
| public class FragmentUtils { | |
| /** |
This file contains hidden or 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 class DataManager { | |
| public void getArticles(final DataManagerCallBacks dataManagerCallBacks){ | |
| Call<UserResponse> call = this.apiService.getArticlesList(); | |
| call.enqueue(new Callback<UserResponse>() { | |
| @Override | |
| public void onResponse(Call<UserResponse> call, Response<UserResponse> response) { | |
| if(response.isSuccessful()){ |
This file contains hidden or 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
| Adapter mAdapter = new Adapter(); | |
| mAdapter.setOnItemClickListener(new OnItemClickListener() { | |
| @Override | |
| public void onItemClickListener(View view, int position) { | |
| //To-do something | |
| } | |
| }); |
This file contains hidden or 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.support.v7.widget.Toolbar | |
| android:id="@+id/toolbar" | |
| android:layout_width="match_parent" | |
| android:layout_height="?attr/actionBarSize" | |
| android:background="?attr/colorPrimary" | |
| app:layout_scrollFlags="scroll|enterAlways" | |
| app:popupTheme="@style/AppTheme.PopupOverlay"> | |
| <ImageView | |
| android:layout_width="wrap_content" | |
| android:layout_height="wrap_content" |
This file contains hidden or 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
| import java.io.IOException; | |
| import java.util.List; | |
| import java.util.Locale; | |
| import android.app.AlertDialog; | |
| import android.app.Service; | |
| import android.content.Context; | |
| import android.content.DialogInterface; | |
| import android.content.Intent; | |
| import android.location.Address; |
This file contains hidden or 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
| private AQuery aq; | |
| private Bitmap preset; | |
| @Override | |
| protected void onCreate(Bundle savedInstanceState) { | |
| this.aq= new AQuery(this.context); | |
| this.preset= aq.getCachedImage(R.drawable.placeholder_slider); //Holder para que cargen las imagenes | |
| } |