About application UI layout problem

by NightGospel » Fri, 28 May 2010 03:52:15 GMT


Sponsored Links
 Hi all,
I have a device and LCD is 800*480 resolution and density is 160. It
works perfect under cupcake, but when I push those prebuilt
applications (or download from Android Market) into my device with
Eclair via adb, the UI layout is half-
sized! The strange thing is that those applications built together
with image are normal (AlarmClock, Settings, Contacts and so on). If
I
set density to 240, it can show full screen but everything is
enlarged
and looks ugly. Is it possible to make those apks full-screen without
rebuilding them? Does anyone have any clues for this? Thanks in
advance.

NightGospel

--



Other Threads

1. Does anyone have an example of using ActivityGroup?

Appreciate for any help!
--~--~---------~--~----~------------~-------~--~----~

2. no id class generated in R.java (using eclipse)

Hi all,

i copied the following code from google's website :

package a.b;

import android.app.Activity;
import android.os.Bundle;
import android.widget.Button;
import android.widget.TextView;
import android.view.View;

public class Myactivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
        setContentView(R.layout.main);

        final Button button = (Button) findViewById(R.id.button_id);
        button.setOnClickListener(new Button.OnClickListener() {
            public void onClick(View v) {
                // Perform action on click
            }
        });
    }
}

this is for usage of buttons . but its showing error on the line
having - (R.id.button_id);

when i check my R.java file i find there is no 'id' file generated
hence the compiler has no idea of what R.id is .

can any body please help me ?
--~--~---------~--~----~------------~-------~--~----~

3. Web Service Deployment

4. Android on non-linux os

5. Access caller activity from a called activity

6. Writing files to the Emulator

7. question on getSelectedItemId function