Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Tablexia-old
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
10
Issues
10
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
labs
Tablexia-old
Commits
c35b70b5
Commit
c35b70b5
authored
Dec 05, 2014
by
Luboš Horáček
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Zoomování novinových článků - listener pro přechod do ulice
parent
7b883f62
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
res/layout/newuser_dialog_newspaper.xml
res/layout/newuser_dialog_newspaper.xml
+0
-1
src/main/java/cz/nic/tablexia/newusers/fragment/NewspaperDialog.java
...va/cz/nic/tablexia/newusers/fragment/NewspaperDialog.java
+12
-5
No files found.
res/layout/newuser_dialog_newspaper.xml
View file @
c35b70b5
...
@@ -28,7 +28,6 @@
...
@@ -28,7 +28,6 @@
android:id=
"@+id/imageView_column"
android:id=
"@+id/imageView_column"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_margin=
"10dp"
android:background=
"@drawable/newuser_dialog_background"
android:background=
"@drawable/newuser_dialog_background"
android:src=
"@color/transparent"
/>
android:src=
"@color/transparent"
/>
...
...
src/main/java/cz/nic/tablexia/newusers/fragment/NewspaperDialog.java
View file @
c35b70b5
...
@@ -49,7 +49,18 @@ public class NewspaperDialog extends TablexiaDialog {
...
@@ -49,7 +49,18 @@ public class NewspaperDialog extends TablexiaDialog {
int
idBubble
=
getArguments
().
getInt
(
BUBBLE_KEY
);
int
idBubble
=
getArguments
().
getInt
(
BUBBLE_KEY
);
int
idImage
=
getArguments
().
getInt
(
IMAGE_KEY
);
int
idImage
=
getArguments
().
getInt
(
IMAGE_KEY
);
view
.
findViewById
(
idBubble
).
setVisibility
(
View
.
VISIBLE
);
View
bubble
=
view
.
findViewById
(
idBubble
);
bubble
.
setVisibility
(
View
.
VISIBLE
);
boolean
detective
=
getArguments
().
getBoolean
(
DETECTIVE_KEY
);
if
(
detective
)
{
bubble
.
setOnClickListener
(
new
OnClickListener
()
{
@Override
public
void
onClick
(
View
v
)
{
LocalBroadcastManager
.
getInstance
(
getActivity
()).
sendBroadcast
(
new
Intent
(
"cz.nic.tablexia.action.SLIDE_NEWSPAPER"
));
}
});
}
ImageView
iv
=
(
ImageView
)
view
.
findViewById
(
R
.
id
.
imageView_column
);
ImageView
iv
=
(
ImageView
)
view
.
findViewById
(
R
.
id
.
imageView_column
);
iv
.
setImageResource
(
idImage
);
iv
.
setImageResource
(
idImage
);
...
@@ -61,10 +72,6 @@ public class NewspaperDialog extends TablexiaDialog {
...
@@ -61,10 +72,6 @@ public class NewspaperDialog extends TablexiaDialog {
@Override
@Override
public
void
onClick
(
View
v
)
{
public
void
onClick
(
View
v
)
{
dismiss
();
dismiss
();
boolean
detective
=
getArguments
().
getBoolean
(
DETECTIVE_KEY
);
if
(
detective
)
{
LocalBroadcastManager
.
getInstance
(
getActivity
()).
sendBroadcast
(
new
Intent
(
"cz.nic.tablexia.action.SLIDE_NEWSPAPER"
));
}
}
}
});
});
}
}
...
...
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