What is the best gui editor?

by ArcDroid » Tue, 28 Sep 2010 21:19:57 GMT


Sponsored Links
 I am creating the gui in xml using eclipse, is there a better way?

--



What is the best gui editor?

by Shaun McCloud » Tue, 28 Sep 2010 21:39:14 GMT


 I'm partial to DroidDraw.  But that is just me.




--


Sponsored Links


What is the best gui editor?

by James Elsey » Tue, 28 Sep 2010 21:40:28 GMT


 Some links here which may help

 http://stackoverflow.com/questions/851882/easy-way-to-build-android-ui 



----------------------------------
Regards
James
JamesElsey.co.uk




--



Other Threads

1. Problem in crop image with android version 2.1

Hi all,

I m facing problem in crop image Activity. It give error when I pass
the image uri to the cropimage activity :

02-12 13:02:32.689: ERROR/AndroidRuntime(374): Uncaught handler:
thread main exiting due to uncaught exception
02-12 13:02:32.699: ERROR/AndroidRuntime(374):
java.lang.RuntimeException: Failure delivering result
ResultInfo{who=null, request=1, result=-1, data=Intent { dat=content://
media/external/images/media/12 }} to activity {com.abc/
com.abc.CameraActivity}: java.lang.SecurityException: Permission
Denial: starting Intent { act=android.intent.action.EDIT dat=content://
media/external/images/media/12 cmp=com.android.camera/.CropImage (has
extras) } from ProcessRecord{43b72040 374:com.abc/10028} (pid=374,
uid=10028) requires null
02-12 13:02:32.699: ERROR/AndroidRuntime(374): at
android.app.ActivityThread.deliverResults(ActivityThread.java:3314)
02-12 13:02:32.699: ERROR/AndroidRuntime(374): at
android.app.ActivityThread.handleSendResult(ActivityThread.java:3356)


Here is our code:
Intent i = new Intent("com.android.camera.action.CROP");
i.setClassName("com.android.camera",
"com.android.camera.CropImage");

if (data != null && data.getData() != null) {
i.setData(data.getData());
userImageUri = data.getData();
} else {
i.setData(userImageUri);
}

i.putExtra("noFaceDetection", false);
i.putExtra("outputX", CommonConstant.ICON_WIDTH);
i.putExtra("outputY", CommonConstant.ICON_HEIGHT);
i.putExtra("aspectX", CommonConstant.ASPECT_X);
i.putExtra("aspectY", CommonConstant.ASPECT_Y);
i.putExtra("scale", true);

ContentValues values = new ContentValues();
values.put(Media.TITLE, "User_t" + "_Image");
values.put(Media.BUCKET_ID, "User-T");
values.put(Media.BUCKET_DISPLAY_NAME, "image_t");
values.put(Media.IS_PRIVATE, 1);
userThumbnailUri = getContentResolver().insert(
Media.EXTERNAL_CONTENT_URI, values);
i.putExtra(MediaStore.EXTRA_OUTPUT, userThumbnailUri);
try {
startActivityForResult(i, CROP_IMAGE);

} catch (Exception e) {
Log.d("CROP ERROR", "Croping ERROR"+e.getMessage()+e);
}


And URI comes from following activity

intent = new Intent("android.intent.action.GET_CONTENT");
intent.setType("image/*");

startActivityForResult(intent, Get_IMAGE);


data.getData() gives result to crop image activity

Also this things work in android 1.6 but not in 2.1


Please help me out...

-- 

2. OpenGL lighting example?

Hi,

I'm having problems getting OpenGL lighting to work.  Right now I'm
playing with a grid of random
polygons.  I've assigned a material that I think should give a light
brown color to everything.
But what I'm seeing is everything is either mostly black or mostly
white most of the time, and there's
a narrow view of angles where I can see shades of my desired color
(and I am getting some correct-looking
shading, so it looks like the normals are at least partly right).  If
I had to guess, I'd say that I'm seeing only
a specular component, and no diffuse or ambient - even though I am
setting material only for diffuse and
ambient, and leaving specular at the default.

Here's some relevant bits:

                        global_ambient = FloatBuffer.allocate(4);
                        global_ambient.put(0.5f);
                        global_ambient.put(0.5f);
                        global_ambient.put(0.5f);
                        global_ambient.put(1.0f);

                        position = FloatBuffer.allocate(4);
                        position.put(10f);
                        position.put(10f);
                        position.put(10f);
                        position.put(1f);

                        gl.glEnable(GL10.GL_LIGHTING);
                        gl.glEnable(GL10.GL_LIGHT0);
                        gl.glLightfv(GL10.GL_LIGHT0, 
GL10.GL_AMBIENT_AND_DIFFUSE,
global_ambient);
                        gl.glLightfv(GL10.GL_LIGHT0, GL10.GL_POSITION, 
position);
                [ ... ]
                float[] mycolor = { 0.8f, 0.7f, 0.6f, 1.0f };
                gl.glMaterialfv(GL10.GL_FRONT, GL10.GL_AMBIENT_AND_DIFFUSE, 
mycolor,
0);
                gl.glVertexPointer(3, GL10.GL_FIXED, 0, mVertexBuffer);
                gl.glColorPointer(4, GL10.GL_FIXED, 0, mColorBuffer);
                gl.glNormalPointer(GL10.GL_FIXED, 0, mNormalBuffer);
                gl.glDrawElements(GL10.GL_TRIANGLES, 6*(GRID-1)*(GRID-1),
GL10.GL_UNSIGNED_SHORT, mIndexBuffer);

Any ideas on what might be wrong?  Is there any sample code that
covers this territory?

Incidentally, I couldn't get the FloatBuffer version of glMaterialfv
to work, my code kept crashing.

       tom

-- 

3. How to use com.android.gallery with an image in the .apk ?

4. read only time

5. how to set two colors Android list rows

6. crash in ListView.layoutChildren on display of onscreen keyboard

7. ANUSHKA'S THUNDER THIGHS FOR UUUUUU