Android :: Layout_gravity Doesn't Work As Expected
Jan 22, 2010
I have a simple LinearLayout with one TextView and one ImageView. I want the text in the TextView to be aligned to the right, but the result show that the Text was aligned to the left.
Is there anything wrong with my layout xml?
CODE:...............
View 6 Replies
Mar 17, 2010
Help me in resolving the below issue. I have three image buttons on screen. All these three buttons controlled under ontouchlistner as below. My problem is, as it is under multi touch event handler like above, it does not detect when touch all three button at a time to try to produce multi touch effect, instead it detects only one imagebutton touch at a time even though i touch all three image buttons. As i am developing this project on Android 1.6 SDK, is there any problem accessing my requirement(multi touch) (or) it is a known issue? I am hoping that, when it works for single button touch, why shouldn't it work when clicking three imagebuttons at a time to produce three logs printed as per my above code? Code...
View 1 Replies
View Related
Nov 12, 2010
I have an application that runs in the background, and displays an error message via the notifications system. This notification has a pendingIntent that leads back the the app's main screen. On this main screen, I have set launchmode="singleTask". As I understand it from the Android Dev Guide, this should mean that my main activity will only ever have one instance.However, if the user is viewing that activity at the time (or another one within the app), and goes and touches the notification to clear it, it goes ahead and puts another copy of the activity on the stack, so if I hit the back button, it will return to the main screen again (from the main screen).
View 2 Replies
View Related
May 2, 2010
I have so far found two bugs in Galaxo 1.6.3:
a) Speaker doesn't work in call (very weak). works well in ringtones etc.
b) Scrolling contacts by letter doesn't work.
Other than that this is a leap forward, especially with the overclock options!
Both bugs, as well as others, fixed in 1.6.3.1 update!
View 49 Replies
View Related
Dec 8, 2009
I'm trying to determine whether or not my phone is defective, or if this is a current problem with the Cliq.
Of the apps I've downloaded, only a few of them have worked. Of those few that work, some don't work right. Has anyone had problems with these apps crashing on them, or just not working correctly?
- Nice Battery (see description at bottom of: My Ultimate CLIQ settings (so far))
- WeatherBug (kept showing the wrong location, crashed when trying to change location)
- Snake - doesn't work just says its "paused"
- RingDroid - crashes when I select the "Facebook Pop" button
- Layar - screen is rotated 90 degrees at all times
There have been others, but usually I just uninstall them right after discovering it doesn't work right.
View 3 Replies
View Related
Jun 14, 2010
I've had an HTC Desire on Orange in the UK for about 6 weeks and it is having persistent problem. Firstly despite having a strong 4-bar out of 4 signal, online services and the internet do not work at all when a 3G signal is being received (e.g. news, weather, all widgets, internet, email etc).Calls and texts do work however with a 3G signal.But when a 3g+ signal (HSDPA) is being received, all internet services as above work fine.However, when a 3+ signal is being received, the phone does not make or receive calls or text messages, and often fails to send texts. Calls I make immediately shut down (bleep + �call ended�), and incoming calls from other people go straight to answerphone. Also often when turning the data connection on/off, it freezes and has to be rebooted, and turning airplane setting on and off does not fix the problem.
I have also tried the different network settings (GSM, WCDMA, auto, etc). �GSM� sends and receives calls and texts but doesn�t work (or is incredibly slow) with internet, and �auto� and �WCDMA only� show the problems as above.I don't think this is a network/coverage issues as, as I have seen many people reporting these same issues on other networks and in other parts of the UK, and I have read that other people are having to manually turn off HSDPA to be able to make calls (using an app?). Even if I can stop HSDPA from connecting to make sure the phone works, I still can�t use the internet at all on 3g � even GSM works better!
Finally, when I connect to a bluetooth device (e.g. car and headphones) the phone will connect briefly, and then randomly disconnect. I have also seen this issue reported elsewhere.I very much like the phone and don't want to get rid of it, but these problems are making the phone unuseable.Also I don't know if I should be contacting HTC or Orange about this. Will the upcoming Android 2.2 fix these problems?Anyone know how to fix this or if I need a new handset? Are there any apps that can help? Also does the Nexus One have these problems and are they fixed by Froyo?
View 4 Replies
View Related
Sep 16, 2009
So I made a discovery - my dialpad doesn't work during a call. Even if I bring it up via the softkeys, the numbers don't register a tap...anyone. else have this issue or is it just my phone?
View 49 Replies
View Related
Aug 14, 2010
I know we can set the following value to the anroid:gravity and android:layout_gravity :
center
center_vertical
center_horizontal , etc.
But i am confused regarding these both. what is the difference between the usage of android:gravity and android:layout_gravity?
View 3 Replies
View Related
May 14, 2009
What is the difference between those attributes? According to the documentation of R.attr, there isn't any difference (doc text is exactly the same, see http://developer.android.com/reference/android/R.attr.html), but apparently, that's simply not true. For example, the gravity attribute can be used on EditText to set the text alignment (e.g. left, center, right).
I often found that neither of them work to align a view at all. For example, I need to float two text views in a relative layout, one going to the left below a title bar, the other going to the right below the title bar. So what I did was this:
CODE:...............
That doesn't work, however. The left text is indeed aligned to the left inside its parent (the relative layout), but the right text is not aligned to the right; instead, it's placed directly to the right of the left text.
View 7 Replies
View Related
May 15, 2010
In xml we have android:layout_gravity ... how can i set this for any view [say image button] ... from code ...
CODE:......................
View 5 Replies
View Related
Nov 16, 2010
The property android:layout_gravity="clip_vertical|horizontal" does the following as mentioned in the sdk documentation:
Additional option that can be set to have the top and/or bottom edges of the child clipped to its container's
bounds. The clip will be based on the vertical gravity: a top gravity will clip the bottom edge, a bottom gravity will clip the top edge, and neither will clip both edges.
But I can't see anything of this in my applications. so what is the purpose of this property exactly ?
View 1 Replies
View Related
Sep 29, 2010
I have 4 buttons in a horizontal linear layout. I'd like the right edge of the 4th button to align with the right edge of the linear layout (equal to screen width) I've tried using android:layout_gravity="right" but it doesn't work - the right button is to the right of the 3rd one but not right aligned . Am I missing something obvious?
main.xml with only the relevant layout params only is:
CODE:....
This doesn't seem to match the stated behaviour for layout_gravity in the SDK reference :"Defines how to place the view, both its x- and y-axis, within its parent view group."
View 1 Replies
View Related
Aug 30, 2010
I'm obviously missing something fundamentally simple here. I have a LinearLayout containing 2 buttons. I've coloured the layout background red so I can see that it has expanded to fill its parent. I wanted the BooButton to center horizontally within the layout and the OtherButton to be right justified. But both buttons are on the left of the layout.
CODE:..................
View 15 Replies
View Related
May 4, 2009
I need to change it for an imageview that resides in a linearLayout changing it from top to bottom.
View 6 Replies
View Related
May 31, 2010
I would like to know if is there a way to call android:layout_gravity property from a java method. I didn't found any method in Android documentation to do it. This is the picture of the layout I want to implement: But in my situation, I need to do it through Java code, because I'll implement another layout views dinamically. To avoid merging xml layout with Java code, I would prefer make all layout using Java. Code...
View 2 Replies
View Related
Nov 4, 2010
I'm trying to do my first widget but it seems not to work in the emulator: when I try to add the widget to the wallpaper, I've got the following message: "Application is not installed on your phone".
View 2 Replies
View Related
Jul 24, 2009
I've inherited a project that worked on sdk 1.0, but when I try to use them on sdk 1.5 it crashes. I'm a beginner so I'm not able to understand where is the problem..So I hope that writing on this forum someone can help me..The project concerns the detection via GPS coordinates and the notification of events close to the location where it was at that time.
View 4 Replies
View Related
Aug 17, 2010
The import com.google.android.maps.MapActivity cannot be resolved to a type.
View 2 Replies
View Related
May 4, 2009
I am using a Timer in my android application, but i can't get it to work. When I start my application the Timer simply does not start. The application continues but does not update.The long "toStart" finds the number of seconds left of the current minute, and thereafter the period is set to 60 seconds. The TimerTask simply calls a method.
View 2 Replies
View Related
Feb 25, 2010
My girlfriend and I would really like to utilize Latitude. But it's always off, behind, or wrong. We can be sitting next to each other in the same car and it will tell me where she was 12 hours ago, and on mine is has me where I currently am, but on her it has me 4 hours ago. Refreshing does nothing. I don't understand why it is not working.Also, when I am at work, which is in Indianapolis, it says I am at Center, IN. When she is a work, again in Indianapolis, it says Washington, IN. When I am at home in Greenwood, it says all kinds of stuff that's not correct.Am I doing something wrong?Also, I meant to ask, is there another app that we could use for this? This tool is handy for us because we carpool and I would like to be able to know where she is so I know when to go out to meet her.
View 9 Replies
View Related
Jan 30, 2010
WHy Is the market so bad. It's such a pain in the as#.Yes I know its being vamped in the next ROM update, but for now search for a word 8 results found.Would it be too much to ask to show me the 8 results found rather then showing me a error asking me to check my spelling. Try another key word or be more general?I already know there are 8 results why can't i see them.
View 2 Replies
View Related
Nov 14, 2009
I can't seem to get AutoCompleteTextView to work with Theme.Light.The problem is the autocomplete popup draws the suggestions text in white on a white background. You can only see what the suggestions are after they are selected, because then the white text is drawn over top of the selector background.It works fine with the default theme but not with Theme.Light.I tried setting the android:textColor attribute.That only set the color for the AutoCompeleteTextView input box, not for the suggestion's popup.Right now the only way to get my app to work properly is to use the default theme.Does anyone else have the same issue or know of a way to programically set the suggestion's popup text color or background?
View 4 Replies
View Related
Dec 31, 2009
I am facing with a problem related startActivityForResult()
To start SecondActivity from FirstActivity :
CODE:.............
And handles result :
CODE:..........
To send the message to FirstActivity from SecondActivity :
in SecondActivity :
CODE:............
I can't handle the result on onActivityResult in FirstActivity. It never works for my application.
My OS is : 1.5
View 2 Replies
View Related
Jun 17, 2010
I want to make conversation between android devices. I use BluetoothChat to do this but it doesn't work I can't read correctly data from another device.
Conversation is :
Me: privet
Device: p
Device: rivet
CODE:...........
View 1 Replies
View Related
Sep 8, 2010
I write following application:
There is an AutoCompleteTextView field as Adapter I'm using ArrayAdapter with ListArray the ListArray consists of some constant string item and one item, which will be changed dynamically everytime user typed something in the field
I took TextChangedListener to update this last list item. But it seems, that update occurs only once.
I add a bit code of me. May be somebody can show me, what did i do wrong.
CODE:.................
View 1 Replies
View Related
Apr 29, 2009
I just want to set an icon in the right of titlebar, but it doesn't work, the icon is still at left. Did I miss something?
View 5 Replies
View Related
Sep 23, 2010
why the website iPhonemoviez.net doesn't work on the droidx?
View 6 Replies
View Related
Nov 16, 2009
I have created an Activity A, which is blocked from rotating. I have implemented this by adding android:screen Orientation="portrait" in the Android Manifest. I have tested the app, Activity A didn't enter landscape mode when I rotated the phone, everything worked fine. Then I created another Activity B, which is a 'Dialog theme' Activity. Inside Activity A, I called.
View 3 Replies
View Related
Jul 25, 2010
i download the google earth for my htc wildfire.I install the app succesfully,but when i go to open it it close!!!why that?
View 4 Replies
View Related
Jan 23, 2010
I am developing application with Google Map. I've tested on the emulator and saw error line In the log: 01-23 16:04:28.453: ERROR/MapActivity(733): Couldn't get connection factory client But it worked fine on the emulator. Then I've signed the application and created its .apk file. I've put it on the web server downloaded and installed it on the real device (it is HTC with Verizon). But my application didn't appear google maps on the device. I've checked API key and other configuration. Everything was ok. But google maps didn't work. Have you faced to problem same as mine?
View 1 Replies
View Related