Note that there are some explanatory texts on larger screens.

plurals
  1. POLoading Screen wheel with using Blackberry JAVA SDK 6.0 Activity Indicator UI element
    primarykey
    data
    text
    <p>In my project,I want to show a loading screen with a rolling wheel image(possibly with a .gif file) while my http connection occured.</p> <p>My code is below. It extends a class which extends MainScreen. I show this screen when the user clicked login button.</p> <pre><code>public class MSWheelScreen extends MSScreen{ //Constructor public MSWheelScreen(){ super(); add(new SeparatorField()); add(new LabelField("Loading...", Field.FIELD_HCENTER)); add(new SeparatorField()); add(new LabelField()); ActivityIndicatorView myview = new ActivityIndicatorView(Field.USE_ALL_WIDTH); ActivityIndicatorModel mymodel = new ActivityIndicatorModel(); ActivityIndicatorController mycontroller = new ActivityIndicatorController(); myview.setController(mycontroller); myview.setModel(mymodel); mycontroller.setModel(mymodel); mycontroller.setView(myview); mymodel.setController(mycontroller); Bitmap mybitmap = Bitmap.getBitmapResource("img/wheel.gif"); myview.createActivityImageField(mybitmap, 5, Field.FIELD_HCENTER); add(myview); } } </code></pre> <p>Anyway; my problem is that, I cant show the wheel image as i wanted. I can only see the part of the wheel, i am not able to see the whole .gif file as i open it in a browser. So i want to adjust the .gif file that i have added on the loading screen. I want to know some built in methods that i can use with activity indicator UI elements to adjust my gif.</p> <p>The link for my sample run screenshot:</p> <p><a href="http://imageshack.us/photo/my-images/191/9800j.jpg/" rel="nofollow">http://imageshack.us/photo/my-images/191/9800j.jpg/</a></p> <p>The link for original gif.</p> <p><a href="http://imageshack.us/photo/my-images/810/ajaxloaderw.gif/" rel="nofollow">http://imageshack.us/photo/my-images/810/ajaxloaderw.gif/</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload