Android :: Drawable Rotating Around Its Center ?

Sep 27, 2010

I am getting strange results with the following code:

CODE:......................

Whats the right way to specify the axis point (center of the drawable)?

Android :: Drawable Rotating around its center ?


Android : Rotating Quad Around Its Center

Jun 18, 2010

I'm a newbie in OpenGL. :D I'm trying to rotate a quad around its center.This is my scenario: I've a quad, drawn with TRIANGLE_STRIP, at specified coordinates.Now I want to rotate of 45 degrees around its center, without move it from its position, not around the origin of the aces. I hope you are able to understand my english.How can I do that?

View 10 Replies View Related

Android : Layout - Textviews Top Center And Bottom Center

Jul 29, 2010

I have a layout question.

Say I have a RelativeLayout appearing at the bottom of my screen. In this, I want to add 2 textviews, in the center, one in the top center and one in the bottom center.

|--------------------------|
| Text1 |
| Text2 |
|--------------------------|

Something like that.

View 2 Replies View Related

Sony Ericsson Xperia X10 : Can't Send Sms - Put Servise Center Manully In Wireless Control Mobile Network Service Center Number

Sep 21, 2010

I can't send sms's from my x10 and i ask support and they told me to put the servise center manully in wireless control<mobile network> service center number. but i couldn't find that in my phone!!!

View 11 Replies View Related

Android :: High Density Emulator Use Drawable Mdpi Folder Instead Of Drawable Hdpi

Oct 19, 2010

I am running my application in the emulator using a high density skin (like WVGA800). However the ressources in my application are loaded from the drawable- mdpi folder instead of drawable-hdpi ... what else should I do so that android use the correct folder ?

View 4 Replies View Related

Android :: How To Use Rotating Progress Bar?

Aug 30, 2010

I'm using Rotating Progress Bar in my Android Music Plyer Application....I'm not able to stop it. While working with horizontal Progress bar i used handler to stop and start it. But while working with Rotating One, The progress bar goes into Infinite Loop..

View 2 Replies View Related

Android :: Rotating Text On A Button

Feb 25, 2010

How can i rotate a view and keep it like that. I have tried the Animation method discuss in the following discussion thread.

http://groups.google.com/group/android-developers/browse_thread/threa...

this works fine for the animation, but it does not handle the key press events itself.my requirement is simple, I need to show a text on a button upside down. Somewhat as if the parent view is drawn landscape and button is portrait.

View 2 Replies View Related

Android :: Rotating Textures When Using GlDrawTexiOES

Sep 27, 2010

I created a little texture drawing class from observing the LabelMaker example in the Android SDK. One thing I can't find however is how to rotate textures drawn with glDrawTexiOES. is it possible? I've just tried glRotatef but it has no effect.

View 1 Replies View Related

Android :: Rotating TextView Upside Down

Jul 24, 2009

I'm trying to find a way to rotate a View, or (more conveniently) an entire layout, upside down and have it stay that way. I found the rotation and animation classes in the SDK, and these come close to what I want, but at the end of the animation I want my Layout to stay rotated; repeating the animation or just flipping back right- side-up doesn't help me with my app unfortunately.The only thing I can think of so far would be to find the source code for the rotate class, and override it such that the "...and then flip it back around to be right-side-up" code never happens. I'm not sure exactly where I'd find the original rotate code for reference if I were to do something that extensive however.I've found references online to the full android source - is that basically what I'd be looking at downloading to be able to attempt something like this? Am I missing a simple option on the rotation that would let it just stay put after I rotate it? Any help would be very much appreciated!

View 6 Replies View Related

Android :: Sync With Calendar For Rotating Schedule?

Aug 30, 2010

Is anybody aware of an app that will sync with my calendar for my rotating schedule? I work Monday, Tuesday, Wednesday, and every other Saturday Sunday, from 1545 to 0145. I've tried the reoccurring event, but I don't want to have to go through and delete every other Saturday Sunday. I would like to be able to set it so I can enter it, and it will set it up for a couple years.

View 4 Replies View Related

Android :: Rotating In Content Gets Clipped / Way To Prevent?

Oct 24, 2009

I'm trying to draw some large circles on the canvas which are partly offscreen, then use animation to rotate them in be fully visible. My circles successfully rotate in, but when they come into view they're clipped at the place that was the screen edge when they were originally drawn. Is there any way to prevent this? I guess my larger question is how can you draw elements beyond the edges of the screen and then animate them into view?

View 2 Replies View Related

Android :: Way To Test Rotating Device / Emulator?

Jun 9, 2009

