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
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:orientation="horizontal" | |
android:id="@+id/activity_cadastro" | |
android:weightSum="2" <!- O detalhe está aqui | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content"> | |
<Button |
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
package br.com.geifferson.today; | |
import android.content.Intent; | |
import android.content.pm.PackageInfo; | |
import android.content.pm.PackageManager; | |
import android.content.pm.Signature; | |
import android.os.Bundle; | |
import android.support.v7.app.AppCompatActivity; | |
import android.util.Base64; | |
import android.util.Log; |
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 void callLoopjPut() { | |
AsyncHttpClient client = new AsyncHttpClient(); | |
RequestParams params = new RequestParams(); | |
params.add("id", "10"); | |
params.add("name", "Felipe"); | |
params.add("email", "[email protected]"); | |
client.put(Teste.this, "http://www.minha-api.com.br/editarCadastro", params, new AsyncHttpResponseHandler() { |
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.os.Bundle; | |
import android.support.v7.app.ActionBar; | |
import android.support.v7.app.AppCompatActivity; | |
public class MainActivity extends AppCompatActivity { | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); |
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 CourseAdapter extends RecyclerView.Adapter<CourseAdapter.CourseViewHolder> { | |
List<Course> courseList; | |
public CourseAdapter(List<Course> courseList) { | |
this.courseList = courseList; | |
} |
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.content.Context; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.BaseAdapter; | |
import android.widget.TextView; | |
import java.util.List; | |
import br.com.interaje.projetoListview.R; |
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 javax.swing.JOptionPane; | |
/** | |
* | |
* @author Felipe | |
*/ | |
public class Exercicio1 { | |
/* | |
* Responda as questões ao final do arquivo. |
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.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; | |
import java.util.Scanner; | |
/** | |
* | |
* @author rayquaza | |
*/ | |
public class JavaIntro2 { |
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
/** | |
* | |
* @author rayquaza | |
*/ | |
// public = Significa que esta classe esta visível para outras classes. | |
// class = Classes são diagramas usados para modelar objetos que contém atributos e métodos. | |
// JavaIntro = Nome da classe. | |
// { = É a chave que abre a classe e envolve o código usado por JavaIntro | |
public class JavaIntro { |
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
@Override | |
public void run() { | |
while (isRunning) { | |
// Verifica se o holder está pronto para receber os elementos (Desenhos). | |
if (holder.getSurface().isValid()) { | |
Canvas canvas = holder.lockCanvas(); | |
// Desenhar o jogo aqui | |
canvas.drawBitmap(background, 0, 0, null); |