Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 14    Views: 77

Edwin_raimond
I hate code!
Profile
Posts: 9
Reg: Aug 18, 2013
Miami
3,190
12/05/13 08:36 AM (11 years ago)

Interactive quiz android problem

Hi, I am using the Interactive quiz plugin and in Android it doesn't let me scroll the question screen or the answer screens. So for longer questions I am only able to see part of the question, and for the answers I am only able to see 3 out of 4. How can I fix this? Thanks!
 
Dusko
Veteran developer
Profile
Posts: 998
Reg: Oct 13, 2012
Beograd
22,680
like
12/05/13 09:16 AM (11 years ago)
I have this problem too.
 
nadthevlad
Code is Art
Profile
Posts: 1025
Reg: Jun 07, 2012
Denver
21,850
like
12/05/13 10:39 AM (11 years ago)
There is a forum post around here somewhere dealing with this. It involves making the height of the buttons a bit bigger and wrapping the quiz screen in a scroll view (modification in the .xml file).
 
Dusko
Veteran developer
Profile
Posts: 998
Reg: Oct 13, 2012
Beograd
22,680
like
12/05/13 11:22 AM (11 years ago)
@nadthevlad, thank you. I'll modify the xml file then.
 
nadthevlad
Code is Art
Profile
Posts: 1025
Reg: Jun 07, 2012
Denver
21,850
like
12/05/13 09:38 PM (11 years ago)
 
Dusko
Veteran developer
Profile
Posts: 998
Reg: Oct 13, 2012
Beograd
22,680
like
12/06/13 12:40 AM (11 years ago)
Thank you for the link!
 
Edwin_raimond
I hate code!
Profile
Posts: 9
Reg: Aug 18, 2013
Miami
3,190
like
12/06/13 07:24 AM (11 years ago)
Thank you so much for your answers. I am still having a little trouble with where to add those lines of code. I have found these lines in the .xml file: <activity android:name=".BT_screen_quiz" android:label="@string/app_name" android:configChanges="keyboardHidden|orientation" android:screenOrientation="portrait"></activity> Would I add the code lines at the end of this? Thanks again for your patience.
 
Edwin_raimond
I hate code!
Profile
Posts: 9
Reg: Aug 18, 2013
Miami
3,190
like
12/06/13 07:33 AM (11 years ago)
I am sorry, the file that I am talking about is the Android manifest.xlm Is there where I have to add these lines? Or else, where can I find the screen_quiz.xml file? Thanks again.
 
Edwin_raimond
I hate code!
Profile
Posts: 9
Reg: Aug 18, 2013
Miami
3,190
like
12/06/13 07:45 AM (11 years ago)
I am sorry, the file that I am talking about is the Android manifest.xlm Is there where I have to add these lines? Or else, where can I find the screen_quiz.xml file? Thanks again.
 
nadthevlad
Code is Art
Profile
Posts: 1025
Reg: Jun 07, 2012
Denver
21,850
like
12/06/13 12:13 PM (11 years ago)
 
nadthevlad
Code is Art
Profile
Posts: 1025
Reg: Jun 07, 2012
Denver
21,850
like
12/06/13 12:27 PM (11 years ago)
And then to change the size of your buttons make this change in the same bt_screen_quiz.xml https://www.evernote.com/shard/s201/sh/c9f4f092-2e0a-4600-80ef-8bc2446cd81a/424314eed7f5fe76210b5538e327841e/deep/0/Java---test33-res-layout-bt_screen_quiz.xml---ADT----Users-nicholasdinnocenzo-Documents-workspace.png In this case I increased the button height from 58 to 100. feel free to pick your own size though.
 
Edwin_raimond
I hate code!
Profile
Posts: 9
Reg: Aug 18, 2013
Miami
3,190
like
12/06/13 01:44 PM (11 years ago)
Thank you! I will try that and let you know how it goes!
 
Edwin_raimond
I hate code!
Profile
Posts: 9
Reg: Aug 18, 2013
Miami
3,190
like
12/06/13 02:39 PM (11 years ago)
nadthevlad I couldn't find a file named bt_screen_quiz.xml, however I found a file named screen_quiz.xml I made the modifications there but as soon as I modified that file other errors started to appear. Do you know how I can manage that? The errors that I get are mainly about some ids not being in the same sibling directory... but they worked fine at first (before I added the scrolling option). Sorry for all the trouble.
 
nadthevlad
Code is Art
Profile
Posts: 1025
Reg: Jun 07, 2012
Denver
21,850
like
12/07/13 09:33 AM (11 years ago)
I would try removing the offending items or changing them to something more benign. Not sure how that will affect the app overall though. You are just going to have to play with it and see what works and what doesn't. I haven't done anything with this beyond the pics I sent you.
 
Edwin_raimond
I hate code!
Profile
Posts: 9
Reg: Aug 18, 2013
Miami
3,190
like
12/09/13 12:41 PM (11 years ago)
Thanks a lot! I'll let you know how all this turns out.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.