Android :: Refresh Layout While Filling It
Jul 8, 2010
I have an activity with a HorizontalScrollView. When it opens, I start filling this view (or rather, a container layout inside it) with another views. This is done from another thread by using handler.post.
The views are added in bunches of 15, and when there are no more views to add, I start updating them with new data (this is a kind of streaming data from a server).
The problem is that the scrollview is empty until all of the views are added. As soon as they are all added and start updating, the scrollview gets drawn.
How do I refresh it in the process of adding views? I don't want the screen to be empty for 3 seconds while all of the views are added.
View 1 Replies
May 3, 2010
After implementing some Android Apps, including several Map activities, I try to refresh the activity when the GPS listener's onLocationChanged() mehtod is called. I have no idea how to tell the map activity to refresh on its own and display the new coords. the coords to store will have to be in global values, so that the location listener will have access to it. In my sample GPS-class (see code below) I just changed the text of a text view....but how to do that in map view?
View 2 Replies
View Related
Oct 10, 2009
I'm trying to create a simple view of a header image, few buttons, then footer image. I'm using a LinearLayout inside a ScrollView.
Even though i'm using the android:layout_gravity="bottom" for the footer image, it's being placed about 1 cm above the bottom margin.
I'm using the following xml config
CODE:...............
View 4 Replies
View Related
Nov 15, 2010
I am trying to fill an image onto my screen, but it is just covering around 75-80% part of whole screen, not whole screen.
The codeblock i am using is as:
CODE:...........................
View 1 Replies
View Related
Apr 27, 2010
To Open GL ES. i am trying to write a program, which displays a Glass on the screen, and the coke will be filled slowly. when anybody touches the screen, ice cubes will be falling from top into the glass.
View 2 Replies
View Related
Apr 27, 2010
I want to put two items <xyzLayout <ScrollView> - this to fill all available space <Button> - this on the screen bottom. </xyzLayout> How can I do this?
View 2 Replies
View Related
Oct 4, 2010
My WebView doesn't fill the entire width of my phone. I am telling to fill_parent.
Not sure why?
CODE:..........................
View 1 Replies
View Related
Apr 30, 2010
I only have stuff on my home screen, a full screen weather widget and like two programs on another...that leaves 4 more screens with nothing on it. I have all the apps I need so far and most of the ones that came with the phone I don't use. Just feels weird having all that extra space.
View 9 Replies
View Related
Jun 13, 2010
I've noticed that the Internal memory of my Desire seems to filling up even though im not adding new files/downloading any new apps... Im using wi-fi several times a day to check emails, update friendstream etc... but there seems to be no major correlation with the memory increase.
As a guide memory usage has gone from 72mb to 82mb in the last 5-7 days
Is this normal? how i can clear out any files that may be accumulating? Obviously concerned as internal memory is limited as it is and if this continues it wont be long til the phone fills itself up!
View 10 Replies
View Related
Dec 4, 2009
I seem to be having issues filling out forms. Actually, I can fill them out, but when I hit submit, it just hangs.
View 1 Replies
View Related
Dec 27, 2013
A while back I tried to install CM on my friends LG G2. We installed CWM, made a backup and everything went well, until we were done flashing the ROM. It wouldn't boot, and after a few tries we decided to use download mode to reset everything back to stock. Everything is fine now, except I think the backup is still there. There's only a little more space left, but he only has about 4gb of data on the phone. We looked at all the folders and nothing was taking up all that space.
How can we delete that stuff taking up all the space? Would a normal factory reset work, or do we need to get CWM on there again to delete that backup?
View 1 Replies
View Related
Jun 23, 2010
I am running 2.1 V3 and every time I try and formulate a new text message using the standard messaging application, the contacts field will not auto-populate suggestions when I begin typing someone's name (they used to come down in a drop-down list which I could select from). It has always done this before and I don't really know what changed. In order to send a message to anyone, I have to now click on the "person" icon next to the "To" field and wait an unbearably long time for the list to come up and then scroll to the contact I want and checkmark the person. I have tried restarting the phone...battery pulls...etc. Aside from a factory reset.
View 3 Replies
View Related
Jul 27, 2013
I have an HTC one s, had it for a few months and just today it started to eat up all the memory on the "external card".
It is located in DCIM .thumbnails.
I know there is a fix of changing the folder to read only and sorts.(changing the file to read only works for a few moments then a new file generates with a new number.
But I do not just want to do a fix, I would like to know how I can trace what is causing it and fix it. The thumbnail file keeps increasing in size when I erase more files, right now it is at 1.2gb.
So my question, What is causing the thumbnail to be getting to 1.2gb, a larger size then my photos stored.
View 4 Replies
View Related
May 5, 2010
I would like to know is if filling up my phones storage is going to make it run slower? I had 5 movies on my 8g microSDHC card. I decided to move them to my phones storage since nothing really uses that storage. The movies play great from both the phones storage and the SD card, but it felt like my phone was running a little slower once I did this. Is this just in my head or will my phone really run slower with its storage almost full? My phones settings state that the total space of the storage is 6.6GB and the avialable space is no 1.57GB.
View 1 Replies
View Related
Mar 31, 2010
159mb seems like no space at all. Seems like stuff should install on the SD card. I know you can if you root, but you shouldn't have to. I clear the cache on apps regularly. How else can we avoid filling up our internal memory?
View 18 Replies
View Related
May 14, 2013
Does filling a phone with only internal storage slow it down? Even if you don't fill it?
I'm asking because I put 10gb of music on my HTC One, and I was just curious as to whether it would effect it in any way.
View 9 Replies
View Related
Feb 7, 2013
I'm pretty new to Android development and I just hit a brick wall in the development of an app, I'm currently working on.
The problem is that I have a list of locations (states), and when one is selected, a list of cities from that state is loaded via http request and JSON and then is supposed to be inserted into a listview in another activity.
So now I have the StateList activity and the CityList activity. Currently, the statelist activity starts the citylist activity via an intent and gives it a state name. Then, the citylist activity uses that name and requests data from a server via AsyncTask. As result I get an array of City objects, which are supposed to be inserted into an adapter for a listview.
Now begins my problem: I don't want the second activity to show up before all data is loaded. I also don't want the first activity to do the request and then have to transfer the whole result to the second activity using intent extras.
So what would I have to do now to have the second activity load all the data and only then really show up? I tried only setting the content view after receiving the data, but since the base class onCreate() is tied to some manipulation of the layout, I would also have to call onCreate() at that point, which is not allowed.
Here some code snippets of what I tried already:
The onCreate() method of my second activity (which is supposed to hide):
[high]protected void onCreate(Bundle savedInstanceState) {
requestWindowFeature(Window.FEATURE_NO_TITLE);
// send request for citylist data
CitylistRequest request = new CitylistRequest(this, new State(0, getIntent().getExtras().getString("state")));
request.execute();
[Code]...
View 2 Replies
View Related
Aug 20, 2010
why does the ringtone volume go from too quiet on level 6 to loud to room-filling boombox level on level 7?
there should be one step in between 6 is way to low and 7 is way to high.
using JM2 maybe it's fixed on a later firmware?
is there any other way to add a more sensitive adjustment?
View 1 Replies
View Related
Aug 19, 2010
I can't fill a ListView layout with an array of strings.
Here is the Activity:
CODE:...................
Here is menu_item:
CODE:......................
And here is symptom.xml -
CODE:..............
Does my public class need to extend "ListActivity". I tried that and that didn't work.
View 2 Replies
View Related
Aug 14, 2010
While developing for Android, I am unable to open more than one main.xml file in an Eclipse editor at a time.Each time I open one, it simply replaces the editor (tab) of the first main.xml with the new one, instead of opening a new tab - even if the contents of the existing tab were unsaved.Even stranger, I can open multiple main.xml files from different projects with no problems.This only happens when they're within the same project.
View 2 Replies
View Related
May 4, 2010
I am new in android, i am having few problem in layout alignment. I have divide the screen into three layout,as header, body and footer. I am giving the height dynamically for the three layout in java file, so i need to give 12% of height to header and footer layout, and the remaining 75% i need to assign height to body layout. For that i have made the calculation as follow
first i am getting the height and width for the screen. With the help of the screen height i am getting the 12.5% height for header and footer layout
WindowManager w = getWindowManager(); Display d = w.getDefaultDisplay(); int totalwidth_screen = d.getWidth(); int totalheight_screen = d.getHeight();..................
View 3 Replies
View Related
Jan 23, 2009
Is it possible to build a GridView object in XML with 3 columns and 4 rows of Image buttons? It doesn't seem to have similar containment relationship like LinearLayout or RelativeLayout viewgroups.
I want to do this entirely in an xml layout file. When I put ImageButton xml tags inside a GridView xml body, The layout panel in eclipse is throwing an exception: UnsupportedOperationException:addView(View, LayoutParams) is not supported in AdapterView.
View 2 Replies
View Related
May 6, 2010
I have an Activity which uses a layout with a LinearLayout in it. Now I want to create in runtime a subactivity which loads some other layout and add this layout as item of my LinearLatout.
View 1 Replies
View Related
Sep 27, 2010
I have following in xml
I wanna put the second linear layout at the bottom of the screen.
I have set the property of second Relative layout to bottom but still not showing at bottom..
code:...................
View 2 Replies
View Related
Sep 6, 2010
I have LinearLayout. Inside to that i have added one more Linearyout ( checkbox & text ).
(LinearLayout) one textView, (LinearLayout) Checkbox,textview , one textview
Now whenever clicks the checkbox, i need to dynamically display EditBox after the checkbox.
code:..........
On the click of checkbox listener i added a code like below.
code:.........
I want to the layout which was added earlier.
View 2 Replies
View Related
Sep 3, 2009
I am using eclipse 3.5 with the ADT plugin.when I view layout xml files, i get two tabs in the view the source code view and a graphical view.the graphical view almost never works for any of my layouts.it usually shows "NullPointerException: null" at the top and nothing else. when it does work, it often does not match what i get in the simulator or device.it seems like this thing simply is not ready for prime time; although the idea is very cool.has anyone else had much success with it?
View 5 Replies
View Related
Mar 15, 2009
I have defined the layout which you can see at the end of this message. I do not understand, why the button is not displayed. If I move the button to the top that the rendering works.
CODE:......................
View 2 Replies
View Related
Nov 4, 2009
In android, there are different sub-directory under 'res'
* layout
* layout-finger
* layout-land-finger
Can you please explain what are the difference between these directories?
View 1 Replies
View Related
Jun 9, 2009
I'm setting up an app to use a custom title so I can get the proper logo into the title instead of just text, and to make it clean (since the logo has a flat black background), I also want the whole title bar to be black. My xml for the title is a framelayout to hold the logo inside of a linearlayout to change the background color, and I'm setting the title in OnCreate() as follows:
CODE:.........................
With this setup, the old gray from the old title bar still exists around the edge of my custom title. Appears to be on the order of 3-4 px on the bottom and 8-10 px on each side. Any ideas about how to get the black background to cover the entire area?
View 4 Replies
View Related
Jul 29, 2010
I've successfully created a countdown kitchen timer activity, however my goal is to have an activity that has 3 timers on it that all work independently. I created a separate layout just for the timer itself and moved the timer code into a class and I've used layoutinflater to create the views and then added them into the linear layout for the activity. I get the layouts fine, however there's no functionality. There doesn't seem to be anything that ties the class code to the activity. How should I approach this? Can anyone point me to some working example code?
View 2 Replies
View Related