Pruebas de ajuster de interfaz

parent 7ac44499
......@@ -106,7 +106,7 @@ public class PanelAdapter extends ArrayAdapter {
imageView = (ImageView) convertView;
}
imageView.setBackgroundColor(color);
// QUITAR imageView.setBackgroundColor(color);
// Propiedades de pictos
// Fuera de la comprobación de convertView y con los else para dejar el estado normal
......
......@@ -150,8 +150,9 @@ public class PictogramActivity extends Activity implements iVocabularyListener,
Point size = new Point();
display.getSize(size);
int width = size.x;
//int height = size.y;
int height = size.y;
tapeGridView.getLayoutParams().width = width - 120;
//tapeGridView.getLayoutParams().height = height - 40;
tapeGridView.requestLayout();
/*
......@@ -198,8 +199,9 @@ public class PictogramActivity extends Activity implements iVocabularyListener,
//final Button deleteAllButton = (Button) findViewById(R.id.button_delete_all);
final ImageButton ttsButton = (ImageButton) findViewById(R.id.button_tts);
// Si los pictogramas son grandes pongo una configuración. Si son pequeños otra...
// Si los pictogramas son grandes pongo una configuración. Si son pequeños otra
int pictogramSize = 0; // ESTE VALOR SE COGE DE LA CONFIGURACION DEL USUARIO (0:normal; 1:large)
if (pictogramSize == 0) panelGridView.setNumColumns(10);
else if (pictogramSize == 1) panelGridView.setNumColumns(4);
......
......@@ -192,11 +192,11 @@ public class SerialActivity extends Activity implements iRestapiListener {
// DE PRUEBA
// Alumno
//username = "faf0001";
//password = "faf0001";
username = "faf0001";
password = "faf0001";
// Supervisor
username = "dofer@ujaen.es";
password = "dofer";
//username = "dofer@ujaen.es";
//password = "dofer";
if (RestapiWrapper.ping(context.getResources().getString(R.string.server),"server/ping",null)) {
// Tengo conexión a internet. Modo ONLINE
......
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<stroke
android:width="7dp"
android:color="#de0707" />
</shape>
\ No newline at end of file
......@@ -53,8 +53,8 @@
android:layout_width="match_parent"
android:paddingTop="20dp"
android:columnWidth="100dp"
android:verticalSpacing="15dp"
android:horizontalSpacing="5dp"
android:verticalSpacing="1dp"
android:horizontalSpacing="15dp"
android:stretchMode="columnWidth"
android:layout_below="@+id/tape_grid_view">
</GridView>
......
<?xml version="1.0" encoding="utf-8"?>
<ImageView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
\ No newline at end of file
android:layout_height="match_parent"
android:background="@drawable/image_border"/>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment