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
5a29ca0b
authored
Aug 04, 2017
by
Sebastián Collado Montañez
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
working on layout
parent
5c2c9556
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
87 additions
and
69 deletions
android/Pictogram/commonlibrary/src/main/res/values-sw600dp/dimens.xml
android/Pictogram/commonlibrary/src/main/res/values-xhdpi/dimens.xml
android/Pictogram/commonlibrary/src/main/res/values-xxhdpi/dimens.xml
android/Pictogram/tabletlibrary/src/main/java/com/yottacode/pictogram/tabletlibrary/gui/session/PictoAdapter.java
android/Pictogram/tabletlibrary/src/main/res/layout/activity_login.xml
android/Pictogram/tabletlibrary/src/main/res/layout/picto_grid_item.xml
android/Pictogram/tabletlibrary/src/main/res/layout/picto_grid_item_big.xml
android/Pictogram/tabletlibrary/src/main/res/layout/voca.xml
android/Pictogram/tabletlibrary/src/main/res/layout/voca_big.xml
android/Pictogram/tabletlibrary/src/main/res/layout/vocabulary_manager.xml
android/Pictogram/tabletlibrary/src/main/res/layout/vocabulary_manager_big.xml
android/Pictogram/commonlibrary/src/main/res/values-sw600dp/dimens.xml
View file @
5a29ca0b
...
@@ -3,16 +3,22 @@
...
@@ -3,16 +3,22 @@
<dimen
name=
"activity_horizontal_margin"
>
8px
</dimen>
<dimen
name=
"activity_horizontal_margin"
>
8px
</dimen>
<dimen
name=
"activity_vertical_margin"
>
8px
</dimen>
<dimen
name=
"activity_vertical_margin"
>
8px
</dimen>
<dimen
name=
"small_padding"
>
4px
</dimen>
<dimen
name=
"small_padding"
>
4px
</dimen>
<!-- Horizontal and vertical spacing between pictos -->
<dimen
name=
"picto_grid_spacing"
>
1px
</dimen>
<dimen
name=
"picto_grid_spacing"
>
1px
</dimen>
<!-- Picto border -->
<dimen
name=
"picto_border_width"
>
2px
</dimen>
<dimen
name=
"picto_border_width"
>
2px
</dimen>
<!-- Picto padding ¿? -->
<dimen
name=
"picto_padding"
>
1px
</dimen>
<dimen
name=
"picto_padding"
>
1px
</dimen>
<dimen
name=
"picto_normal_height"
>
90px
</dimen>
<!-- Picto normal size -->
<dimen
name=
"picto_normal_width"
>
90px
</dimen>
<dimen
name=
"picto_normal_side"
>
90px
</dimen>
<dimen
name=
"tape_normal_height"
>
100px
</dimen>
<!-- Picto big size -->
<dimen
name=
"picto_big_height"
>
108px
</dimen>
<dimen
name=
"picto_big_side"
>
115dp
</dimen>
<dimen
name=
"picto_big_width"
>
108px
</dimen>
<!-- Tape -->
<dimen
name=
"tape_big_height"
>
118px
</dimen>
<dimen
name=
"tape_normal_height"
>
100dp
</dimen>
<dimen
name=
"tape_big_height"
>
126dp
</dimen>
<!-- Menu size -->
<dimen
name=
"menu_top_height"
>
64dp
</dimen>
<!-- Picto session -->
<dimen
name=
"picto_session_height"
>
75px
</dimen>
<dimen
name=
"picto_session_height"
>
75px
</dimen>
<dimen
name=
"picto_session_width"
>
75px
</dimen>
<dimen
name=
"picto_session_width"
>
75px
</dimen>
</resources>
</resources>
...
...
android/Pictogram/commonlibrary/src/main/res/values-xhdpi/dimens.xml
View file @
5a29ca0b
...
@@ -3,16 +3,22 @@
...
@@ -3,16 +3,22 @@
<dimen
name=
"activity_horizontal_margin"
>
8px
</dimen>
<dimen
name=
"activity_horizontal_margin"
>
8px
</dimen>
<dimen
name=
"activity_vertical_margin"
>
8px
</dimen>
<dimen
name=
"activity_vertical_margin"
>
8px
</dimen>
<dimen
name=
"small_padding"
>
4px
</dimen>
<dimen
name=
"small_padding"
>
4px
</dimen>
<!-- Horizontal and vertical spacing between pictos -->
<dimen
name=
"picto_grid_spacing"
>
2px
</dimen>
<dimen
name=
"picto_grid_spacing"
>
2px
</dimen>
<!-- Picto border -->
<dimen
name=
"picto_border_width"
>
1px
</dimen>
<dimen
name=
"picto_border_width"
>
1px
</dimen>
<!-- Picto padding ¿? -->
<dimen
name=
"picto_padding"
>
1px
</dimen>
<dimen
name=
"picto_padding"
>
1px
</dimen>
<dimen
name=
"picto_normal_height"
>
90px
</dimen>
<!-- Picto normal size -->
<dimen
name=
"picto_normal_width"
>
90px
</dimen>
<dimen
name=
"picto_normal_side"
>
90px
</dimen>
<dimen
name=
"tape_normal_height"
>
100px
</dimen>
<!-- Picto big size -->
<dimen
name=
"picto_big_height"
>
135px
</dimen>
<dimen
name=
"picto_big_side"
>
115dp
</dimen>
<dimen
name=
"picto_big_width"
>
135px
</dimen>
<!-- Tape -->
<dimen
name=
"tape_big_height"
>
145px
</dimen>
<dimen
name=
"tape_normal_height"
>
100dp
</dimen>
<dimen
name=
"tape_big_height"
>
126dp
</dimen>
<!-- Menu size -->
<dimen
name=
"menu_top_height"
>
64dp
</dimen>
<!-- Picto session -->
<dimen
name=
"picto_session_height"
>
84dp
</dimen>
<dimen
name=
"picto_session_height"
>
84dp
</dimen>
<dimen
name=
"picto_session_width"
>
84dp
</dimen>
<dimen
name=
"picto_session_width"
>
84dp
</dimen>
</resources>
</resources>
android/Pictogram/commonlibrary/src/main/res/values-xxhdpi/dimens.xml
View file @
5a29ca0b
...
@@ -3,16 +3,22 @@
...
@@ -3,16 +3,22 @@
<dimen
name=
"activity_horizontal_margin"
>
8px
</dimen>
<dimen
name=
"activity_horizontal_margin"
>
8px
</dimen>
<dimen
name=
"activity_vertical_margin"
>
8px
</dimen>
<dimen
name=
"activity_vertical_margin"
>
8px
</dimen>
<dimen
name=
"small_padding"
>
4px
</dimen>
<dimen
name=
"small_padding"
>
4px
</dimen>
<!-- Horizontal and vertical spacing between pictos -->
<dimen
name=
"picto_grid_spacing"
>
1px
</dimen>
<dimen
name=
"picto_grid_spacing"
>
1px
</dimen>
<!-- Picto border -->
<dimen
name=
"picto_border_width"
>
1px
</dimen>
<dimen
name=
"picto_border_width"
>
1px
</dimen>
<!-- Picto padding ¿? -->
<dimen
name=
"picto_padding"
>
1px
</dimen>
<dimen
name=
"picto_padding"
>
1px
</dimen>
<dimen
name=
"picto_normal_height"
>
90px
</dimen>
<!-- Picto normal size -->
<dimen
name=
"picto_normal_width"
>
90px
</dimen>
<dimen
name=
"picto_normal_side"
>
90px
</dimen>
<dimen
name=
"tape_normal_height"
>
100px
</dimen>
<!-- Picto big size -->
<dimen
name=
"picto_big_height"
>
116px
</dimen>
<dimen
name=
"picto_big_side"
>
115dp
</dimen>
<dimen
name=
"picto_big_width"
>
116px
</dimen>
<!-- Tape -->
<dimen
name=
"tape_big_height"
>
118px
</dimen>
<dimen
name=
"tape_normal_height"
>
100dp
</dimen>
<dimen
name=
"tape_big_height"
>
126dp
</dimen>
<!-- Menu size -->
<dimen
name=
"menu_top_height"
>
64dp
</dimen>
<!-- Picto session -->
<dimen
name=
"picto_session_height"
>
75px
</dimen>
<dimen
name=
"picto_session_height"
>
75px
</dimen>
<dimen
name=
"picto_session_width"
>
75px
</dimen>
<dimen
name=
"picto_session_width"
>
75px
</dimen>
</resources>
</resources>
android/Pictogram/tabletlibrary/src/main/java/com/yottacode/pictogram/tabletlibrary/gui/session/PictoAdapter.java
View file @
5a29ca0b
...
@@ -124,13 +124,13 @@ public long getItemId(int position) {
...
@@ -124,13 +124,13 @@ public long getItemId(int position) {
}
}
public
void
evaluateItem
(
Bitmap
bmp
,
String
evaluation
,
int
position
)
{
public
void
evaluateItem
(
Bitmap
bmp
,
String
evaluation
,
int
position
)
{
Item
item
=
this
.
msg
.
get
(
position
);
Item
item
=
this
.
msg
.
get
(
position
);
Bitmap
oldmsg
=
item
.
getImg
();
Bitmap
oldmsg
=
item
.
getImg
();
float
width
=
context
.
getResources
().
getDimension
(
R
.
dimen
.
picto_session_width
);
float
width
=
context
.
getResources
().
getDimension
(
R
.
dimen
.
picto_session_width
);
float
height
=
context
.
getResources
().
getDimension
(
R
.
dimen
.
picto_session_height
);
float
height
=
context
.
getResources
().
getDimension
(
R
.
dimen
.
picto_session_height
);
bmp
=
new
BitmapTools
(
bmp
).
resize
((
int
)
width
,(
int
)
height
).
get
();
bmp
=
new
BitmapTools
(
bmp
).
resize
((
int
)
width
,(
int
)
height
).
get
();
bmp
=
set_text
(
context
,
bmp
,
getTimeDiff
(
new
Date
().
getTime
()));
bmp
=
set_text
(
context
,
bmp
,
getTimeDiff
(
new
Date
().
getTime
()));
Bitmap
currmsg
=
position
>=
this
.
msg
.
size
()-
1
?
combineImages
(
oldmsg
,
bmp
)
:
updateImage
(
oldmsg
,
bmp
);
Bitmap
currmsg
=
position
>=
this
.
msg
.
size
()-
1
?
combineImages
(
oldmsg
,
bmp
)
:
updateImage
(
oldmsg
,
bmp
);
item
.
setImg
(
currmsg
,
evaluation
,
true
);
item
.
setImg
(
currmsg
,
evaluation
,
true
);
}
}
...
...
android/Pictogram/tabletlibrary/src/main/res/layout/activity_login.xml
View file @
5a29ca0b
...
@@ -8,13 +8,13 @@
...
@@ -8,13 +8,13 @@
<RelativeLayout
<RelativeLayout
android:id=
"@+id/loginTopbarLayout"
android:id=
"@+id/loginTopbarLayout"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"
64dp
"
android:layout_height=
"
@dimen/menu_top_height
"
android:background=
"@color/VerdeApp"
>
android:background=
"@color/VerdeApp"
>
<ImageView
<ImageView
android:id=
"@+id/loginTopbarSupervisorPhoto"
android:id=
"@+id/loginTopbarSupervisorPhoto"
android:layout_width=
"
64dp
"
android:layout_width=
"
@dimen/menu_top_height
"
android:layout_height=
"
64dp
"
android:layout_height=
"
@dimen/menu_top_height
"
android:layout_alignParentBottom=
"true"
android:layout_alignParentBottom=
"true"
android:layout_alignParentStart=
"true"
android:layout_alignParentStart=
"true"
android:layout_gravity=
"left"
android:layout_gravity=
"left"
...
...
android/Pictogram/tabletlibrary/src/main/res/layout/picto_grid_item.xml
View file @
5a29ca0b
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<RelativeLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:id=
"@+id/picto_grid_item_layout_wrapper"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:gravity=
"center_vertical|center|center_horizontal"
android:id=
"@+id/picto_grid_item_layout_wrapper"
android:background=
"@drawable/picto_grid_item_border"
android:background=
"@drawable/picto_grid_item_border"
android:gravity=
"center_vertical|center|center_horizontal"
android:padding=
"@dimen/picto_border_width"
>
android:padding=
"@dimen/picto_border_width"
>
<FrameLayout
<FrameLayout
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/picto_normal_height"
android:id=
"@+id/picto_grid_item_layout"
android:id=
"@+id/picto_grid_item_layout"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/picto_normal_side"
android:background=
"@color/picto_default_background"
android:background=
"@color/picto_default_background"
android:padding=
"@dimen/picto_padding"
>
android:padding=
"@dimen/picto_padding"
>
...
@@ -20,35 +20,35 @@
...
@@ -20,35 +20,35 @@
android:layout_height=
"match_parent"
/>
android:layout_height=
"match_parent"
/>
<TextView
<TextView
android:
text=
"Legend
"
android:
id=
"@+id/legend_text
"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:id=
"@+id/legend_text"
android:textSize=
"11sp"
android:textColor=
"@android:color/black"
android:textAlignment=
"center"
android:layout_gravity=
"bottom"
android:layout_gravity=
"bottom"
android:visibility=
"gone"
android:background=
"@android:color/white"
android:background=
"@android:color/white"
/>
android:text=
"Legend"
android:textAlignment=
"center"
android:textColor=
"@android:color/black"
android:textSize=
"11sp"
android:visibility=
"gone"
/>
<TextView
<TextView
android:
text=
"Legend
"
android:
id=
"@+id/legend_text_full
"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:id=
"@+id/legend_text_full"
android:textSize=
"18sp"
android:textColor=
"@android:color/black"
android:textAlignment=
"center"
android:maxLines=
"5"
android:gravity=
"center"
android:layout_gravity=
"center"
android:layout_gravity=
"center"
android:visibility=
"gone"
android:background=
"@android:color/white"
android:background=
"@android:color/white"
/>
android:gravity=
"center"
android:maxLines=
"5"
android:text=
"Legend"
android:textAlignment=
"center"
android:textColor=
"@android:color/black"
android:textSize=
"18sp"
android:visibility=
"gone"
/>
<ImageView
<ImageView
android:id=
"@+id/picto_grid_item_redcross"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:id=
"@+id/picto_grid_item_redcross"
android:src=
"@drawable/disabled_picto"
/>
android:src=
"@drawable/disabled_picto"
/>
</FrameLayout>
</FrameLayout>
...
...
android/Pictogram/tabletlibrary/src/main/res/layout/picto_grid_item_big.xml
View file @
5a29ca0b
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
<RelativeLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<RelativeLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:tools=
"http://schemas.android.com/tools"
xmlns:tools=
"http://schemas.android.com/tools"
android:id=
"@+id/picto_grid_item_layout_wrapper_big"
android:id=
"@+id/picto_grid_item_layout_wrapper_big"
android:layout_width=
"@dimen/picto_big_
width
"
android:layout_width=
"@dimen/picto_big_
side
"
android:layout_height=
"@dimen/picto_big_
height
"
android:layout_height=
"@dimen/picto_big_
side
"
android:background=
"@drawable/picto_grid_item_border"
android:background=
"@drawable/picto_grid_item_border"
android:gravity=
"center_vertical|center|center_horizontal"
android:gravity=
"center_vertical|center|center_horizontal"
android:padding=
"@dimen/picto_border_width"
>
android:padding=
"@dimen/picto_border_width"
>
...
...
android/Pictogram/tabletlibrary/src/main/res/layout/voca.xml
View file @
5a29ca0b
...
@@ -17,8 +17,8 @@
...
@@ -17,8 +17,8 @@
<ImageButton
<ImageButton
android:id=
"@+id/button_delete"
android:id=
"@+id/button_delete"
android:layout_width=
"
100dp
"
android:layout_width=
"
@dimen/tape_normal_height
"
android:layout_height=
"
100dp
"
android:layout_height=
"
@dimen/tape_normal_height
"
android:layout_alignParentStart=
"true"
android:layout_alignParentStart=
"true"
android:layout_alignParentTop=
"true"
android:layout_alignParentTop=
"true"
android:background=
"@android:color/holo_red_light"
android:background=
"@android:color/holo_red_light"
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
<GridView
<GridView
android:id=
"@+id/tape_grid_view"
android:id=
"@+id/tape_grid_view"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"
100dp
"
android:layout_height=
"
@dimen/tape_normal_height
"
android:layout_toEndOf=
"@+id/button_delete"
android:layout_toEndOf=
"@+id/button_delete"
android:layout_toStartOf=
"@+id/button_tts"
android:layout_toStartOf=
"@+id/button_tts"
android:accessibilityLiveRegion=
"none"
android:accessibilityLiveRegion=
"none"
...
@@ -42,8 +42,8 @@
...
@@ -42,8 +42,8 @@
<ImageButton
<ImageButton
android:id=
"@+id/button_tts"
android:id=
"@+id/button_tts"
android:layout_width=
"
100dp
"
android:layout_width=
"
@dimen/tape_normal_height
"
android:layout_height=
"
100dp
"
android:layout_height=
"
@dimen/tape_normal_height
"
android:layout_alignParentEnd=
"true"
android:layout_alignParentEnd=
"true"
android:layout_alignParentTop=
"true"
android:layout_alignParentTop=
"true"
android:adjustViewBounds=
"true"
android:adjustViewBounds=
"true"
...
...
android/Pictogram/tabletlibrary/src/main/res/layout/voca_big.xml
View file @
5a29ca0b
...
@@ -17,8 +17,8 @@
...
@@ -17,8 +17,8 @@
<ImageButton
<ImageButton
android:id=
"@+id/button_delete"
android:id=
"@+id/button_delete"
android:layout_width=
"
120dp
"
android:layout_width=
"
@dimen/tape_big_height
"
android:layout_height=
"
120dp
"
android:layout_height=
"
@dimen/tape_big_height
"
android:layout_alignParentStart=
"true"
android:layout_alignParentStart=
"true"
android:layout_alignParentTop=
"true"
android:layout_alignParentTop=
"true"
android:background=
"@android:color/holo_red_light"
android:background=
"@android:color/holo_red_light"
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
<GridView
<GridView
android:id=
"@+id/tape_grid_view"
android:id=
"@+id/tape_grid_view"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"
120dp
"
android:layout_height=
"
@dimen/tape_big_height
"
android:layout_toEndOf=
"@+id/button_delete"
android:layout_toEndOf=
"@+id/button_delete"
android:layout_toStartOf=
"@+id/button_tts"
android:layout_toStartOf=
"@+id/button_tts"
android:accessibilityLiveRegion=
"none"
android:accessibilityLiveRegion=
"none"
...
@@ -44,8 +44,8 @@
...
@@ -44,8 +44,8 @@
<ImageButton
<ImageButton
android:id=
"@+id/button_tts"
android:id=
"@+id/button_tts"
android:layout_width=
"
120dp
"
android:layout_width=
"
@dimen/tape_big_height
"
android:layout_height=
"
120dp
"
android:layout_height=
"
@dimen/tape_big_height
"
android:layout_alignParentEnd=
"true"
android:layout_alignParentEnd=
"true"
android:layout_alignParentTop=
"true"
android:layout_alignParentTop=
"true"
android:adjustViewBounds=
"true"
android:adjustViewBounds=
"true"
...
...
android/Pictogram/tabletlibrary/src/main/res/layout/vocabulary_manager.xml
View file @
5a29ca0b
...
@@ -17,13 +17,13 @@
...
@@ -17,13 +17,13 @@
<RelativeLayout
<RelativeLayout
android:id=
"@+id/loginTopbarLayout"
android:id=
"@+id/loginTopbarLayout"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"
64dp
"
android:layout_height=
"
@dimen/menu_top_height
"
android:background=
"@color/VerdeApp"
>
android:background=
"@color/VerdeApp"
>
<ImageView
<ImageView
android:id=
"@+id/loginTopbarSupervisorPhoto"
android:id=
"@+id/loginTopbarSupervisorPhoto"
android:layout_width=
"
64dp
"
android:layout_width=
"
@dimen/menu_top_height
"
android:layout_height=
"
64dp
"
android:layout_height=
"
@dimen/menu_top_height
"
android:layout_alignParentStart=
"true"
android:layout_alignParentStart=
"true"
android:layout_alignParentTop=
"true"
android:layout_alignParentTop=
"true"
android:layout_gravity=
"left"
android:layout_gravity=
"left"
...
...
android/Pictogram/tabletlibrary/src/main/res/layout/vocabulary_manager_big.xml
View file @
5a29ca0b
...
@@ -17,14 +17,14 @@
...
@@ -17,14 +17,14 @@
<RelativeLayout
<RelativeLayout
android:id=
"@+id/sessionTopbarLayout"
android:id=
"@+id/sessionTopbarLayout"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"
64dp
"
android:layout_height=
"
@dimen/menu_top_height
"
android:layout_alignParentStart=
"true"
android:layout_alignParentStart=
"true"
android:background=
"@color/VerdeApp"
>
android:background=
"@color/VerdeApp"
>
<ImageView
<ImageView
android:id=
"@+id/sessionTopbarStudentPhoto"
android:id=
"@+id/sessionTopbarStudentPhoto"
android:layout_width=
"
64dp
"
android:layout_width=
"
@dimen/menu_top_height
"
android:layout_height=
"
64dp
"
android:layout_height=
"
@dimen/menu_top_height
"
android:layout_alignParentStart=
"true"
android:layout_alignParentStart=
"true"
android:layout_alignParentTop=
"true"
android:layout_alignParentTop=
"true"
android:layout_gravity=
"left"
android:layout_gravity=
"left"
...
...
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