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 No: | |
| def __init__(self,dado): | |
| self.dado = dado | |
| self.prox = None | |
| def __str__(self): | |
| return '{} '.format(self.dado) | |
| class Lista: |
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 Conta: | |
| # construtor da classe | |
| # Essa função é chamada quando um objeto da classe é criado! | |
| def __init__(self,titular,saldo): | |
| # self: utilizamos para criar atributos | |
| #criar os atributos | |
| self.titular = titular | |
| self.saldo = saldo |
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
| #Cada elemento da lista é um dicionario que representa uma pizza | |
| LISTA_PIZZAS = [ | |
| { | |
| 'nome': 'Calabresa', | |
| 'descricao': 'O recheio é preparado com queijo, molho de tomate, calabresa em rodelas, cebola, tomate picado, azeite e orégano.', | |
| 'preco': 40 | |
| }, | |
| { | |
| 'nome': 'Portuguesa', | |
| 'descricao':'queijo, azeitona verde ou preta, ovo cozido, presunto cozido, cebola, ervilha, molho de tomate e azeite.', |
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 No: | |
| def __init__(self,dado): | |
| self.dado = dado | |
| self.prox = None | |
| class Fila: | |
| def __init__(self): | |
| self.inicio = None # primeiro elemento vazio | |
| self.fim = None # Ultimo elemento |
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 com.clemilton.firebaseappsala.util; | |
| import android.app.Activity; | |
| import android.app.AlertDialog; | |
| import android.view.LayoutInflater; | |
| public class LoadingDialog { | |
| private Activity activity; | |
| private AlertDialog dialog; |
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 androidx.appcompat.app.AppCompatActivity; | |
| import android.os.Bundle; | |
| import android.widget.CheckBox; | |
| import android.widget.CompoundButton; | |
| import android.widget.LinearLayout; | |
| import android.widget.RadioButton; | |
| import android.widget.RadioGroup; | |
| import android.widget.TextView; | |
| import android.widget.Toast; |
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 MainActivity extends AppCompatActivity { | |
| private ArrayList<Tarefa> listaTarefas = new ArrayList<>(); | |
| private RecyclerView recyclerView; | |
| @Override | |
| protected void onCreate(Bundle savedInstanceState) { | |
| super.onCreate(savedInstanceState); | |
| setContentView(R.layout.activity_main); | |
| recyclerView = findViewById(R.id.recyclerTarefas); | |
| preencherLista(); |
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 com.clemiltonvp.uploadimages2.adapter; | |
| import android.content.Context; | |
| import android.util.Log; | |
| import android.view.ContextMenu; | |
| import android.view.LayoutInflater; | |
| import android.view.Menu; | |
| import android.view.MenuItem; | |
| import android.view.View; | |
| import android.view.ViewGroup; |
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
| apply plugin: 'com.android.application' | |
| apply plugin: 'com.google.gms.google-services' | |
| android { | |
| compileSdkVersion 30 | |
| buildToolsVersion "30.0.1" | |
| defaultConfig { | |
| applicationId "com.clemiltonvp.uploadimages2" | |
| minSdkVersion 21 | |
| targetSdkVersion 30 |
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 com.clemiltonvp.listafilmes; | |
| import androidx.annotation.NonNull; | |
| public class Filme { | |
| private String nomeFilme; | |
| private String genero; | |
| private String ano; | |
| public Filme(String nomeFilme, String genero, String ano) { |
NewerOlder