Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Trusted Contributor
NitishSubudhi
Posts: 166
Registered: ‎12-09-2011
My Device: 9550,9300,9800,9700,9900,9850,9860

Re: Get click event of row

you can also use the code for checking different resolution for different devices:

if(screen.height == (The resolution You want)) {
// Code Inside Here
}

 

 same for Width you can declare.

Thanks & Regards,
Nitish Subudhi

Feel Free To Press The Like Button On The Right Side To Thank The User That Helped You.
Please Mark Posts As Solved If You Found a Solution.
Please use plain text.
Developer
ravi1989
Posts: 777
Registered: ‎07-21-2012
My Device: 9810

Re: Get click event of row

hi sir you are right but , i am not understand how this code is used for different resolutions of blackberry or android phones
Please use plain text.
Developer
ravi1989
Posts: 777
Registered: ‎07-21-2012
My Device: 9810

Re: Get click event of row

.scroll-pane
{
width: 100%;
height: 200px;// here i am using fixed pixel
z-index:1;
overflow: auto;
position: relative;

}

can you do some change so the it is compatible to some device in blackberry or android
Please use plain text.
Developer
Developer
LBP
Posts: 607
Registered: ‎04-29-2011
My Device: PlayBook 16GB, BB10 LE Z10 (red)
My Carrier: none

Re: Get click event of row

Try something like this:

 

.scroll-pane {
...
height: 200px; // here i am using fixed pixel
...
}


/* for devices with max-height 400px */ @media all and (max-height: 400px){ .scroll-pane { height: 150px; } } /* for devices with max-height 800px */ @media all and (max-height: 800px){ .scroll-pane { height: 250px; } }

Not tested, but it should work. You need to give it a try on the devices you want to support since not all devices might support the @media, but I think it should. For the "max-height" there are also some other things like "device-height" you should search for @google to understand why the one or the other and what they can do for your.


"Like" if you liked the post.
"Accept as Solution" if the post solves your question.
Please use plain text.
Developer
ravi1989
Posts: 777
Registered: ‎07-21-2012
My Device: 9810

Re: Get click event of row

Thanks sir
Please use plain text.
Developer
ravi1989
Posts: 777
Registered: ‎07-21-2012
My Device: 9810

Re: Get click event of row

sir can you please give me some suggestion how to do same thing in android.

Actually in Blackberry i show loading screen (which is written in config.xml file) before web service response come.

But in android a black screen is display before web service respone will come ,give me some suggestion to show loading screen.

Please use plain text.
Developer
Developer
LBP
Posts: 607
Registered: ‎04-29-2011
My Device: PlayBook 16GB, BB10 LE Z10 (red)
My Carrier: none

Re: Get click event of row

There is something out in the wild known as Google Search you can use for free :smileywink:


"Like" if you liked the post.
"Accept as Solution" if the post solves your question.
Please use plain text.
Developer
ravi1989
Posts: 777
Registered: ‎07-21-2012
My Device: 9810

Re: Get click event of row

sir i done this but after splash screen it show black screen (until web service response came ). i want to show only splash screen (until web service response came ) not black screen.same as blackberry
Please use plain text.
Trusted Contributor
NitishSubudhi
Posts: 166
Registered: ‎12-09-2011
My Device: 9550,9300,9800,9700,9900,9850,9860

Re: Get click event of row

Use this code in Config.xml:

<rim:loadingScreen foregroundImage="images/splash.png" backgroundColor="#000000" onFirstLaunch="true" onLocalPageLoad="false" onRemotePageLoad="false">
		<rim:transitionEffect type="zoomIn" direction="left" />
	</rim:loadingScreen>

 

 This will allow you to show splash Screen until you get the webServices responce came.
Hope this code Help you. 

Thanks & Regards,
Nitish Subudhi

Feel Free To Press The Like Button On The Right Side To Thank The User That Helped You.
Please Mark Posts As Solved If You Found a Solution.
Please use plain text.
Developer
ravi1989
Posts: 777
Registered: ‎07-21-2012
My Device: 9810

Re: Get click event of row

But i need it in android...

 

I done in blackberry but not able to done in android.Black screen will display.

 

Help

Thanks

 

Please use plain text.