display unnormal

by nedbjt » Wed, 26 Aug 2009 12:42:43 GMT


Sponsored Links
 Hi,
I porting android to my Marvell P35 platform. It works well when use
others old systemimg,ramdisk and zImage. Display is good. I download
the Android source code and compiler my own systemimg and ramdisk
without any change.
After I download my own systemimg and ramdisk to the device,
LCD can display picture with correct resolution,but it's not clear and
the color is wrong.
Can any one give me some advices? May I modify some config of Android?
How?
Thanks.

--~--~---------~--~----~------------~-------~--~----~

-~----------~----~----~----~------~----~------~--~---



display unnormal

by nedbjt » Wed, 26 Aug 2009 14:31:43 GMT


 Oh, sorry,P35 should be PXA935. Last image can run normally, so I
think  display driver in Linux kernle is OK. How can I modify
Android's display configurations?
--~--~---------~--~----~------------~-------~--~----~

-~----------~----~----~----~------~----~------~--~---


Sponsored Links


Other Threads

1. Publishing Applications on the Android Market: Tax implications

You should probably consult a tax attorney or accountant with
questions like this.





--~--~---------~--~----~------------~-------~--~----~

2. Problems with combined scrollview and tablelayout

Hi,
  I'm trying out the SDK and am attempting to combine a ScrollView
with  table layout and GridView.  For each row of the table I want a
list of TextView's stored in GridView. With my current layout, all of
the text views in the grid end up overlaying each other.  Can anyone
tell me how to give each TextView in the grid a set width so that I
can see each text value?  I've tried both the ScrollView and
HorizontalScrollView widgets and both produce the same results.

I've developed a basic Adapter for the GridView which may be the
problem.  I can't find any good examples or other doc's that explan
the us of the Adater class for gridview any better.
I'm using the following layout:
<?xml version="1.0" encoding="utf-8"?>

<HorizontalScrollView
android:id="@+id/ScrollView01"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
        <TableLayout
        android:id="@+id/TableLayout01"
        android:layout_height="wrap_content"
        android:layout_width="fill_parent">
                <TableRow
                android:id="@+id/TableRow01"
                android:layout_height="wrap_content"
                android:layout_width="fill_parent">
                        <TextView
                        android:id="@+id/TextView01"
                        android:layout_height="wrap_content"
                        android:layout_width="fill_parent"
                        android:text="Inning">
                        </TextView>
                        <GridView
                        android:id="@+id/GridView01"
                        android:layout_height="wrap_content"
                        android:layout_width="fill_parent"
                        android:numColumns="10"
                        android:minWidth="25px">
                        </GridView>
                </TableRow>
        </TableLayout>
</HorizntalScrollView>




I've set up a very basic grid adapter here's the code:

package com.example.hsview;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.GridView;
import android.widget.TextView;

public class GridAdapter extends BaseAdapter {

        private Context context;
        private String[] texts = {"1", "2", "3", "4", "5", "6", "7", "8",
"9", "Out"};

        public GridAdapter(Context context) {
            this.context = context;
        }

        public int getCount() {
                return texts.length;
        }
        public Object getItem(int position) {
                        return texts[position];
        }

        public long getItemId(int position) {
            return position;
        }
        public View getView(int position, View convertView, ViewGroup parent)
{
            TextView tv;
            if (convertView == null)
            {
                        tv = new TextView(context);
                        tv.setLayoutParams(new GridView.LayoutParams(30, 30));
            }
            else
            {
                tv = (TextView) convertView;
            }

        tv.setText(texts[position]);
        tv.setWidth(30);
            return tv;
        }
}

And finally, here's the app startup code:
package com.example.hsview;

import android.app.Activity;
import android.os.Bundle;
import android.widget.GridView;

public class ExampleHSView extends Activity {
        GridView inningView, homescoreView;
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        inningView = (GridView)this.findViewById(R.id.GridView01);
        inningView.setAdapter(new GridAdapter(this));
    }
}

--~--~---------~--~----~------------~-------~--~----~

3. Android Market timeline

4. Tools

5. Need code sample for double lon= loc.getLongitude();

6. Market moderation

7. Library Reference Error in Eclipse - OpenIntents FileManager