4. Datos del Alumno(s) (nombre, grupo, especialidad y Docente) Tipo de
estrategia
Amado Alejandro Ibarra Cervantes ABP
Practica No. Nombre de la Práctica Parcial (marca con "X")
2 Proy02_Lista_de_invitados
1 2
x
3
EVIDENCIA (CODIGO )
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:beckground="@android:color/darker_gray">
<TextView
android:text="Lista de Invitados"
android:layout_width="match_parent"
android:layout_height="127dp"
android:background="#4CAF50"
android:textSize="24sp" />
<TextView
android:text="Oswaldo"
android:layout_width="match_parent"
android:layout_height="127dp"
android:background="#4CAF50"
android:textSize="24sp" />
<TextView
android:text="Axel"
android:layout_width="match_parent"
android:layout_height="127dp"
android:background="#4CAF50"
android:textSize="24sp" />
<TextView
android:text="Elian"
android:layout_width="match_parent"
android:layout_height="127dp"
android:background="#4CAF50"
android:textSize="24sp" />
</LinearLayout>
PRUEBA DE ESCRITORIO
5. Conclusiones Personales
En este programa solo hice unas pequeñas modificaciones de el programa anterior gracias a eso pude enterder como
poner mas valores para especificar el tamaño del recuadro.
6. Datos del Alumno(s) (nombre)
Amado Alejandro Ibarra Cervantes
Practica No. Nombre de la Práctica Parcial (marca con "X")
3 Proy03_Insertar_imagen
1 2
x
EVIDENCIA (CODIGO )
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:src="@drawable/hi"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:scaleType="centerCrop"/>
<TextView
android:text="soy un fondo"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="0"
android:textColor="@android:color/white"
android:textSize="54sp"
android:background="#023d37"/>
<TextView
android:text="that goes for the forest"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="0"
android:textColor="@android:color/white"
android:textSize="34sp"
android:background="#023d37"/>
<TextView
android:text="looking for a part of his cola"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="0"
android:textColor="@android:color/white"
android:textSize="18sp"
android:background="#023d37"/>
</LinearLayout>
PRUEBA DE ESCRITORIO
7. Conclusiones Personales
En esta actividad agregamos una imagen por primera vez en Android al final también le agregamos texto hasta
abajo
8. Datos del Alumno(s) (nombre)
Amado Alejandro Ibarra Cervantes
Practica No. Nombre de la Práctica Parcial (marca con "X")
4 Proy04_RelativeLayout
1 2
x
EVIDENCIA (CODIGO )
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="16dp">
<TextView
android:text="I'minthiscorner"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"/>
<TextView
android:text="No,uphere"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true"/>
<TextView
android:text="Wait,i'mhere"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"/>
<TextView
android:text="Actually, i'mhere"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
12. Conclusiones Personales
Este programa due algo estresante ya que no conocía la forma de hacerlo asi que tuve que pedir ayuda al final logre
poner el fondo correcto
13. Datos del Alumno(s) (nombre)
Amado Alejandro Ibarra Cervantes
Practica No. Nombre de la Práctica Parcial (marca con "X")
6 Proy06_RelativeLayout
1 2
x
EVIDENCIA (CODIGO )
<?xml version="1.0" encoding="utf-8"?>
<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_margin="10sp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:scaleType="centerCrop"
android:src="@drawable/hi"/>
<TextView
android:layout_marginLeft="10sp"
android:layout_marginRight="10sp"
android:text="Playa Plebe"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight=""
android:textSize="44sp"
android:textColor="@android:color/white"
android:background="#009688"/>
<TextView
android:layout_marginLeft="10sp"
android:layout_marginRight="10sp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="California"
android:layout_weight=""
android:textSize="34sp"
android:textColor="@android:color/white"
android:background="#009688"/>
<TextView
android:layout_marginLeft="10sp"
android:layout_marginRight="10sp"
android:layout_marginBottom="10sp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="10 miles away"
android:layout_weight=""
35. float division;
float n1 = Float.parseFloat(insnum1.getText().toString());
float n2 =Float.parseFloat(insnum2.getText().toString());
division =n1/n2;
insr.setText(String.valueOf(division));
}
}
PRUEBA DE ESCRITORIO
Conclusiones Personales
En este programa cree una vista igual que una calculadora la cual la hice funcionar con código en java esta actividad
fue entreetenda ya que tuve que recordar todo lo que había visto antes para hacerla
36. Datos del Alumno(s) (nombre)
Amado Alejandro Ibarra Cervantes
Practica No. Nombre de la Práctica Parcial (marca con "X")
10 Actividad 05”impar”
1 2
x
EVIDENCIA (CODIGO )
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout 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="com.example.lap_c_pc07.jjjjjjjjj.MainActivity">
<TextView
android:id="@+id/textView3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="8dp"
android:text="Escribe un numero"
android:textColorLink="@android:color/black"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintHorizontal_bias="0.022"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.014"
android:layout_marginRight="8dp" />
39. public EditText numero;
public TextViewresultado;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
numero = (EditText)findViewById(R.id.numer);
resultado = (TextView)findViewById(R.id.resultad);
}
public void Verificar(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);
}
public void Borrar(View View){
numero.setText("");
resultado.setText("");
}}
PRUEBA DE ESCRITORIO
40. Conclusiones Personales
En esta actividad lo que hice fue poner edit text al cual con un botón me dira si es par o impar al igual que un botón
de borrar para borrar los datos, fue la primera vez que utilize un if en android