I'm using the 1.5 SDK. I read in 1.0 that rotating the device would cause onCreate() to be called in our apps (possibly recreating the entire app?). Is there a way to test rotating the device in the emulator? I just want to see what happens, I don't have a device to test this. Will the behavior be the same for 1.5 as it was in 1.0?

View 3 Replies View Related

Android : How Can I Handl Activity Rotating In Droid?

Sep 25, 2010

I need to apply different layouts for portrait and landscape orientations of my activity. Besides, I need to show alert if orientation is portrait. Why onConfigurationChanged is called twice? How can I avoid it?

View 3 Replies View Related

Android :: How To Restore Dialog After Rotating The Screen?

Sep 11, 2010

How to restore the dialog etc after rotating the screen? For example, pop up an alertDialog to tell user some information. then the user rotate the screen to another orientation. How to restore the alertDialog? Can any one guide me to do it?

In restoreManagedDialogs, it has something to do with mManagedDialogs.As you can see, for advanced feature, you must do the saving and restoring job by yourself. It may be a night mare when you have tons customized dialogs. I have not tried the complex dialog (has input EdiText, listView, say). In this way, I'd like to warn users: Never rotate the screen when inputing your info in the dialog... OR, lock the rotation dynamically when showing the dialog.

View 2 Replies View Related

Android :: Program Flow When Rotating Device With Two Activities

Aug 13, 2010

My first activity is creating a second activity within its onCreate:

CODE:............

The second activity has EditText views for the username and password along with submit and cancel buttons. When either button is pushed, the text from username and password is sent back to activity one (via onActivityResult), which connects to a server to see if the username is available. While connecting to the server showDialog is used to show a ProgressDialog. When the server responds, the ProgressDialog is dismissed and an AlertDialog is shown. This works fine as long as the device is not rotated.

Here's the problem: if the user rotates the device from within the second activity and pushes submit, the first activity re-invokes its onCreate, which ends up launching the second activity again since the username and password are still null.

Does anyone have any suggestions to get around this?

Is there a method that could be used to pass data from activity-2 to activity-1's onCreate? I wouldn't want to use a database in this case, as that seems like overkill.

I've thought about containing the server communication and dialogs to activity 2, but then I'd have duplicate server code in activity 1 and activity 2 (activity 1 connects to the server for other things too). Another issue I'd have with this approach is that the user has an option to cancel creating the password, in which case I want the app to finish. If I called finish from activity 2, activity 1 would appear and I don't want that to show unless a username and password have been created.

It just occurred to me - if I could replace activity 2 with a dialog it might make things simpler. The dialog view needs to have 2 EditTexts and 2 buttons. Can I create something like this and use the showDialog method?

View 1 Replies View Related

Android :: Rotating Animation / Applied To Full Window

Dec 20, 2009

I have a pretty simple view hierarchy, including an ImageView in a FrameLayout with a source drawable that is bigger than the window size.Using scaleType=center the image is cropped and centered, as expected, when laid out.In response to user interaction we need to rotate the ImageView.I am using a rotate animation XML definition and View.startAnimation.This works with one remaining problem: the cropped part of the image remains cropped when rotated,so when the image is rotated by 90 degrees in portrait orientation the image is clearly cropped on the top and bottom. Essentially it looks like a rectangle the size of the view window is being rotated,rather than the oversize image in its entirety (note it is intentionally oversize in the hope of avoiding this cropping problem).We want the image to fill the screen regardless of the angle of rotation.What am I missing?

View 2 Replies View Related

Android :: Application Force Closure By Rotating Display To Landscape

Jul 6, 2010

I have thread in "onCreate" which is getting content from web. While the content is getting, I have progress dialog.

new Thread() {
public void run() {
Get_content() ;
handler.sendEmptyMessage(0);
}
}.start();

if I rotate the display (to landscape mode) while this is running, my application gets Force close . In the log I have this:"thread main exiting due to uncaught exception"

View 4 Replies View Related

Android :: Work With Large Bitmap - Rotating And Inserting To Gallery

Feb 19, 2010

I need to take a picture with the camera and, if depending on the picture size, rotate it before saving it into the gallery. I'm using

Intent imageCaptureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
imageCaptureIntent.putExtra(MediaStore.EXTRA_OUTPUT, uri);
startActivityForResult(imageCaptureIntent, IMAGE_CAPTURE);

To take the pic and save it to a temporary file. Then

Bitmap bmp = BitmapFactory.decodeFile(imagePath);
String str = android.provider.MediaStore.Images.Media.insertImage(cr, bmp, name, description);
To save it. This is the code i have tried to use to rotate the bitmap.............

View 1 Replies View Related

