cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
139
Views
0
Helpful
0
Comments
cdnadmin
Level 11
Level 11
This document was generated from CDN thread

Created by: John Monroe on 01-11-2010 04:13:55 PM
I'm seeing an issue when using the emulator with the Cius skin, where it only allows the upper portion of the viewing screen to be used. It appears as though anything on the lower half of the screen is getting cut off. This does not happen when using the default skin.  Plus it appears the left and right margins are large, i.e. you only have access to the center of the screen. Are these restrictions of Cius? I'm using a very basic RelativeLayout.
 
My Configuration:
Windows XP
SDK 2.2
Eclipse 3.5.2 with ADT
Cuis skin from here: http://developer.cisco.com/web/cius/docs

I'm launching the emulator from within Eclipse (i.e. "Run").
 
Attached are two screen shots that reflect the issue, and the layout.
 
Thanks for any comments.
 
--John

Subject: RE: Cius skin only allows half of the screen to be used?
Replied by: Matthew Williams on 01-11-2010 05:20:35 PM
Hey John,

I think that the issue you are having is that you are using the wrong version of Android. In the older versions of Android (i.e 1.5 and older) there is not support for screen sizes that are larger than the default. In order to remedy this, add the following line in your Android Manifest (inside the <manifest> tags):

<uses-sdk android:minSdkVersion="4" />
 
This should solve the issue of the application not stretching to the full screen.
 
Thanks,
Matthew Williams

Subject: RE: Cius skin only allows half of the screen to be used?
Replied by: Ashish Sharma on 01-11-2010 05:22:35 PM
Hi John,
 
 
Use these below XML entries in AndroidManifest.xml file 
 

<uses-configuration>
  <supports-screens android:smallScreens="true"
   android:normalScreens="true" android:largeScreens="true"
   android:anyDensity="true" />
</uses-configuration>

 
Your application will work fine. Using these entries your application will support multiple screens.
 
For more info, Please refer -
 
http://developer.android.com/guide/practices/screens_support.html
 
Best Regards,
Ashish Sharma.
 
 
I'm seeing an issue when using the emulator with the Cius skin, where it only allows the upper portion of the viewing screen to be used. It appears as though anything on the lower half of the screen is getting cut off. This does not happen when using the default skin.  Plus it appears the left and right margins are large, i.e. you only have access to the center of the screen. Are these restrictions of Cius? I'm using a very basic RelativeLayout.
 
My Configuration:
Windows XP
SDK 2.2
Eclipse 3.5.2 with ADT
Cuis skin from here: http://developer.cisco.com/web/cius/docs

I'm launching the emulator from within Eclipse (i.e. "Run").
 
Attached are two screen shots that reflect the issue, and the layout.
 
Thanks for any comments.
 
--John


Subject: RE: Cius skin only allows half of the screen to be used?
Replied by: David Staudt on 01-11-2010 06:05:39 PM
It looks like you are running into this compatibility-mode behaviour:
 
http://d.android.com/guide/practices/screens_support.html
 
Compatibility-mode display on larger screen-sizes
If the current screen's size is larger than your application supports, as
specified in the <code>supports-screens</code> element, the platform displays
the application at the baseline size ("normal") and density ("medium). For
screens larger than baseline, the platform displays the application in a
baseline-sized portion of the overall screen, against a black background. 

 
You will want to ensure you are taking advantage of the 1.6+ Android API features for handling screen size-resolution independence.  Some additional best-practices:
 
http://d.android.com/guide/practices/screens_support.html#screen-independence

Subject: RE: Cius skin only allows half of the screen to be used?
Replied by: John Monroe on 01-11-2010 07:25:56 PM
Thank you for the help. Per your instructions, I added the screen support attributes and the SDK version requirements, and it's now working:
 

<uses-sdk android:minSdkVersion="8"
           android:targetSdkVersion="8"/>
<uses-configuration>
<supports-screens android:smallScreens="true"
      android:normalScreens="true"
      android:largeScreens="true"
      android:anyDensity="true" />
</uses-configuration>


Thanks.


--John
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links