Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
yotta
/
pictogram
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
60
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c8c6ea4d
authored
Mar 28, 2016
by
Miguel Ángel García Cumbreras
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Pruebas de ajuster de interfaz
parent
7ac44499
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
11 deletions
android/Pictogram/app/src/main/java/com/yottacode/pictogram/gui/PanelAdapter.java
android/Pictogram/app/src/main/java/com/yottacode/pictogram/gui/PictogramActivity.java
android/Pictogram/app/src/main/java/com/yottacode/pictogram/gui/SerialActivity.java
android/Pictogram/app/src/main/res/drawable-hdpi/image_border.xml
android/Pictogram/app/src/main/res/layout/activity_pictogram.xml
android/Pictogram/app/src/main/res/layout/list_item_img.xml
android/Pictogram/app/src/main/java/com/yottacode/pictogram/gui/PanelAdapter.java
View file @
c8c6ea4d
...
...
@@ -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
...
...
android/Pictogram/app/src/main/java/com/yottacode/pictogram/gui/PictogramActivity.java
View file @
c8c6ea4d
...
...
@@ -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
);
...
...
android/Pictogram/app/src/main/java/com/yottacode/pictogram/gui/SerialActivity.java
View file @
c8c6ea4d
...
...
@@ -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
...
...
android/Pictogram/app/src/main/res/drawable-hdpi/image_border.xml
0 → 100644
View file @
c8c6ea4d
<?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
android/Pictogram/app/src/main/res/layout/activity_pictogram.xml
View file @
c8c6ea4d
...
...
@@ -53,8 +53,8 @@
android:layout_width=
"match_parent"
android:paddingTop=
"20dp"
android:columnWidth=
"100dp"
android:verticalSpacing=
"1
5
dp"
android:horizontalSpacing=
"5dp"
android:verticalSpacing=
"1dp"
android:horizontalSpacing=
"
1
5dp"
android:stretchMode=
"columnWidth"
android:layout_below=
"@+id/tape_grid_view"
>
</GridView>
...
...
android/Pictogram/app/src/main/res/layout/list_item_img.xml
View file @
c8c6ea4d
<?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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment