REPORTES DE PRÁCTICAS
 NOMBRE: PAULINA ESMERALDA ZAMORANO ROSALES
 GRUPO: 4J
 ESPECIALIDAD: PROGRAMACION
 MAESTRA: MARIA DE LOURDES RAMIREZ VILLASEÑOR
 ESCUELA: CETIS 100
 TURNO: MATUTINO
INDICE
1-Actividad 1: Hola cetis 100………………………………
2-Actividad 2:Lista de invitados…………………………….
3.-Actividad 2: Lista de invitados (Cuadros grandes)…
4-Actividad 2: Lista de invitado (Colores)………………
5-Actividad 3: Invitación……………………………………..
6-Actividad 3 (Invitación completa)………………………...
7-Actividad 3 (Invitación bordes)……………………………
8-Layout1..........................................................................
9-Layout2.........................................................................
10-Calculadora...................................................................
11-Par o impar....................................................................
12-15 botones............................................................
Act 1. Hola cetis 100
Código:
package com.example.holacetis100;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
public class MainActivity extends AppCompatActivity
Button btn_presionar;
TextView texto;
String Mensaje="Hola cetis 100";
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState); "
setContentView(R.layout.activity_main);
btn_presionar - (Button) findViewById(R.id.boton);
texto - (TextView) findViewById(R.id.textView);
btn_presionar.getOClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
texto.getText(Mensaje);
}
} " PALABRAS CLAVE SUBRAYADAS.
Vista del celular:
La actividad de Hola cetis 100 no resulto difícil aunque si se me hizo un poco tardada porque teníamos que ver el código en
mainactiv. y en java pero no es complicado, desde mi punto de vista fue uno de las actividades mas fáciles.
CONCLUSION:
Act 2. Lista de invitados
Código: Vista del celular:
<LinearLayout
xmlns:android=http://schemas.android.com/apk/res/android
Android: orientation="vertical"
Android: layout_width="match_parent"
Android:layout_height="match_parent"
Android: background="@android:color/darker_gray">
<TextView
android:text="@string/lista_de_invitados"
Android:layout_width="wrap_content"
Android:layout_height="wrap_content"
Android:background="#4CAF50"
Android:textSize="24sp" />
<TextView
android:text="@string/Oswaldo"
Android:layout_width="match_parent"
Android:layout_height="wrap_content"
Android:background="#4CAF50"
Android:textSize="24sp" />
<TextView
android:text="@string/axel"
android:layout_width="wrap_content"
Android:layout_height="50dp"
Android:background="#4CAF50" PALABRAS CLAVE SUBRAYADAS.
Android:textSize="24sp" />
<TextView
android:text="@string/Elian"
Android:layout_width="wrap_content"Android:layout_height="wrap_content"
Android:background="#4CAF50"
Android:textSize="24sp />
</LinearLayout
La actividad numero 2 me pareció fácil ya que crear el código no resulta complicado y la maestra nos apoyó mucho.En esta actividad debo de mostrar una
lista de invitados los cuales son tres personas y con un fondo verde.
CONCLUSION:
Act 2. Lista de invitados (Cuadros grandes)
Código: Vista del celular:
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/darker_gray">
<TextView
android:text="Lista de invitados"
android:layout_weight="1.5"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#4CAF50"
android:textSize="24sp" />
<TextView
android:text="Oswaldo"
android:layout_weight="1.5"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#4CAF50"
android:textSize="24sp" />
<TextView
android:text="Axel"
android:layout_weight="1.5"
android:layout_width="match_parent" PALABRAS CLAVE SUBRAYADAS.
android:layout_height="50dp"
android:background="#4CAF50"
android:textSize="24sp" />
<TextView
android:text="Elian"
android:layout_weight="1.5"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#4CAF50"
android;textSize=”24sp”/>
</LinearLayout
CONCLUSION:
En esta actividad, es igual que la anterior aunque tenemos que editarla creando los cuadros de los nombres más
grandes pero del mismo color.
Act 2. Lista de invitado (Colores)
Código: Vista del celular:
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/darker_gray">
<TextView
android:text="Lista de invitados"
android:layout_weight="1.5"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#4CAF50"
android:textSize="24sp" />
<TextView
android:text="Oswaldo"
android:layout_weight="1.5"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#4CAF50"
android:textSize="24sp" />
<TextView
android:text="Axel"
android:layout_weight="1.5"
PALABRAS CLAVE SUBRAYADAS
android:layout_width="match_parent"
android:layout_height="50dp"
android:background="#4CAF50"
android:textSize="24sp" />
<TextView
android:text="Elian"
android:layout_weight="1.5"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_height="wrap_content"
android:background="#4CAF50"android:textSiz
e="24sp"/>
CONCLUSION:
En esta página sigue siendo la actividad numero dos pero ahora además de que los recuadros son de un tamaño más grande cada uno de
los invitados tiene un color distinto, de esta manera se ve mucho más llamativo y creativo
Act 3. Invitación
Código: :
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<ImageView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="l"
android:background="@drawable/borde"
android:scaleType="fitXY"
android:src="@drawable/por_si_si" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0"
android:background="@drawable/borde"
android:text="Bienvenido a mi programa"
android:textColor="@android:color/black"
android:textSize="44sp" />
<TextView
android:layout_width="wrap_content" PALABRAS CLAVE SUBRAYADAS
android:layout_height="wrap_content"
android:layout_weight="20"
android:background="@drawable/borde"
android:text="Espero que le guste"
android:textColor="@android:color/black"
android:textSize="34sp" />
</LinearLayout>
CONCLUSION:
En esta actividad creamos una invitacion en la cual necesitabamos incluir todos los datos.
Act 3. (Invitación completa)
Código:
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
Android:orientation="vertical"
android:layout_width="wrap_content"
Android:layout_height="wrap_content">
<ImageView
Android:layout_width="421dp"
Android:layout_height="453dp"
Android:layout_weight="1"
android:contentDescription="@string/todo"
Android:scaleType="centerCrop"
android:src="@drawable/por_si_no" />
<TextView
Android:layout_width="343dp"
Android: layout_height="wrap_content"
android:layout_weight="0"
android:background="#009688"
android:text="@string/you_re_invited"
android:textColor="@android:color/white"
android:textSize="54sp" />
<TextView
android:layout_width="314dp"
android:layout_height="wrap_content"
android:layout_weight="1" PALABRAS CLAVE SUBRAYADAS
android:background="#009688"
android:text="@string/bonfire_at_the_beach"
android:textColor="@android:color/white"
android:textSize="34sp" />
</LinearLayout
CONCLUSION:
En esta actividad es la parte dos de la actividad antes de esta, solo que incluimos mas cosas.
Act. 3 (Invitación bordes)
Codigo: Vista del celular:
<ImageView
android:layout_width="match_parent"
android:layout_height="412dp"
android:layout_weight="2"
android:background="@drawable/borde"
android:scaleType="fitXY"
android:src="@drawable/f" />
<TextView
android:layout_width="401dp"
android:layout_height="wrap_content"
android:layout_weight="0"
android:background="@drawable/borde"
android:text="you're invited!"
android:textColor="@android:color/black"
android:textSize="44sp" />
<TextView
android:layout_width="399dp"
android:layout_height="41dp"
android:layout_weight="20"
android:background="@drawable/borde"
android:text="bonfire at the beach"
android:textColor="@android:color/black" PALABRAS CLAVE SUBRAYADAS
android:textSize="34sp" />
</LinearLayout>
CONCLUSION:
La invitacion 3 es la de con bordes en la cual se termina de complementar la invitacion, me parecio un poco
complicada ya incluimos imagenes y codigos
Layout1
Codigo:
Vista del celular:
CONCLUSION:
Esta actividad me parecio dificil, pero con la ayuda de mis compañeros lo pude comprender
Layout 2
Codigo:
CONCLUSION:
Esta actividad me parecio complicada
Calculadora
Codigo:
text
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity"
android:orientation="vertical">
<TextView
android:id="@+id/textView2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Numero 1"
android:textSize="25sp"/>
<EditText
android:id="@+id/editnum1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10"
android:hint="Introduce el valor 1"
android:inputType="numberDecimal" />
<TextView
android:id="@+id/textView3"
android:layout_width="match_parent"
CONCLUSION:
Esrta actividad me parecio demasiado facil ya que el codigo no estuvo complicado y solo era insertar botones o textos.
Calculadora
android:layout_height="wrap_content"
android:text="Numero 2"
android:textSize="25sp"/>
<EditText
android:id="@+id/editnum2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10"
android:inputType="numberDecimal"
tools:hint="Introduce el valor 2" />
<Button
android:id="@+id/btnsuma"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="operacionSumar"
android:text="SUMA" />
<Button
android:id="@+id/btnresta"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="operacionResta"
android:text="RESTA" />
<Button
android:id="@+id/btnmultiplicacion"
android:layout_width="match_parent" PALABRAS CLAVE SUBRAYADA
android:layout_height="wrap_content"
android:onClick="operacionMultiplicacion"
Calculadora
android:text="MULTIPLICACION" />
<Button
android:id="@+id/btndivision"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="operacionDivision"
android:text="DIVISION" />
<TextView
android:id="@+id/textView4"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Resultado"
android:textSize="25sp"/>
<EditText
android:id="@+id/editnum3" PALABRAS CLAVE SUBRAYADAS
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10"
android:inputType="numberDecimal"
tools:hint="Resultado aqui" />
</LinearLayout>
java
package com.example.calculadora;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
Calculadora
public class MainActivity extends AppCompatActivity {
public EditText numero1, numero2, resultado;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
numero1 = (EditText) findViewById(R.id.editnum1);
numero2 = (EditText) findViewById(R.id.editnum2);
resultado = (EditText) findViewById(R.id.editnum3);
}
public void operacionSuma(View view)
{
float suma;
float n1 = Float.parseFloat(numero1.getText().toString());
float n2 = Float.parseFloat(numero2.getText().toString());
suma = n1 + n2;
resultado.setText(String.valueOf(suma));
}
public void operacionResta(View view)
{
float resta;
float n1 = Float.parseFloat(numero1.getText().toString());
float n2 = Float.parseFloat(numero2.getText().toString());
resta = n1 - n2;
resultado.setText(String.valueOf(resta));
Par o impar
Codigo:
package com.example.myapplication;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
public class MainActivity extends AppCompatActivity {
public EditText numero;
public TextView resultado;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
numero=(EditText)findViewById(R.id.editText_num);
resultado=(TextView)findViewById(R.id.textView_resultado);
}
public MainActivity(View view){
int num;
String respuesta;
num=Integer.parseInt(numero.getText().toString());
if (num%2==0)
respuesta="Numero par";
else
respuesta="Numero impar";
resultado.setText(respuesta);
}
}
CODIGO:
Para esta activid. Creamos una app en la cual muestre que numeros son impares o pares.
15 botones
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".MainActivity">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<Button
android:id="@+id/button14"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Button" />
<Button
android:id="@+id/button5"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Button" />
<Button
CODIGO:
Esta actividad me parecio un poco complicada ya que se me hizo muy tediosa
15 botones
android:id="@+id/button4"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Button" />
<Button
android:id="@+id/button13"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Button" />
<Button
android:id="@+id/button7"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Button" />
<Button
android:id="@+id/button9"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Button" />
<Button
android:id="@+id/button12"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Button" />
<Button
android:id="@+id/button11"
android:layout_width="match_parent"
15 botones
android:layout_height="wrap_content"
android:text="Button" />
<Button
android:id="@+id/button10"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Button" />
<Button
android:id="@+id/button6"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Button" />
<Button
android:id="@+id/button8"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Button" />
<Button
android:id="@+id/button3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Button" />
<Button
android:id="@+id/button2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Button" />
15 botones
android:id="@+id/button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Button" />
<Button
android:id="@+id/button15"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Button" />
</LinearLayout>
</ScrollView>
</LinearLayout>
Lulureporte

Lulureporte

  • 1.
    REPORTES DE PRÁCTICAS NOMBRE: PAULINA ESMERALDA ZAMORANO ROSALES  GRUPO: 4J  ESPECIALIDAD: PROGRAMACION  MAESTRA: MARIA DE LOURDES RAMIREZ VILLASEÑOR  ESCUELA: CETIS 100  TURNO: MATUTINO
  • 2.
    INDICE 1-Actividad 1: Holacetis 100……………………………… 2-Actividad 2:Lista de invitados……………………………. 3.-Actividad 2: Lista de invitados (Cuadros grandes)… 4-Actividad 2: Lista de invitado (Colores)……………… 5-Actividad 3: Invitación…………………………………….. 6-Actividad 3 (Invitación completa)………………………... 7-Actividad 3 (Invitación bordes)…………………………… 8-Layout1.......................................................................... 9-Layout2......................................................................... 10-Calculadora................................................................... 11-Par o impar.................................................................... 12-15 botones............................................................
  • 3.
    Act 1. Holacetis 100 Código: package com.example.holacetis100; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.TextView; public class MainActivity extends AppCompatActivity Button btn_presionar; TextView texto; String Mensaje="Hola cetis 100"; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); " setContentView(R.layout.activity_main); btn_presionar - (Button) findViewById(R.id.boton); texto - (TextView) findViewById(R.id.textView); btn_presionar.getOClickListener(new View.OnClickListener() { @Override public void onClick(View v) { texto.getText(Mensaje); } } " PALABRAS CLAVE SUBRAYADAS. Vista del celular: La actividad de Hola cetis 100 no resulto difícil aunque si se me hizo un poco tardada porque teníamos que ver el código en mainactiv. y en java pero no es complicado, desde mi punto de vista fue uno de las actividades mas fáciles. CONCLUSION:
  • 4.
    Act 2. Listade invitados Código: Vista del celular: <LinearLayout xmlns:android=http://schemas.android.com/apk/res/android Android: orientation="vertical" Android: layout_width="match_parent" Android:layout_height="match_parent" Android: background="@android:color/darker_gray"> <TextView android:text="@string/lista_de_invitados" Android:layout_width="wrap_content" Android:layout_height="wrap_content" Android:background="#4CAF50" Android:textSize="24sp" /> <TextView android:text="@string/Oswaldo" Android:layout_width="match_parent" Android:layout_height="wrap_content" Android:background="#4CAF50" Android:textSize="24sp" /> <TextView android:text="@string/axel" android:layout_width="wrap_content" Android:layout_height="50dp" Android:background="#4CAF50" PALABRAS CLAVE SUBRAYADAS. Android:textSize="24sp" /> <TextView android:text="@string/Elian" Android:layout_width="wrap_content"Android:layout_height="wrap_content" Android:background="#4CAF50" Android:textSize="24sp /> </LinearLayout La actividad numero 2 me pareció fácil ya que crear el código no resulta complicado y la maestra nos apoyó mucho.En esta actividad debo de mostrar una lista de invitados los cuales son tres personas y con un fondo verde. CONCLUSION:
  • 5.
    Act 2. Listade invitados (Cuadros grandes) Código: Vista del celular: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@android:color/darker_gray"> <TextView android:text="Lista de invitados" android:layout_weight="1.5" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="#4CAF50" android:textSize="24sp" /> <TextView android:text="Oswaldo" android:layout_weight="1.5" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="#4CAF50" android:textSize="24sp" /> <TextView android:text="Axel" android:layout_weight="1.5" android:layout_width="match_parent" PALABRAS CLAVE SUBRAYADAS. android:layout_height="50dp" android:background="#4CAF50" android:textSize="24sp" /> <TextView android:text="Elian" android:layout_weight="1.5" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="#4CAF50" android;textSize=”24sp”/> </LinearLayout CONCLUSION: En esta actividad, es igual que la anterior aunque tenemos que editarla creando los cuadros de los nombres más grandes pero del mismo color.
  • 6.
    Act 2. Listade invitado (Colores) Código: Vista del celular: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@android:color/darker_gray"> <TextView android:text="Lista de invitados" android:layout_weight="1.5" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="#4CAF50" android:textSize="24sp" /> <TextView android:text="Oswaldo" android:layout_weight="1.5" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="#4CAF50" android:textSize="24sp" /> <TextView android:text="Axel" android:layout_weight="1.5" PALABRAS CLAVE SUBRAYADAS android:layout_width="match_parent" android:layout_height="50dp" android:background="#4CAF50" android:textSize="24sp" /> <TextView android:text="Elian" android:layout_weight="1.5" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_height="wrap_content" android:background="#4CAF50"android:textSiz e="24sp"/> CONCLUSION: En esta página sigue siendo la actividad numero dos pero ahora además de que los recuadros son de un tamaño más grande cada uno de los invitados tiene un color distinto, de esta manera se ve mucho más llamativo y creativo
  • 7.
    Act 3. Invitación Código:: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <ImageView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="l" android:background="@drawable/borde" android:scaleType="fitXY" android:src="@drawable/por_si_si" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="0" android:background="@drawable/borde" android:text="Bienvenido a mi programa" android:textColor="@android:color/black" android:textSize="44sp" /> <TextView android:layout_width="wrap_content" PALABRAS CLAVE SUBRAYADAS android:layout_height="wrap_content" android:layout_weight="20" android:background="@drawable/borde" android:text="Espero que le guste" android:textColor="@android:color/black" android:textSize="34sp" /> </LinearLayout> CONCLUSION: En esta actividad creamos una invitacion en la cual necesitabamos incluir todos los datos.
  • 8.
    Act 3. (Invitacióncompleta) Código: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" Android:orientation="vertical" android:layout_width="wrap_content" Android:layout_height="wrap_content"> <ImageView Android:layout_width="421dp" Android:layout_height="453dp" Android:layout_weight="1" android:contentDescription="@string/todo" Android:scaleType="centerCrop" android:src="@drawable/por_si_no" /> <TextView Android:layout_width="343dp" Android: layout_height="wrap_content" android:layout_weight="0" android:background="#009688" android:text="@string/you_re_invited" android:textColor="@android:color/white" android:textSize="54sp" /> <TextView android:layout_width="314dp" android:layout_height="wrap_content" android:layout_weight="1" PALABRAS CLAVE SUBRAYADAS android:background="#009688" android:text="@string/bonfire_at_the_beach" android:textColor="@android:color/white" android:textSize="34sp" /> </LinearLayout CONCLUSION: En esta actividad es la parte dos de la actividad antes de esta, solo que incluimos mas cosas.
  • 9.
    Act. 3 (Invitaciónbordes) Codigo: Vista del celular: <ImageView android:layout_width="match_parent" android:layout_height="412dp" android:layout_weight="2" android:background="@drawable/borde" android:scaleType="fitXY" android:src="@drawable/f" /> <TextView android:layout_width="401dp" android:layout_height="wrap_content" android:layout_weight="0" android:background="@drawable/borde" android:text="you're invited!" android:textColor="@android:color/black" android:textSize="44sp" /> <TextView android:layout_width="399dp" android:layout_height="41dp" android:layout_weight="20" android:background="@drawable/borde" android:text="bonfire at the beach" android:textColor="@android:color/black" PALABRAS CLAVE SUBRAYADAS android:textSize="34sp" /> </LinearLayout> CONCLUSION: La invitacion 3 es la de con bordes en la cual se termina de complementar la invitacion, me parecio un poco complicada ya incluimos imagenes y codigos
  • 10.
    Layout1 Codigo: Vista del celular: CONCLUSION: Estaactividad me parecio dificil, pero con la ayuda de mis compañeros lo pude comprender
  • 11.
  • 12.
    Calculadora Codigo: text <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity" android:orientation="vertical"> <TextView android:id="@+id/textView2" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Numero1" android:textSize="25sp"/> <EditText android:id="@+id/editnum1" android:layout_width="match_parent" android:layout_height="wrap_content" android:ems="10" android:hint="Introduce el valor 1" android:inputType="numberDecimal" /> <TextView android:id="@+id/textView3" android:layout_width="match_parent" CONCLUSION: Esrta actividad me parecio demasiado facil ya que el codigo no estuvo complicado y solo era insertar botones o textos.
  • 13.
    Calculadora android:layout_height="wrap_content" android:text="Numero 2" android:textSize="25sp"/> <EditText android:id="@+id/editnum2" android:layout_width="match_parent" android:layout_height="wrap_content" android:ems="10" android:inputType="numberDecimal" tools:hint="Introduce elvalor 2" /> <Button android:id="@+id/btnsuma" android:layout_width="match_parent" android:layout_height="wrap_content" android:onClick="operacionSumar" android:text="SUMA" /> <Button android:id="@+id/btnresta" android:layout_width="match_parent" android:layout_height="wrap_content" android:onClick="operacionResta" android:text="RESTA" /> <Button android:id="@+id/btnmultiplicacion" android:layout_width="match_parent" PALABRAS CLAVE SUBRAYADA android:layout_height="wrap_content" android:onClick="operacionMultiplicacion"
  • 14.
    Calculadora android:text="MULTIPLICACION" /> <Button android:id="@+id/btndivision" android:layout_width="match_parent" android:layout_height="wrap_content" android:onClick="operacionDivision" android:text="DIVISION" /> <TextView android:id="@+id/textView4" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Resultado" android:textSize="25sp"/> <EditText android:id="@+id/editnum3"PALABRAS CLAVE SUBRAYADAS android:layout_width="match_parent" android:layout_height="wrap_content" android:ems="10" android:inputType="numberDecimal" tools:hint="Resultado aqui" /> </LinearLayout> java package com.example.calculadora; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.EditText;
  • 15.
    Calculadora public class MainActivityextends AppCompatActivity { public EditText numero1, numero2, resultado; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); numero1 = (EditText) findViewById(R.id.editnum1); numero2 = (EditText) findViewById(R.id.editnum2); resultado = (EditText) findViewById(R.id.editnum3); } public void operacionSuma(View view) { float suma; float n1 = Float.parseFloat(numero1.getText().toString()); float n2 = Float.parseFloat(numero2.getText().toString()); suma = n1 + n2; resultado.setText(String.valueOf(suma)); } public void operacionResta(View view) { float resta; float n1 = Float.parseFloat(numero1.getText().toString()); float n2 = Float.parseFloat(numero2.getText().toString()); resta = n1 - n2; resultado.setText(String.valueOf(resta));
  • 16.
    Par o impar Codigo: packagecom.example.myapplication; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.EditText; import android.widget.TextView; public class MainActivity extends AppCompatActivity { public EditText numero; public TextView resultado; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); numero=(EditText)findViewById(R.id.editText_num); resultado=(TextView)findViewById(R.id.textView_resultado); } public MainActivity(View view){ int num; String respuesta; num=Integer.parseInt(numero.getText().toString()); if (num%2==0) respuesta="Numero par"; else respuesta="Numero impar"; resultado.setText(respuesta); } } CODIGO: Para esta activid. Creamos una app en la cual muestre que numeros son impares o pares.
  • 17.
    15 botones <?xml version="1.0"encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" tools:context=".MainActivity"> <ScrollView android:layout_width="match_parent" android:layout_height="match_parent"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" > <Button android:id="@+id/button14" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Button" /> <Button android:id="@+id/button5" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Button" /> <Button CODIGO: Esta actividad me parecio un poco complicada ya que se me hizo muy tediosa
  • 18.
    15 botones android:id="@+id/button4" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Button" /> <Button android:id="@+id/button13" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Button"/> <Button android:id="@+id/button7" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Button" /> <Button android:id="@+id/button9" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Button" /> <Button android:id="@+id/button12" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Button" /> <Button android:id="@+id/button11"
  • 19.
    android:layout_width="match_parent" 15 botones android:layout_height="wrap_content" android:text="Button" /> <Button android:id="@+id/button10" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Button"/> <Button android:id="@+id/button6" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Button" /> <Button android:id="@+id/button8" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Button" /> <Button android:id="@+id/button3" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Button" /> <Button android:id="@+id/button2" android:layout_width="match_parent" android:layout_height="wrap_content"
  • 20.
    android:text="Button" /> 15 botones android:id="@+id/button" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Button"/> <Button android:id="@+id/button15" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Button" /> </LinearLayout> </ScrollView> </LinearLayout>