"> ">
Carregar apresentação
A apresentação está carregando. Por favor, espere
PublicouAnderson Marinho Borja Alterado mais de 7 anos atrás
1
Android Aula 2 Márlon de Oliveira Vaz
2
Android Configurando main.xml com caixas de texto; <LinearLayout android:id= "@+id/linearLayout" android:layout_width="fill_parent" android:layout_height="wrap_content"> <EditText android:id="@+id/editView" android:layout_width="fill_parent" android:layout_height="50dip"/>
3
Android Configurando main.xml com caixas botões; <LinearLayout android:id="@+id/linearLayout" android:layout_width="fill_parent" android:layout_height="wrap_content"> <Button android:layout_height= "wrap_content" android:id="@+id/button4" android:text="4" android:layout_weight="1" android:layout_width="fill_parent"/>
4
Android Código fonte final EditText texto = (EditText) findViewById(R.id.editView); final Button btn1 = (Button) findViewById (R.id.button1); btn1.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { String valor = texto.getText().toString() + btn1.getText().toString(); texto.setText(valor); } });
5
Android Fazer uma interface de calculador com a seguinte caracteristica:
6
Android Adicionar as funcionalidades dos botões;
Apresentações semelhantes
© 2024 SlidePlayer.com.br Inc.
All rights reserved.