Android :: Multiple Animations - Several Imageviews With Pictures Rotating And Moving

Nov 8, 2010

I'm just starting to get the hang of animations, tweened animations that is. I have made several imageviews with pictures rotating and moving, and its all very fun, but I don't know what the best approach for doing multiple animations is.

For example I created a LinearLayout and stuck some ImageViews in it and wrote this:

CODE:...............

for each imageview. So they all spin. But now I want to step it up a gear. But reaidng other sources on the net it seems some people use canvas to do animations. What is the best way?

View 1 Replies View Related

HTC EVO 4G :: Screen Not Rotating Anymore In Any App?

Aug 31, 2010

Today randomly my phone has stopped rotating when in any application, from the browser to messages to mail. I don't know what could have caused this, as I have been using it normal ever since I got it and not messed with anything. Running stock froyo, does anyone know of this and if there is a way to fix? I already tried disabling and enabling autorotate from the settings off and on a couple of times and nothing.

View 1 Replies View Related

HTC EVO 4G :: Rotating From Landscape To Portrait

Jun 8, 2010

My Evo seems to have a very strong preference for landscape view. Any time I am not holding the phone completely straight up it drops to landscape. Then even if I do push it back straight up it doesn't wanna go back to portrait view. Has anyone else experienced this and are there any tricks to get rid of the problem?

View 8 Replies View Related

Media :: Rotating Photos Not Saving?

May 19, 2010

If I rotate a photo and transfer it to computer or email or anything the rotation does not stick, only in the image gallery.

View 4 Replies View Related

HTC EVO 4G :: Get Scientific Calculator When Rotating Phone

Oct 4, 2010

I just realized that you get a scientific calculator when rotating the phone. I plugged in a few items and noticed the sine, cosine and probably other items are WRONG!

View 5 Replies View Related

General :: Messaging Not Auto-Rotating?

Jul 11, 2012

I brought a new Karbonn A7 mobile and messaging alone is not rotaing to landscape mode but the message setting is rotating. Is there any way to make the message auto-rotating while composing or viewing of message. I check auto-rotate is on and all other apps it is auto-rotating.

View 1 Replies View Related

HTC Desire :: Stopping Screen From Rotating Both Ways

Oct 28, 2010

If there is anyway of stopping the screen from rotating both ways? I only want it to rotate one way, like it used to on 2.1

View 12 Replies View Related

KitKat 4.4 :: Prevent Wallpaper From Rotating With Screen?

Apr 27, 2014

Maybe I'm a bit OCD but when I choose a nice wallpaper with a design in the middle, I hate how it flips when the screen does, and when it rotates back its off center.

View 3 Replies View Related

Samsung Galaxy S :: Internet Not Rotating To Portrait Mode

Sep 17, 2010

When I'm using the internet browser it won't rotate into portrait mode, only works in landscape. Is there a setting somewhere to change that or does the internet only work in landscape? I realize this is probably a really simple answer, but I've spent way to long going through every menu setting I can find to try and figure it out.

View 2 Replies View Related

General :: Clock And Weather Widget Changes Layout When Rotating

Jun 22, 2013

I'm looking for a clock widget that looks good in both portrait and landscape modes. I'm tired of clock widgets that look like crap when the launcher is in landscape mode (or, if they look good in landscape, they look like crap in portrait), like HD Widgets or Beautiful Widgets.

I've only found one widget that changes its layout completely (read: not just stretches in one dimension and contracts in the other) to adjust itself to its new allocated area: Accuweather. See the attached images for what I mean. Notice the layout is completely different, and nothing overlaps/looks stretched/tiny. Both modes look great.

Now, my problem with Accuweather is that I'm looking for something darker, that looks better with the wallpaper. Do you know of some widget that does the same as Accuweather (different layouts for portrait/landscape) and allows customization?

View 1 Replies View Related

Samsung Moment :: Homescreen Stopped Rotating When Keyboard Not Open?

Dec 10, 2009

i got my moment today and everything worked fine just now the home screen stopped rotating when the keyboard wasn't open? everything else will rotate but not the home screen also what apps do i not kill with Advance App Killer cuz i know some of them will just open back up

View 11 Replies View Related

HTC Incredible :: When I Hold Phone Horizontally / Rotating It Does Not Change View

May 10, 2010

Not sure if this is a problem with the phone or not-also not sure if it was like it when I got it. I just became aware of the issue on Saturday night.I had the phone on a table and was holding it horizontally-I was trying to get it to switch to landscape view (so I could use full keyboard ) and could not get it to do so. The only sure way I can get it to switch to landscape view is to hold the phone vertically and then have it switch.Is there something wrong with the phone?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved