Android :: How To Know Which Childview Is Shown On Current Screen In A Scrollview
Aug 5, 2010
How can I know which childview is shown on the current device screen, in a scrollview?
I want to make an infinite Ruler App, so I need to dynamically add and remove view when the view is flipping, but how and where can I find out which childview is shown on the current device screen, so I can add or remove the correct view when I get that childview changed notify?
Or, can anyone who can give me some other idea to realize this function?
View 1 Replies
Aug 3, 2010
Any ideas why my weather on the front screen is shown as Weather shown as United Kingdom rather then the actual location I am in ?
View 1 Replies
View Related
May 13, 2010
The default behavior of an activity when BACK softkey is pressed is, GO BACK TO PREVIOUS ACTIVITY. If some the same activity is waiting for some response from server or some data updation is going on and then press BACK, I want to wait on the same screen till the current task is completely processed and then move out to the previous activity.
You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscribe@googlegroups.com For more options
View 12 Replies
View Related
Sep 15, 2010
I have an AbsoluteLayout which has an OnTouchListener. Inside this layout there is a much smaller LinearLayout positioned dynamically. The OnTouchListener works as expected.
Now the problem comes when I add a LongClickListener to my LinearLayout. That disables my OnTouchListener if the touch hits the LinearLayout but it is still triggered, if the LinearLayout was not hit by the touch.
My listeners:
CODE:..............
How can I delegate the touch on the LinearLayout where the OnLongClickListener is registered, to the parent?
View 2 Replies
View Related
Jul 16, 2010
I must be overlooking something real simple here, but i think i'm trying to do something fairly basic.. Simply retain the scrollbar position of a ScrollView on orientation change...
Here is the code for my onSaveInstanceState and onRestoreInstanceState.. sView is the container for the ScrollView layout. Within my scrollview is a linearlayout with a lot of textviews.
CODE:............
If I set a Toast with the values of sViewX and sViewY on the Restore, the values are kept and correct.
I just tried to do a sView.scrollTo(0,150); in my onCreate.. just to see if that would open the activity at 150px down, and it didn't. I think my issue has to do with the .scrollTo method.
View 1 Replies
View Related
Mar 10, 2010
I want some of the goodies in a ListView, like being able to use a ListAdapter, and item selection, etc, but I don't want the ScrollView portion of it. I want to implement that part myself, in a different way (why or how I do this isn't really the point of this question, so please don't ask "why"). Is there a way to have a ListView that's not in a ScrollView or has the scrolling disabled?
View 2 Replies
View Related
Jan 7, 2010
I done my application in portrait configaration but when load my application in to device its coming portraint configaration but i keep in landscape mode missing some controls.so i want to add scroll view to screen when changing the config to landscape.how i can add scrollview to screen.
View 1 Replies
View Related
Aug 11, 2009
I have the following layout:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/ android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content"> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/ android" android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content">
<TextView android:id="@+id/title" android:text="@string/.......................
When I click on the EditText "@+id/updateStatus" of the ScrollView, the keyboard appears on the screen of the device and the ScrollView is hidden. I'd prefer to hide the ListView "@+id/myListView" at the end. Is it possible? Why that view is hidden?
View 2 Replies
View Related
Oct 19, 2010
I am having a problem in ScrollView. When i run my application on X10i it works fine but when i change the view to landscape half of the layout at the bottom (RelativeLayout) go down to the screen. Here is my Layout code. please suggest a general solution that will be applicable to all phones not only X10i. code...
View 2 Replies
View Related
Oct 10, 2009
I'm having trouble with this layout - I need a ScrollView, then a LinearLayout with a button below that:
CODE:........
The scrollview pushes the linear layout under it off the screen. The only way I can get this to work is if I explicitly set the scrollview height in pixels to be less than the total height of the screen, but hardcoding a height isn't going to work on different devices. How can I do this?
View 3 Replies
View Related
Oct 18, 2010
Has anyone seen a a onItemSelected not being called when using a spinner inside a listviewActivity. I have the code below Inside a listViewActivity. The spinner is shown on screen by pressing a button (not the spinner) which in turn calls performClick() on the spinner. When I select an item from the spinner the onItemSelected function is not called. Does anyone know why this might be? Code...
View 5 Replies
View Related
Jun 18, 2010
Just getting the hang of this Motorola droid. Was doing something funky so I powered it down and then back up. I have this dos looking screen that says...
Bootloader
2C.6C
Battery OK
OK to Program
Connect USB
Data Cable
View 1 Replies
View Related
Jun 15, 2009
Several users reported that after starting our application on HTC Magic it only shows a blue screen with music and sound effects. It work well on G1 with 1.5 though. The application is using SurvaceView/ OpenGL ES with { EGL10.EGL_DEPTH_SIZE, 16, EGL10.EGL_NONE } EGLConfig attributes.
View 3 Replies
View Related
Aug 20, 2010
I have a layout that has just a ScrollView visible. It has a relative layout as its child. This layout has several other layouts (mainly text views) as its children. When the text is not big enough, the scroll view does not expand itself to fit the whole screen. Instead, it shows a gap at the bottom where the background shows. I tried setting fillViewPort=true on the ScrollView, but that just made the first child layout (RL1) to fill the screen.
CODE:....................
View 1 Replies
View Related
May 6, 2009
I am trying to create an activity layout that has a top level vertical linear layout like so:
CODE:................
This works ok as long as the wordDefinition text isn't very long. But, when I set the text to something very long, it pushes the back button off the bottom of the screen. Why? Isn't the ScrollView supposed to scroll the text in the child TextView?
I've tried playing with weights (e.g., giving the top text view a weight of .2, the scroll view a weight of .7 and the button a weight of .1, but to no avail.
View 4 Replies
View Related
May 22, 2010
How do I go to previous screen from current screen in Android app? I know there is a back button on phone, but it takes me to beginning screen of my app and I want my buttons on app to work for going back to previous screen.
View 1 Replies
View Related
May 29, 2010
is it possible to manually rotate the screen or fix the current screen orientation (with a key/button)? because it really annoys me having taken portrait pictures that cannot be viewed (with the media gallery application) in a portrait fashion on the milestone. this is because it always rotates the portrait picture back to landscape when rotating the milestone from landscape to portrait. right now there is no way of properly viewing portrait pictures on the milestone other than tilting your head (holding the milestone landscape and tilting your head along).this cannot be the way it was intended to be, right? or do I have to get a different viewing software which allows you to choose screen orientation? is there such an app?
View 1 Replies
View Related
Mar 19, 2009
Is there any way for an Android application to retrieve some sort of Collection object that contains references to all of the GUI elements which are currently on the phone's screen? This could be very useful for testing purposes and so on. If I have overlooked a well-known class or library, please let me know.
View 3 Replies
View Related
Jul 2, 2010
I simply want to do code...
The problem is - getRequestedOrientation always returns -1. Any suggestions?
View 2 Replies
View Related
Jan 16, 2010
I have an intent open my phone; when something comes from the server from another Java class I want to refresh the current screen. how I can refresh my current screen without creating a new one?
View 1 Replies
View Related
Jun 9, 2010
as part of automating tests on android app. I am trying to grab current alert dialog on the screen. Does anyone know how can I do that?
View 2 Replies
View Related
Aug 5, 2010
Using Google Maps on Android does anyone have any ideas on how to load only markers that would be displayed on the current screen? I'm thinking about sending a request to a web service that returns the lat/lng for the relevant markers. But what would the parameters be that I could use to calculate if a given lat/lng is within the screen?
View 1 Replies
View Related
Jun 3, 2009
I need to set different content view after rotating device screen. Is there any method to detect the direction of current screen is vertical or horizontal?
View 6 Replies
View Related
Feb 3, 2010
Can anyone give an idea how to identify the views part of the active screen[i.e current running activity on the phone].
E.g after launching uiEditContactActivity,how can I identify the views [ several fields, buttons etc] part of that screen.
I am trying to modify monkey, such that for creating a contact, it should launch Edit Contacts Activity and fill the respective views [name, number etc].
View 2 Replies
View Related
Jun 3, 2010
Is there way to dump the current screen to a bitmap in Android?
And what about dump screen of other applications? For example, running a service background, the foreground app could send an intent to start the service, and capture the current screen and save as a bitmap.
View 2 Replies
View Related
Dec 15, 2009
I have an NoContentViewActivity which has no Content View (i.e. I did not call setContentView() in the onCreate of my Activity).
My question is how can I keep the content view of the launching activity on the screen? Right now, I am getting a blank screen whenever I launch NoContentViewActivity? I want the content view of the launching activity (the activity which start the NoContentViewActivity) to show on the screen.
View 2 Replies
View Related
Nov 24, 2010
I need to launch a service running in the background,that should record what's on the current screen for say about 10 sec.. i should able to save it in a file or on any storage device and later i should able to retrieve it also..
View 2 Replies
View Related
Oct 30, 2010
Is there a quick way to change the order of the screens? For example, I'd like to move my current screen 7 and make it screen 2.
View 9 Replies
View Related
Nov 2, 2010
I want to display a splash screen followed by my trial.class.I am not getting any error but warning as:
Warning: Activity not started, its current task has been brought to the front
I have different-2 approches for this each time this warning is being displayed.
CODE:.....................
View 8 Replies
View Related
Jul 23, 2010
When one wants to publish his App on the Android Market he can upload up to two screenshots of his app. I would like to take these screenshots with my current device (Motorola Droid) that I'm using to test the application.
There are some Apps on the Android Market that allow you to take screenshots, but you have to root your phone, which I dont want to. There are related topics within stackoverflow where people want to take screenshots out of there code (here). However I just want to take screenshots of my running app with the current device, which is connected via USB to my computer; I'm developing via Eclipse, so there should be a way to tell your running device that it should take a screenshot via the sdk, right?
View 4 Replies
View Related