How to enable a smartphone sized Android application on larger screens -


my problem can summed in 1 picture can see in location: http://imgur.com/qoiyl

the application had been developed smartphone, , on small resolution there no problem, application fills whole screen. in tablet, can see, size corresponding smartphone used.

i guess means somewhere height , width values hard set. cannot see where! possible set height , width application (all activities doing same thing).

here androidmanifest.xml :

<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.dombox.app" android:versioncode="11" android:versionname="2.0.4" >  <uses-sdk android:minsdkversion="3" />  <uses-permission android:name="android.permission.write_settings" > </uses-permission> <uses-permission android:name="android.permission.internet" > </uses-permission> <uses-permission android:name="android.permission.access_network_state" > </uses-permission> <uses-permission android:name="android.permission.access_wifi_state" > </uses-permission>  <application     android:icon="@drawable/icon"     android:label="@string/app_name" >     <activity         android:name=".activity.domboxhome"         android:label="@string/app_name" >         <intent-filter>             <action android:name="android.intent.action.main" />              <category android:name="android.intent.category.launcher" />         </intent-filter>     </activity>      <uses-library android:name="android.test.runner" />      <activity         android:name=".activity.list.zoneslist"         android:label="@string/app_name" >         <intent-filter>             <action android:name="dombox.menu" />         </intent-filter>     </activity>     <activity         android:name=".activity.list.equipementslist"         android:label="@string/app_name" >     </activity>     <activity         android:name=".activity.pulltorefreshactivity"         android:label="@string/app_name" >     </activity>     <activity android:name="org.achartengine.graphicalactivity" />      <instrumentation         android:name="android.test.instrumentationtestrunner"         android:label="tests android dombox"         android:targetpackage="com.application.androiddombox" >     </instrumentation>     <activity         android:name=".activity.list.suiviconsolist"         android:label="@string/app_name" >     </activity>     <activity android:name=".activity.list.planninglist"       android:label="@string/app_name"></activity> </application> 

and here 1 of mine layout (there in folder /res/layout/)

<?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal"> <fragment     android:name="com.dombox.app.fragment.menufragment"     android:layout_width="0dp"     android:layout_height="fill_parent"     android:id="@+id/menu_fragment"     android:layout_weight="30">     <!-- preview: layout=@layout/list_text --> </fragment>  <fragment     android:name="com.dombox.app.fragment.settingsfragment"     android:layout_width="0dp"     android:layout_height="fill_parent"     android:id="@+id/settings_fragment"     android:layout_weight="70">     <!-- preview: layout=@layout/settings --> </fragment> </linearlayout> 

do have idea?

i think app running in compatibility mode, put piece of code before <application> tag in manifest file.

<supports-screens android:largescreens="true" android:normalscreens="true" android:smallscreens="true" android:anydensity="true" android:xlargescreens="false" /> 

hope works,


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -