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
c885d72d
authored
Aug 03, 2017
by
Sebastián Collado Montañez
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
menu to dp, delete office from menu
parent
b4dece93
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
62 additions
and
67 deletions
android/Pictogram/tabletlibrary/src/main/java/com/yottacode/pictogram/tabletlibrary/gui/login/LoginActivity.java
android/Pictogram/tabletlibrary/src/main/res/layout/activity_login.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/tabletlibrary/src/main/java/com/yottacode/pictogram/tabletlibrary/gui/login/LoginActivity.java
View file @
c885d72d
...
...
@@ -62,13 +62,11 @@ public class LoginActivity extends FragmentActivity {
super
.
onStart
();
// Set supervisor information on topbar
final
TextView
supervisorFullNameView
=
(
TextView
)
findViewById
(
R
.
id
.
loginTopbarSupervisorFullName
);
final
TextView
supervisorUserNameView
=
(
TextView
)
findViewById
(
R
.
id
.
loginTopbarSupervisorUserName
);
final
ImageView
supervisorPhotoView
=
(
ImageView
)
findViewById
(
R
.
id
.
loginTopbarSupervisorPhoto
);
supervisorFullNameView
.
setText
(
this
.
getIntent
().
getStringExtra
(
"name"
)
+
" "
+
this
.
getIntent
().
getStringExtra
(
"surname"
)+
" ("
+
this
.
getIntent
().
getStringExtra
(
"office"
)+
")"
);
supervisorUserNameView
.
setText
(
this
.
getIntent
().
getStringExtra
(
"email"
));
this
.
getIntent
().
getStringExtra
(
"surname"
)
+
" ("
+
this
.
getIntent
().
getStringExtra
(
"email"
)+
")"
);
final
Vector
<
Img
>
imgs
=
new
Vector
<>(
1
);
imgs
.
add
(
new
Img
(
...
...
android/Pictogram/tabletlibrary/src/main/res/layout/activity_login.xml
View file @
c885d72d
...
...
@@ -8,22 +8,18 @@
<RelativeLayout
android:id=
"@+id/loginTopbarLayout"
android:layout_width=
"match_parent"
android:layout_height=
"70dp"
android:background=
"@color/VerdeApp"
android:paddingBottom=
"5dp"
android:paddingLeft=
"5dp"
android:paddingRight=
"5dp"
android:paddingTop=
"5dp"
>
android:layout_height=
"64dp"
android:background=
"@color/VerdeApp"
>
<ImageView
android:id=
"@+id/loginTopbarSupervisorPhoto"
android:layout_width=
"50dp"
android:layout_height=
"50dp"
android:layout_width=
"64dp"
android:layout_height=
"64dp"
android:layout_alignParentBottom=
"true"
android:layout_alignParentStart=
"true"
android:layout_gravity=
"left"
android:background=
"@color/accent_material_dark"
android:scaleType=
"centerCrop"
android:layout_centerVertical=
"true"
android:layout_alignParentStart=
"true"
/>
android:scaleType=
"centerCrop"
/>
<LinearLayout
android:id=
"@+id/loginTopbarSupervisorNameLayout"
...
...
@@ -44,26 +40,19 @@
android:textAppearance=
"?android:attr/textAppearanceMedium"
android:textColor=
"@color/BlancoApp"
/>
<TextView
android:id=
"@+id/loginTopbarSupervisorUserName"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
""
android:textAppearance=
"?android:attr/textAppearanceSmall"
android:textColor=
"@color/BlancoApp"
/>
</LinearLayout>
<Button
android:id=
"@+id/loginTopbarLogout"
style=
"@android:style/TextAppearance.Material.Button"
android:textColor=
"@color/BlancoApp"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentBottom=
"true"
android:layout_alignParentEnd=
"true"
android:layout_alignParentTop=
"true"
android:enabled=
"false"
android:text=
"@string/logout"
/>
android:text=
"@string/logout"
android:textColor=
"@color/BlancoApp"
/>
</RelativeLayout>
...
...
android/Pictogram/tabletlibrary/src/main/res/layout/voca.xml
View file @
c885d72d
<FrameLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<FrameLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:tools=
"http://schemas.android.com/tools"
android:theme=
"@android:style/Theme.NoTitleBar.Fullscreen"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:orientation=
"horizontal"
android:background=
"#BDBDBD"
android:keepScreenOn=
"true"
tools:context=
"com.yottacode.pictogram.tabletlibrary.gui.communicator.VOCA"
android:padding=
"@dimen/small_padding"
>
android:orientation=
"horizontal"
android:theme=
"@android:style/Theme.NoTitleBar.Fullscreen"
tools:context=
"com.yottacode.pictogram.tabletlibrary.gui.communicator.VOCA"
>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:id=
"@+id/pictogramLayout"
>
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<!-- android:keepScreenOn - To keep the screen bright as long as the app is visible (also forever) -->
...
...
@@ -57,14 +54,14 @@
android:src=
"@drawable/send_tape"
/>
<ImageButton
android:id=
"@+id/showPictoCategoriesViewButton"
android:layout_width=
"96dp"
android:layout_height=
"match_parent"
android:id=
"@+id/showPictoCategoriesViewButton"
android:layout_alignParentStart=
"true"
android:
src=
"@drawable/show_categories_grid
"
android:
layout_below=
"@+id/button_delete
"
android:background=
"#EEEEEE"
android:scaleType=
"fitCenter"
android:
layout_below=
"@+id/button_delete
"
/>
android:
src=
"@drawable/show_categories_grid
"
/>
<GridView
android:id=
"@+id/picto_category_grid_view"
...
...
@@ -72,6 +69,7 @@
android:layout_height=
"match_parent"
android:layout_alignParentBottom=
"true"
android:layout_alignParentEnd=
"true"
android:layout_below=
"@+id/tape_grid_view"
android:layout_toEndOf=
"@+id/showPictoCategoriesViewButton"
android:background=
"#DDDDDD"
android:gravity=
"center_vertical|center|center_horizontal"
...
...
@@ -79,8 +77,7 @@
android:numColumns=
"10"
android:paddingLeft=
"@dimen/small_padding"
android:paddingRight=
"@dimen/small_padding"
android:verticalSpacing=
"@dimen/picto_grid_spacing"
android:layout_below=
"@+id/tape_grid_view"
></GridView>
android:verticalSpacing=
"@dimen/picto_grid_spacing"
></GridView>
<GridView
android:id=
"@+id/picto_main_grid_view"
...
...
@@ -89,11 +86,11 @@
android:layout_alignParentBottom=
"true"
android:layout_alignParentEnd=
"true"
android:layout_alignParentStart=
"true"
android:layout_below=
"@+id/button_delete"
android:background=
"#DDDDDD"
android:gravity=
"center_vertical|center|center_horizontal"
android:horizontalSpacing=
"@dimen/picto_grid_spacing"
android:verticalSpacing=
"@dimen/picto_grid_spacing"
android:layout_below=
"@+id/button_delete"
></GridView>
android:verticalSpacing=
"@dimen/picto_grid_spacing"
></GridView>
</RelativeLayout>
...
...
android/Pictogram/tabletlibrary/src/main/res/layout/voca_big.xml
View file @
c885d72d
<FrameLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<FrameLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:tools=
"http://schemas.android.com/tools"
android:theme=
"@android:style/Theme.NoTitleBar.Fullscreen"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:orientation=
"horizontal"
android:background=
"#BDBDBD"
android:keepScreenOn=
"true"
tools:context=
"com.yottacode.pictogram.tabletlibrary.gui.communicator.VOCA"
android:padding=
"@dimen/small_padding"
>
android:orientation=
"horizontal"
android:theme=
"@android:style/Theme.NoTitleBar.Fullscreen"
tools:context=
"com.yottacode.pictogram.tabletlibrary.gui.communicator.VOCA"
>
<RelativeLayout
android:id=
"@+id/pictogramLayout"
...
...
@@ -62,10 +60,10 @@
android:layout_width=
"96dp"
android:layout_height=
"match_parent"
android:layout_alignParentStart=
"true"
android:layout_below=
"@+id/button_delete"
android:background=
"#EEEEEE"
android:scaleType=
"fitCenter"
android:src=
"@drawable/show_categories_grid"
android:layout_below=
"@+id/button_delete"
/>
android:src=
"@drawable/show_categories_grid"
/>
<GridView
android:id=
"@+id/picto_category_grid_view"
...
...
@@ -73,6 +71,7 @@
android:layout_height=
"match_parent"
android:layout_alignParentBottom=
"true"
android:layout_alignParentEnd=
"true"
android:layout_below=
"@+id/tape_grid_view"
android:layout_toEndOf=
"@+id/showPictoCategoriesViewButton"
android:background=
"#DDDDDD"
android:gravity=
"center_vertical|center|center_horizontal"
...
...
@@ -80,8 +79,7 @@
android:numColumns=
"8"
android:paddingLeft=
"@dimen/small_padding"
android:paddingRight=
"@dimen/small_padding"
android:verticalSpacing=
"@dimen/picto_grid_spacing"
android:layout_below=
"@+id/tape_grid_view"
></GridView>
android:verticalSpacing=
"@dimen/picto_grid_spacing"
></GridView>
<GridView
android:id=
"@+id/picto_main_grid_view"
...
...
@@ -90,19 +88,19 @@
android:layout_alignParentBottom=
"true"
android:layout_alignParentEnd=
"true"
android:layout_alignParentStart=
"true"
android:layout_below=
"@+id/button_delete"
android:background=
"#DDDDDD"
android:gravity=
"center_vertical|center|center_horizontal"
android:horizontalSpacing=
"@dimen/picto_grid_spacing"
android:paddingLeft=
"@dimen/small_padding"
android:verticalSpacing=
"@dimen/picto_grid_spacing"
android:layout_below=
"@+id/button_delete"
></GridView>
android:verticalSpacing=
"@dimen/picto_grid_spacing"
></GridView>
</RelativeLayout>
<FrameLayout
android:id=
"@+id/fragment_container"
android:layout_width=
"match_parent"
android:layout_height=
"
@dimen/tape_normal_heigh
t"
android:layout_height=
"
match_paren
t"
android:layout_gravity=
"center"
android:orientation=
"horizontal"
>
...
...
android/Pictogram/tabletlibrary/src/main/res/layout/vocabulary_manager.xml
View file @
c885d72d
<FrameLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<FrameLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:tools=
"http://schemas.android.com/tools"
android:theme=
"@android:style/Theme.NoTitleBar.Fullscreen"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:orientation=
"horizontal"
android:background=
"#BDBDBD"
android:keepScreenOn=
"true"
tools:context=
"com.yottacode.pictogram.tabletlibrary.gui.communicator.VocabularyManager"
android:padding=
"@dimen/small_padding"
>
android:orientation=
"horizontal"
android:theme=
"@android:style/Theme.NoTitleBar.Fullscreen"
tools:context=
"com.yottacode.pictogram.tabletlibrary.gui.communicator.VocabularyManager"
>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:id=
"@+id/pictogramLayout"
>
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<!-- android:keepScreenOn - To keep the screen bright as long as the app is visible (also forever) -->
<RelativeLayout
...
...
@@ -107,4 +104,13 @@
</RelativeLayout>
<FrameLayout
android:id=
"@+id/fragment_container"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_gravity=
"center"
android:orientation=
"horizontal"
>
</FrameLayout>
</FrameLayout>
android/Pictogram/tabletlibrary/src/main/res/layout/vocabulary_manager_big.xml
View file @
c885d72d
<FrameLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<FrameLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:tools=
"http://schemas.android.com/tools"
android:theme=
"@android:style/Theme.NoTitleBar.Fullscreen"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:orientation=
"horizontal"
android:background=
"#BDBDBD"
android:keepScreenOn=
"true"
tools:context=
"com.yottacode.pictogram.tabletlibrary.gui.communicator.VocabularyManager"
android:padding=
"@dimen/small_padding"
>
android:orientation=
"horizontal"
android:theme=
"@android:style/Theme.NoTitleBar.Fullscreen"
tools:context=
"com.yottacode.pictogram.tabletlibrary.gui.communicator.VocabularyManager"
>
<RelativeLayout
android:id=
"@+id/pictogramLayout"
...
...
@@ -108,4 +106,13 @@
</RelativeLayout>
<FrameLayout
android:id=
"@+id/fragment_container"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_gravity=
"center"
android:orientation=
"horizontal"
>
</FrameLayout>
</FrameLayout>
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