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
ac2cc386
authored
Mar 21, 2017
by
Sebastián Collado Montañez
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'develop' of
http://gitlab.ujaen.es/yotta/pictogram
into develop
parents
3ddf2fec
636f7328
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
55 additions
and
39 deletions
android/Pictogram/tabletlibrary/build.gradle
android/Pictogram/tabletlibrary/src/main/java/com/yottacode/pictogram/tabletlibrary/gui/communicator/PictoMenu.java
android/Pictogram/tabletlibrary/src/main/java/com/yottacode/pictogram/tabletlibrary/gui/communicator/PictogramActivity.java
android/Pictogram/tabletlibrary/src/main/java/com/yottacode/pictogram/tabletlibrary/gui/communicator/cropper/CropImageView.java
android/Pictogram/tabletlibrary/src/main/java/com/yottacode/pictogram/tabletlibrary/gui/communicator/cropper/EditPictoActivity.java
android/Pictogram/tabletlibrary/src/main/java/com/yottacode/pictogram/tabletlibrary/gui/communicator/cropper/util/PaintUtil.java
android/Pictogram/tabletlibrary/src/main/res/drawable-hdpi/record_animation.gif
android/Pictogram/tabletlibrary/src/main/res/layout/edit_picto_layout.xml
android/Pictogram/tabletlibrary/build.gradle
View file @
ac2cc386
...
@@ -31,4 +31,5 @@ dependencies {
...
@@ -31,4 +31,5 @@ dependencies {
compile
project
(
':commonlibrary'
)
compile
project
(
':commonlibrary'
)
compile
'com.android.support:appcompat-v7:24.2.1'
compile
'com.android.support:appcompat-v7:24.2.1'
compile
'com.android.support:support-v4:24.2.1'
compile
'com.android.support:support-v4:24.2.1'
compile
'pl.droidsonroids.gif:android-gif-drawable:1.1.+'
}
}
android/Pictogram/tabletlibrary/src/main/java/com/yottacode/pictogram/tabletlibrary/gui/communicator/PictoMenu.java
View file @
ac2cc386
...
@@ -87,7 +87,7 @@ public class PictoMenu {
...
@@ -87,7 +87,7 @@ public class PictoMenu {
activity
.
getIntent
().
putExtra
(
Picto
.
JSON_ATTTRS
.
EXPRESSION
,
expression
);
activity
.
getIntent
().
putExtra
(
Picto
.
JSON_ATTTRS
.
EXPRESSION
,
expression
);
//Enviar al PictogramActivity los datos necesarios para crear el picto despues
//Enviar al PictogramActivity los datos necesarios para crear el picto despues
if
(
PCBcontext
.
getPcbdb
().
getCurrentUser
().
has_categories
())
{
if
(
PCBcontext
.
getPcbdb
().
getCurrentUser
().
has_categories
())
{
activity
.
getIntent
().
putExtra
(
"cat"
,
cat
);
activity
.
getIntent
().
putExtra
(
Picto
.
JSON_ATTTRS
.
CATEGORY
,
cat
);
activity
.
getIntent
().
putExtra
(
Picto
.
JSON_ATTTRS
.
ROW
,
row
);
activity
.
getIntent
().
putExtra
(
Picto
.
JSON_ATTTRS
.
ROW
,
row
);
activity
.
getIntent
().
putExtra
(
Picto
.
JSON_ATTTRS
.
COLUMN
,
col
);
activity
.
getIntent
().
putExtra
(
Picto
.
JSON_ATTTRS
.
COLUMN
,
col
);
}
else
{
}
else
{
...
@@ -113,7 +113,7 @@ public class PictoMenu {
...
@@ -113,7 +113,7 @@ public class PictoMenu {
intent
.
putExtra
(
Picto
.
JSON_ATTTRS
.
EXPRESSION
,
expression
);
intent
.
putExtra
(
Picto
.
JSON_ATTTRS
.
EXPRESSION
,
expression
);
//Enviar al PictogramActivity los datos necesarios para editar el picto despues
//Enviar al PictogramActivity los datos necesarios para editar el picto despues
if
(
PCBcontext
.
getPcbdb
().
getCurrentUser
().
has_categories
())
{
if
(
PCBcontext
.
getPcbdb
().
getCurrentUser
().
has_categories
())
{
intent
.
putExtra
(
"cat"
,
cat
);
intent
.
putExtra
(
Picto
.
JSON_ATTTRS
.
CATEGORY
,
cat
);
intent
.
putExtra
(
Picto
.
JSON_ATTTRS
.
ROW
,
row
);
intent
.
putExtra
(
Picto
.
JSON_ATTTRS
.
ROW
,
row
);
intent
.
putExtra
(
Picto
.
JSON_ATTTRS
.
COLUMN
,
col
);
intent
.
putExtra
(
Picto
.
JSON_ATTTRS
.
COLUMN
,
col
);
}
else
{
}
else
{
...
@@ -140,11 +140,6 @@ public class PictoMenu {
...
@@ -140,11 +140,6 @@ public class PictoMenu {
}
}
intent
.
putExtra
(
"tipo"
,
true
);
intent
.
putExtra
(
"tipo"
,
true
);
Log
.
i
(
"TAG_PRUEBAS"
,
"---setPicto---"
);
Log
.
i
(
"TAG_PRUEBAS"
,
"row: "
+
row
);
Log
.
i
(
"TAG_PRUEBAS"
,
"col: "
+
col
);
Log
.
i
(
"TAG_PRUEBAS"
,
"expression: "
+
expression
);
activity
.
startActivityForResult
(
intent
,
EditPictoActivity
.
EDIT_PICTO_REQUEST
);
activity
.
startActivityForResult
(
intent
,
EditPictoActivity
.
EDIT_PICTO_REQUEST
);
}
}
...
...
android/Pictogram/tabletlibrary/src/main/java/com/yottacode/pictogram/tabletlibrary/gui/communicator/PictogramActivity.java
View file @
ac2cc386
...
@@ -1127,8 +1127,6 @@ protected void showOnlyTape(boolean onlyTape) {
...
@@ -1127,8 +1127,6 @@ protected void showOnlyTape(boolean onlyTape) {
protected
void
onActivityResult
(
int
requestCode
,
int
resultCode
,
Intent
data
)
{
protected
void
onActivityResult
(
int
requestCode
,
int
resultCode
,
Intent
data
)
{
super
.
onActivityResult
(
requestCode
,
resultCode
,
data
);
super
.
onActivityResult
(
requestCode
,
resultCode
,
data
);
int
cat
=
getIntent
().
getIntExtra
(
"cat"
,
-
1
);
Bitmap
imagen
=
null
;
Bitmap
imagen
=
null
;
switch
(
requestCode
)
{
switch
(
requestCode
)
{
case
CAMERA_PIC_REQUEST:
//Captura de foto
case
CAMERA_PIC_REQUEST:
//Captura de foto
...
@@ -1151,12 +1149,14 @@ protected void showOnlyTape(boolean onlyTape) {
...
@@ -1151,12 +1149,14 @@ protected void showOnlyTape(boolean onlyTape) {
break
;
break
;
case
EditPictoActivity
.
EDIT_PICTO_REQUEST
:
case
EditPictoActivity
.
EDIT_PICTO_REQUEST
:
if
(
resultCode
==
RESULT_OK
)
{
if
(
resultCode
==
RESULT_OK
)
{
Log
.
i
(
"TAG_PRUEBAS"
,
"---REQUEST_OK_EDIT----"
);
boolean
edit
=
data
.
getBooleanExtra
(
"tipo"
,
false
);
int
row
=
data
.
getExtras
().
getInt
(
Picto
.
JSON_ATTTRS
.
ROW
,
-
1
);
int
row
=
edit
?
data
.
getExtras
().
getInt
(
Picto
.
JSON_ATTTRS
.
ROW
)
:
getIntent
().
getIntExtra
(
Picto
.
JSON_ATTTRS
.
ROW
,
-
1
);
int
col
=
data
.
getExtras
().
getInt
(
Picto
.
JSON_ATTTRS
.
COLUMN
);
int
col
=
edit
?
data
.
getExtras
().
getInt
(
Picto
.
JSON_ATTTRS
.
COLUMN
)
:
getIntent
().
getIntExtra
(
Picto
.
JSON_ATTTRS
.
COLUMN
,
-
1
);
int
freeRow
=
data
.
getExtras
().
getInt
(
Picto
.
JSON_ATTTRS
.
FREE_ROW
,
-
1
);
int
freeRow
=
edit
?
data
.
getExtras
().
getInt
(
Picto
.
JSON_ATTTRS
.
FREE_ROW
)
:
getIntent
().
getIntExtra
(
Picto
.
JSON_ATTTRS
.
FREE_ROW
,
-
1
);
int
freeColumn
=
data
.
getExtras
().
getInt
(
Picto
.
JSON_ATTTRS
.
FREE_COLUMN
,
-
1
);
int
freeColumn
=
edit
?
data
.
getExtras
().
getInt
(
Picto
.
JSON_ATTTRS
.
FREE_COLUMN
)
:
getIntent
().
getIntExtra
(
Picto
.
JSON_ATTTRS
.
FREE_COLUMN
,
-
1
);
int
cat
=
edit
?
data
.
getIntExtra
(
Picto
.
JSON_ATTTRS
.
CATEGORY
,
-
1
)
:
getIntent
().
getIntExtra
(
Picto
.
JSON_ATTTRS
.
CATEGORY
,
-
1
);
String
path
=
data
.
getExtras
().
getString
(
EditPictoActivity
.
PATH
);
String
path
=
data
.
getExtras
().
getString
(
EditPictoActivity
.
PATH
);
String
legend
=
data
.
getExtras
().
getString
(
Picto
.
JSON_ATTTRS
.
EXPRESSION
);
String
legend
=
data
.
getExtras
().
getString
(
Picto
.
JSON_ATTTRS
.
EXPRESSION
);
...
...
android/Pictogram/tabletlibrary/src/main/java/com/yottacode/pictogram/tabletlibrary/gui/communicator/cropper/CropImageView.java
View file @
ac2cc386
...
@@ -31,7 +31,7 @@ import com.yottacode.pictogram.tabletlibrary.gui.communicator.cropper.util.Paint
...
@@ -31,7 +31,7 @@ import com.yottacode.pictogram.tabletlibrary.gui.communicator.cropper.util.Paint
*
*
* Class to see it on the image to crop
* Class to see it on the image to crop
*/
*/
public
class
CropImageView
extends
ImageView
{
public
class
CropImageView
extends
android
.
support
.
v7
.
widget
.
AppCompat
ImageView
{
...
...
android/Pictogram/tabletlibrary/src/main/java/com/yottacode/pictogram/tabletlibrary/gui/communicator/cropper/EditPictoActivity.java
View file @
ac2cc386
...
@@ -19,6 +19,7 @@ import android.support.annotation.NonNull;
...
@@ -19,6 +19,7 @@ import android.support.annotation.NonNull;
import
android.support.v4.app.ActivityCompat
;
import
android.support.v4.app.ActivityCompat
;
import
android.util.DisplayMetrics
;
import
android.util.DisplayMetrics
;
import
android.util.Log
;
import
android.util.Log
;
import
android.view.KeyEvent
;
import
android.view.MotionEvent
;
import
android.view.MotionEvent
;
import
android.view.View
;
import
android.view.View
;
import
android.view.Window
;
import
android.view.Window
;
...
@@ -45,6 +46,8 @@ import com.yottacode.tools.GUITools;
...
@@ -45,6 +46,8 @@ import com.yottacode.tools.GUITools;
import
java.io.ByteArrayOutputStream
;
import
java.io.ByteArrayOutputStream
;
import
java.io.IOException
;
import
java.io.IOException
;
import
pl.droidsonroids.gif.GifTextView
;
import
static
java
.
lang
.
Thread
.
sleep
;
import
static
java
.
lang
.
Thread
.
sleep
;
/**
/**
...
@@ -92,6 +95,8 @@ public class EditPictoActivity extends Activity {
...
@@ -92,6 +95,8 @@ public class EditPictoActivity extends Activity {
BotonCircular
botonReproducir
;
BotonCircular
botonReproducir
;
BotonCircular
botonBorrar
;
BotonCircular
botonBorrar
;
GifTextView
gifRecord
;
SeekBar
barraReproducir
;
SeekBar
barraReproducir
;
TextView
textoTTotal
;
TextView
textoTTotal
;
TextView
textoTGrabacion
;
TextView
textoTGrabacion
;
...
@@ -214,7 +219,7 @@ public class EditPictoActivity extends Activity {
...
@@ -214,7 +219,7 @@ public class EditPictoActivity extends Activity {
cropImageView
.
setFixedAspectRatio
(
true
);
cropImageView
.
setFixedAspectRatio
(
true
);
cropImageView
.
setGuidelines
(
2
);
cropImageView
.
setGuidelines
(
2
);
cropImageView
.
setAspectRatio
(
1
,
1
);
//cropImageView.setAspectRatio(cropImageView.getWidth(),cropImageView.getHeight()
);
if
(
transcription
!=
null
&&
transcription
.
length
()
>
0
)
if
(
transcription
!=
null
&&
transcription
.
length
()
>
0
)
legend
.
setText
(
transcription
);
legend
.
setText
(
transcription
);
...
@@ -222,9 +227,13 @@ public class EditPictoActivity extends Activity {
...
@@ -222,9 +227,13 @@ public class EditPictoActivity extends Activity {
legend
.
setMaxLines
(
1
);
legend
.
setMaxLines
(
1
);
legend
.
setSingleLine
(
true
);
legend
.
setSingleLine
(
true
);
editar
=
getIntent
().
getBooleanExtra
(
"tipo"
,
false
);
titulo
.
setText
(
editar
?
R
.
string
.
titleCropperEdit
:
R
.
string
.
titleCropperNew
);
//Obtener imagen del intent
//Obtener imagen del intent
byte
[]
byteArray
=
getIntent
().
getByteArrayExtra
(
EditPictoActivity
.
IMAGE_PICTO
);
byte
[]
byteArray
=
getIntent
().
getByteArrayExtra
(
EditPictoActivity
.
IMAGE_PICTO
);
Bitmap
imagePicto
=
BitmapFactory
.
decodeByteArray
(
byteArray
,
0
,
byteArray
.
length
);
Bitmap
imagePicto
=
BitmapFactory
.
decodeByteArray
(
byteArray
,
0
,
byteArray
.
length
);
cropImageView
.
setAspectRatio
(
editar
?
imagePicto
.
getWidth
()
:
4
,
editar
?
imagePicto
.
getHeight
()
:
3
);
//Si es editar un picto la ventana de recorte mantiene el tamaño de la imagen, sino 4:3
cropImageView
.
setImageBitmap
(
imagePicto
);
cropImageView
.
setImageBitmap
(
imagePicto
);
cropImageView
.
setMaxWidth
(
imagePicto
.
getWidth
());
cropImageView
.
setMaxWidth
(
imagePicto
.
getWidth
());
cropImageView
.
setMaxHeight
(
imagePicto
.
getHeight
());
cropImageView
.
setMaxHeight
(
imagePicto
.
getHeight
());
...
@@ -241,24 +250,22 @@ public class EditPictoActivity extends Activity {
...
@@ -241,24 +250,22 @@ public class EditPictoActivity extends Activity {
if
(
legend
.
getText
().
toString
().
trim
().
length
()
>
0
)
{
if
(
legend
.
getText
().
toString
().
trim
().
length
()
>
0
)
{
final
Bitmap
croppedImage
=
cropImageView
.
getCroppedImage
();
final
Bitmap
croppedImage
=
cropImageView
.
getCroppedImage
();
//Escalar imagen
Bitmap
finalImage
=
croppedImage
.
createScaledBitmap
(
croppedImage
,
100
,
100
,
true
);
//Guardar imagen en galeria y obtener la ruta
//Guardar imagen en galeria y obtener la ruta
ByteArrayOutputStream
bytes
=
new
ByteArrayOutputStream
();
ByteArrayOutputStream
bytes
=
new
ByteArrayOutputStream
();
finalImage
.
compress
(
Bitmap
.
CompressFormat
.
JPE
G
,
100
,
bytes
);
croppedImage
.
compress
(
Bitmap
.
CompressFormat
.
PN
G
,
100
,
bytes
);
String
title
=
getResources
().
getString
(
R
.
string
.
app_name
)
+
' '
+
legend
.
getText
().
toString
();
String
title
=
getResources
().
getString
(
R
.
string
.
app_name
)
+
' '
+
legend
.
getText
().
toString
();
String
path
=
MediaStore
.
Images
.
Media
.
insertImage
(
PCBcontext
.
getContext
().
getContentResolver
(),
final
Image
,
title
,
null
);
String
path
=
MediaStore
.
Images
.
Media
.
insertImage
(
getContentResolver
(),
cropped
Image
,
title
,
null
);
path
=
getRealPathFromURI
(
Uri
.
parse
(
path
));
path
=
getRealPathFromURI
(
Uri
.
parse
(
path
));
Log
.
i
(
LOG_PATH
,
" New image "
+
title
+
" saved at "
+
path
);
Log
.
i
(
LOG_PATH
,
" New image "
+
title
+
" saved at "
+
path
);
Intent
intent
=
getIntent
();
//Mandar a pictogram activity el path y el texto de la imagen
Intent
intent
=
getIntent
();
//Mandar a pictogram activity el path y el texto de la imagen
intent
.
putExtra
(
PATH
,
path
);
intent
.
putExtra
(
PATH
,
path
);
intent
.
putExtra
(
Picto
.
JSON_ATTTRS
.
EXPRESSION
,
legend
.
getText
().
toString
());
intent
.
putExtra
(
Picto
.
JSON_ATTTRS
.
EXPRESSION
,
legend
.
getText
().
toString
());
intent
.
putExtra
(
Picto
.
JSON_ATTTRS
.
CATEGORY
,
getIntent
().
getIntExtra
(
Picto
.
JSON_ATTTRS
.
CATEGORY
,
-
1
));
intent
.
putExtra
(
"tipo"
,
editar
);
//Para saber despues si estas editando o añadiendo nuevo y coger los datos de intent o de data en OnActivityResult
setResult
(
RESULT_OK
,
intent
);
setResult
(
RESULT_OK
,
intent
);
cropImageView
.
setImageBitmap
(
finalImage
);
cropImageView
.
setImageBitmap
(
croppedImage
);
Log
.
i
(
"TAG_PRUEBAS"
,
"Lanza ok de editar"
);
finish
();
//Termina la actividad de editar
finish
();
//Termina la actividad de editar
}
else
}
else
...
@@ -290,8 +297,10 @@ public class EditPictoActivity extends Activity {
...
@@ -290,8 +297,10 @@ public class EditPictoActivity extends Activity {
botonBorrar
=
(
BotonCircular
)
findViewById
(
R
.
id
.
botonBorrar
);
botonBorrar
=
(
BotonCircular
)
findViewById
(
R
.
id
.
botonBorrar
);
camara
=
(
BotonCircular
)
findViewById
(
R
.
id
.
camara
);
camara
=
(
BotonCircular
)
findViewById
(
R
.
id
.
camara
);
galeria
=
(
BotonCircular
)
findViewById
(
R
.
id
.
galeria
);
galeria
=
(
BotonCircular
)
findViewById
(
R
.
id
.
galeria
);
gifRecord
=
(
GifTextView
)
findViewById
(
R
.
id
.
recordImage
);
barraReproducir
=
(
SeekBar
)
findViewById
(
R
.
id
.
barraReproducir
);
barraReproducir
=
(
SeekBar
)
findViewById
(
R
.
id
.
barraReproducir
);
textoTTotal
=
(
TextView
)
findViewById
(
R
.
id
.
tiempoTotal
);
textoTTotal
=
(
TextView
)
findViewById
(
R
.
id
.
tiempoTotal
);
textoTGrabacion
=
(
TextView
)
findViewById
(
R
.
id
.
tiempoActual
);
textoTGrabacion
=
(
TextView
)
findViewById
(
R
.
id
.
tiempoActual
);
layoutPreview
=
(
LinearLayout
)
findViewById
(
R
.
id
.
layoutPreview
);
layoutPreview
=
(
LinearLayout
)
findViewById
(
R
.
id
.
layoutPreview
);
layoutGrabacion
=
(
LinearLayout
)
findViewById
(
R
.
id
.
layout_record
);
layoutGrabacion
=
(
LinearLayout
)
findViewById
(
R
.
id
.
layout_record
);
...
@@ -320,9 +329,11 @@ public class EditPictoActivity extends Activity {
...
@@ -320,9 +329,11 @@ public class EditPictoActivity extends Activity {
case
MotionEvent
.
ACTION_DOWN
:
case
MotionEvent
.
ACTION_DOWN
:
tareaGrabacion
=
(
RecordTask
)
new
RecordTask
().
execute
(
tiempoGrabado
);
tareaGrabacion
=
(
RecordTask
)
new
RecordTask
().
execute
(
tiempoGrabado
);
startRecording
();
startRecording
();
gifRecord
.
setBackgroundResource
(
R
.
drawable
.
record_animation
);
Log
.
i
(
DEBUG_MESSAGE
,
"Grabando.."
);
Log
.
i
(
DEBUG_MESSAGE
,
"Grabando.."
);
return
true
;
return
true
;
case
MotionEvent
.
ACTION_UP
:
case
MotionEvent
.
ACTION_UP
:
gifRecord
.
setBackgroundResource
(
R
.
color
.
white
);
tareaGrabacion
.
cancel
(
true
);
tareaGrabacion
.
cancel
(
true
);
return
true
;
return
true
;
}
}
...
@@ -480,10 +491,20 @@ public class EditPictoActivity extends Activity {
...
@@ -480,10 +491,20 @@ public class EditPictoActivity extends Activity {
}
}
}
}
@Override
public
boolean
onKeyDown
(
int
keyCode
,
KeyEvent
event
)
{
if
(
keyCode
==
KeyEvent
.
KEYCODE_BACK
)
{
finish
();
setResult
(
RESULT_CANCELED
,
getIntent
());
return
true
;
}
return
super
.
onKeyDown
(
keyCode
,
event
);
}
protected
void
onActivityResult
(
int
requestCode
,
int
resultCode
,
Intent
data
)
{
protected
void
onActivityResult
(
int
requestCode
,
int
resultCode
,
Intent
data
)
{
super
.
onActivityResult
(
requestCode
,
resultCode
,
data
);
super
.
onActivityResult
(
requestCode
,
resultCode
,
data
);
int
cat
=
getIntent
().
getIntExtra
(
"cat"
,
-
1
);
//
int cat = getIntent().getIntExtra("cat", -1);
Bitmap
imagen
=
null
;
Bitmap
imagen
=
null
;
Bitmap
rescaled
=
null
;
Bitmap
rescaled
=
null
;
...
...
android/Pictogram/tabletlibrary/src/main/java/com/yottacode/pictogram/tabletlibrary/gui/communicator/cropper/util/PaintUtil.java
View file @
ac2cc386
...
@@ -22,7 +22,7 @@ public class PaintUtil {
...
@@ -22,7 +22,7 @@ public class PaintUtil {
final
Paint
paint
=
new
Paint
();
final
Paint
paint
=
new
Paint
();
paint
.
setStyle
(
Paint
.
Style
.
STROKE
);
paint
.
setStyle
(
Paint
.
Style
.
STROKE
);
paint
.
setStrokeWidth
(
resources
.
getDimension
(
R
.
dimen
.
border_thickness
));
paint
.
setStrokeWidth
(
resources
.
getDimension
(
R
.
dimen
.
border_thickness
));
paint
.
setColor
(
resources
.
getColor
(
R
.
color
.
border
));
paint
.
setColor
(
resources
.
getColor
(
R
.
color
.
VerdeApp
));
return
paint
;
return
paint
;
}
}
...
@@ -35,7 +35,7 @@ public class PaintUtil {
...
@@ -35,7 +35,7 @@ public class PaintUtil {
final
Paint
paint
=
new
Paint
();
final
Paint
paint
=
new
Paint
();
paint
.
setStyle
(
Paint
.
Style
.
STROKE
);
paint
.
setStyle
(
Paint
.
Style
.
STROKE
);
paint
.
setStrokeWidth
(
resources
.
getDimension
(
R
.
dimen
.
guideline_thickness
));
paint
.
setStrokeWidth
(
resources
.
getDimension
(
R
.
dimen
.
guideline_thickness
));
paint
.
setColor
(
resources
.
getColor
(
R
.
color
.
guideline
));
paint
.
setColor
(
resources
.
getColor
(
R
.
color
.
VerdeApp
));
return
paint
;
return
paint
;
}
}
...
@@ -62,7 +62,7 @@ public class PaintUtil {
...
@@ -62,7 +62,7 @@ public class PaintUtil {
final
Paint
paint
=
new
Paint
();
final
Paint
paint
=
new
Paint
();
paint
.
setStyle
(
Paint
.
Style
.
STROKE
);
paint
.
setStyle
(
Paint
.
Style
.
STROKE
);
paint
.
setStrokeWidth
(
resources
.
getDimension
(
R
.
dimen
.
corner_thickness
));
paint
.
setStrokeWidth
(
resources
.
getDimension
(
R
.
dimen
.
corner_thickness
));
paint
.
setColor
(
resources
.
getColor
(
R
.
color
.
corner
));
paint
.
setColor
(
resources
.
getColor
(
R
.
color
.
VerdeApp
));
return
paint
;
return
paint
;
}
}
...
...
android/Pictogram/tabletlibrary/src/main/res/drawable-hdpi/record_animation.gif
0 → 100644
View file @
ac2cc386
141 Bytes
android/Pictogram/tabletlibrary/src/main/res/layout/edit_picto_layout.xml
View file @
ac2cc386
...
@@ -147,28 +147,27 @@
...
@@ -147,28 +147,27 @@
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_gravity=
"center"
android:layout_gravity=
"center"
android:gravity=
"center"
android:orientation=
"horizontal"
android:orientation=
"horizontal"
android:paddingTop=
"5dp"
android:paddingTop=
"5dp"
android:visibility=
"visible"
android:visibility=
"visible"
android:weightSum=
"1"
>
android:weightSum=
"1"
>
<com.yottacode.pictogram.tabletlibrary.gui.communicator.BotonCircular
android:id=
"@+id/gifGrabar"
<pl.droidsonroids.gif.GifTextView
android:layout_width=
"48dp"
android:id=
"@+id/recordImage"
android:layout_height=
"48dp"
android:layout_width=
"14dp"
android:layout_alignParentBottom=
"false"
android:layout_height=
"20dp"
android:layout_centerHorizontal=
"false"
android:layout_gravity=
"center"
android:layout_gravity=
"center"
android:layout_weight=
"0.38"
android:layout_weight=
"0.36"
android:background=
"#00ffffff"
android:background=
"@color/white"
/>
android:src=
"@android:drawable/ic_menu_delete"
/>
<TextView
<TextView
android:id=
"@+id/tiempoActual"
android:id=
"@+id/tiempoActual"
android:layout_width=
"
125dp
"
android:layout_width=
"
wrap_content
"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:gravity=
"center"
android:gravity=
"center"
android:paddingLeft=
"
16
dp"
android:paddingLeft=
"
5
dp"
android:paddingRight=
"16dp"
android:paddingRight=
"16dp"
android:text=
"00:00 | 00:10"
android:text=
"00:00 | 00:10"
android:textColor=
"@color/VerdeApp"
/>
android:textColor=
"@color/VerdeApp"
/>
...
...
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