Skip to content

Commit 6ca7680

Browse files
committed
correcciones finales
1 parent ea92a6a commit 6ca7680

File tree

21 files changed

+427
-31
lines changed

21 files changed

+427
-31
lines changed
Binary file not shown.
Binary file not shown.
79.7 KB
Binary file not shown.
0 Bytes
Binary file not shown.
90.3 KB
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
Binary file not shown.
1.37 KB
Binary file not shown.

.idea/caches/gradle_models.ser

0 Bytes
Binary file not shown.

app/release/app-release.apk

-521 Bytes
Binary file not shown.

app/src/main/java/com/example/proyectoandroidtdp/Hamming/VerificarHammingFragment.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@ public void onItemSelected(AdapterView<?> parent, View view, int position, long
6868

6969
switch(position){
7070
case 0: //Hamming 3
71-
txtPolitica1.setText("D = 1, C = 1");
72-
txtPolitica2.setText("D = 2, C = 0");
71+
txtPolitica1.setText("D = 1, C = 1 :");
72+
txtPolitica2.setText("D = 2, C = 0 :");
7373
hammingSeleccionado = HAMMING3;
7474
break;
7575
case 1: //Hamming 4
76-
txtPolitica1.setText("D = 2, C = 1");
77-
txtPolitica2.setText("D = 3, C = 0");
76+
txtPolitica1.setText("D = 2, C = 1 :");
77+
txtPolitica2.setText("D = 3, C = 0 :");
7878
hammingSeleccionado = HAMMING4;
7979
}
8080
}

app/src/main/res/layout/activity_ayuda.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
android:id="@+id/cuerpo_ayuda_generador_rangos"
118118
style="@style/Cuerpos"
119119
android:layout_below="@+id/titulo_generador_rangos"
120-
android:text="@string/cuerpo_ayuda_generar_rangos" />
120+
android:text="@string/texto_ayuda_generar_rangos" />
121121

122122

123123
<View

app/src/main/res/layout/fragment_verificar_hamming.xml

+11-10
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,11 @@
3535

3636
<Spinner
3737
android:id="@+id/spinnerHamming"
38-
android:layout_width="165dp"
38+
android:layout_width="160dp"
3939
android:layout_height="46dp"
4040
android:layout_marginStart="8dp"
4141
android:layout_marginEnd="8dp"
4242
app:layout_constraintEnd_toEndOf="parent"
43-
app:layout_constraintHorizontal_bias="0.418"
4443
app:layout_constraintStart_toEndOf="@+id/txtPaqueteHamming"
4544
app:layout_constraintTop_toTopOf="@+id/txtPaqueteHamming" />
4645

@@ -66,23 +65,25 @@
6665

6766
<TextView
6867
android:id="@+id/txtHammingResult1"
69-
android:layout_width="190sp"
68+
android:layout_width="0dp"
7069
android:layout_height="wrap_content"
71-
android:layout_marginTop="108dp"
72-
android:layout_marginEnd="60dp"
70+
android:layout_marginStart="16dp"
71+
android:layout_marginEnd="8dp"
7372
android:textSize="18sp"
7473
app:layout_constraintEnd_toEndOf="parent"
75-
app:layout_constraintTop_toBottomOf="@+id/spinnerHamming" />
74+
app:layout_constraintStart_toEndOf="@+id/txtHammingPolitica1"
75+
app:layout_constraintTop_toTopOf="@+id/txtHammingPolitica1" />
7676

7777
<TextView
7878
android:id="@+id/txtHammingResult2"
79-
android:layout_width="190sp"
79+
android:layout_width="0dp"
8080
android:layout_height="wrap_content"
81-
android:layout_marginTop="232dp"
82-
android:layout_marginEnd="68dp"
81+
android:layout_marginStart="16dp"
82+
android:layout_marginEnd="8dp"
8383
android:textSize="18sp"
8484
app:layout_constraintEnd_toEndOf="parent"
85-
app:layout_constraintTop_toBottomOf="@+id/spinnerHamming" />
85+
app:layout_constraintStart_toEndOf="@+id/txtHammingPolitica2"
86+
app:layout_constraintTop_toTopOf="@+id/txtHammingPolitica2" />
8687

8788
</android.support.constraint.ConstraintLayout>
8889
</FrameLayout>

app/src/main/res/values/strings.xml

+17-16
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@
2424

2525
<string name="generar_rangos">Generador de Rangos</string>
2626

27-
<string name="cuerpo_ayuda_generar_rangos">* Ingrese la cantidad de bits disponibles y se le mostrará los diferentes
28-
rangos con su correspondiente sistema de representacion.\n* La cantidad de bits disponibles tendra que ser mayor a dos.\n</string>
27+
2928

3029
<string-array name="arraySpinner">
3130
<item>BIN</item>
@@ -56,49 +55,51 @@
5655
<string name="resultado">RESULTADO</string>
5756

5857
<string name="texto_ayuda">* Aquí podrá encontrar la información necesaria para utilizar esta
59-
aplicación.\n</string>
58+
aplicación.\n
59+
</string>
6060

6161
<string name="texto_ayuda_cambio_de_base">* Seleccione la base de origen e ingrese el número no
6262
signado a convertir, ya sea entero o fraccionario. Podrá visualizar el número convertido en
6363
las demás bases.\n
6464
</string>
6565

6666
<string name="texto_ayuda_sistemas_de_representacion">* Seleccione la base de origen y el sistema
67-
de representación en la cual desea ingresar el número a convertir. La aplicación solo
68-
convierte números enteros. Podrá visualizar el número en las diferentes representaciones\n
67+
de representación del número a convertir. Podrá visualizar el número en las diferentes representaciones.\n
6968
</string>
7069

7170
<string name="texto_ayuda_operaciones_aritmeticas">* Seleccione la base de origen y el sistema de
72-
representación en el cual desea realizar la operacion e ingrese los operandos.\n* Ambos
73-
operandos deben ser de igual longitud.\n* En caso de producirse overflow, se le notificará.\n*
74-
Los operandos deberán empezar con su respectivo bit de signo , respetando su sistema de representacion.\n
71+
representación en el cual desea realizar la operación e ingrese los operandos, ambos
72+
deben tener la misma longitud.\n* En caso de producirse overflow, se le notificará. Los operandos
73+
deberán empezar con su respectivo bit de signo, respetando su sistema de representación.\n
7574
</string>
7675

77-
<string name="texto_ayuda_redondeo">* Ingrese un número binario y los dígitos de precisión, luego
78-
presione el botón "Redondear". Se le mostrará el número resultante utilizando los distintos
79-
redondeos.\n
76+
<string name="texto_ayuda_generar_rangos">* Ingrese la cantidad de bits disponibles y se le mostrarán
77+
los rangos de los diferentes sistemas de representación.\n* La cantidad de bits deberá ser
78+
mayor a dos.\n
8079
</string>
8180

82-
<string name="texto_ayuda_rangos">* Ingrese la cantidad de bits y presione el boton "Calcular",
83-
se le mostrarán los rangos corresponientes a cada sistema de representación.
81+
<string name="texto_ayuda_redondeo">* Ingrese un número binario y los dígitos de precisión, luego
82+
presione el botón "Redondear". Se le mostrará el número resultante utilizando los distintos tipos de
83+
redondeo.\n
8484
</string>
8585

86+
8687
<string name="texto_ayuda_generar_crc">* Ingrese el mensaje a transmitir y el polinomio generador
8788
a utilizar, luego presione el boton "Calcular CRC" y se le mostrará el mensaje a transmitir.
8889
\n* Los bits de redundancia serán mostrados en un color distinto.\n
8990
</string>
9091

9192
<string name="texto_ayuda_verificar_crc">* Ingrese el mensaje recibido y el polinomio generador
92-
a utilizar, luego presione el botón "Verificar" y se le mostrará si el mensaje fue recibido
93-
correctamente.\n
93+
utilizado, luego presione el botón "Verificar" y se le mostrará si el mensaje fue recibido
94+
correctamente o con errores.\n
9495
</string>
9596

9697
<string name="texto_ayuda_generar_hamming">* Ingrese los bits de datos a transmitir y se le mostrará su
9798
codificación tanto en Hamming básico como extendido.\n
9899
</string>
99100

100101
<string name="texto_ayuda_verificar_hamming">* Ingrese los bits del paquete recibido y se le mostrará
101-
si fue recibido correctamente o con error de acuerdo a las políticas detalladas.\n
102+
si fue recibido correctamente o con error de acuerdo a las diferentes políticas.\n
102103
</string>
103104

104105
<string name="informacion_inicio">Esta aplicación fue diseñada como parte del final de TDP -
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<com.android.support.constraint>
3+
<constraint-layout-solver versions="1.0.2,1.1.0-beta1,1.1.0-beta2,1.1.0-beta3,1.1.0-beta4,1.1.0-beta5,1.1.0-beta6,1.1.0,1.1.1,1.1.2,1.1.3,2.0.0-alpha1,2.0.0-alpha2,2.0.0-alpha3,2.0.0-alpha4,2.0.0-alpha5,2.0.0-beta1,2.0.0-beta2"/>
4+
<constraint-layout versions="1.0.2,1.1.0-beta1,1.1.0-beta2,1.1.0-beta3,1.1.0-beta4,1.1.0-beta5,1.1.0-beta6,1.1.0,1.1.1,1.1.2,1.1.3,2.0.0-alpha1,2.0.0-alpha2,2.0.0-alpha3,2.0.0-alpha4,2.0.0-alpha5,2.0.0-beta1,2.0.0-beta2"/>
5+
</com.android.support.constraint>

0 commit comments

Comments
 (0)