I am expecting my app to run in fullscreen on all screen sizes using the android stretching capabilities Am using only one XML layout.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal" >
<com.nwm.CD.CCanvas_480x320
android:layout_weight ="1"
android:fillViewport="true"
android:id="@+id/cc_320x480"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</LinearLayout>
But when I run the app on a WVGA00(480x800) a black bar shows up on the far right and has a width of about 80pixels and the app doesn't fill the entire screen.
The class extending view
public class CC_480x320 extends View implements Runnable{
public CricCanvas_480x320(Context context, AttributeSet attrs) {
super(context, attrs);
this.context = (CricDhamaka)context;
}
Any ideas on how to make it run in fullscreen??