Android :: Long ListView Optimization / Usability

Nov 17, 2010

I have a long list to display in a listview. Let's say 200 items. This is a long list, but i can't reduce it. Now my list is slow and is not convenient for the user.I need something like a paging system: at the beginning I load 25 items. When the user reach the end I show a button, or something like it, to load other 25 items. An Iphone style solution.Is there a better way? Or what is the best solution?

Android :: Long ListView optimization / usability


Android :: Optimization Proposals For ListView With Data From Multiple Tables

Aug 18, 2010

I just encountered the following situation. I have an Android app with a scenario which I guess may happen in multiple apps. It's about tagging/labeling/categorizing, call it as you want.After CommonsWare's feedback here a bit of a clarification. I'm weird about doing the second query to the DB inside the CursorAdapter, basically this would result in one query per row and I fear this will heavily impact my performance (I've still to test it on a real device with a substantial amount of data to see how much this impacts).My question therefore is on whether there are some strategies on how to avoid this given my data model or whether I have to basically "live" with that :)

View 2 Replies View Related

Android :: ListView Long Click Animation

Dec 3, 2009

I would like to capture long click events in a ListView, which was easily done using a OnItemLongClickListener. However, that lacks the fading animation of the selector transitioning to a long press that is seen when the long click is handled by onCreateContextMenu. How can I get that animation using OnItemLongClickListener?

View 1 Replies View Related

Android :: Use Long Press ListView Item To Open AlertDialog?

Dec 10, 2009

I am trying to use the long press option on the listview items to open a multi choice Alert Dialog. Is this possible?

View 6 Replies View Related

Android :: ListView Alpha Scroller For Quickly Scrolling Long List

Feb 26, 2010

The Contacts app shows a button on the side of the screen that acts as a little thumb to allow you to quickly scroll the big list. I have a very long list that would benefit from this navigation behavior, but can't find any documentation as to how to enable it.

Is it a behavior that's built into the SDK, or must I write it myself?

View 1 Replies View Related

Android :: Usability / State Vs Verb?

Feb 26, 2010

My business partner and I have a small disagreement, and I'm trying to figure out the best way to resolve it. First, I should say I started out his way, and switched after reviewing a lot of applications. The background is this -- we have an app, with some controls which can be locked. A lock/unlock icon is put next to the lockable controls. You can long-click the icon, and it brings up a context menu with several items, including the item for the lock state.Currently, it brings up a "Locked [X]" or "Locked [ ]" item -- that is, a menu item with a checkbox that can be checked or unchecked, and the lock state is changed accordingly.He would like me to change it to reflect the action being taken. I.e. the menu item would say "Lock" if it is currently unlocked, and "Unlock" if it is currently locked.It would be acting as a toggle in either case; the only difference is how it is presented to the user.

View 7 Replies View Related

Android :: Catching Both Click And Long Click On ListView

May 3, 2010

I have a ListView in my Activity. I am trying to catch both a click and a long click (which should bring up a context menu).

ListView lv = (ListView) findViewById(R.id.MyListView); ... lv.setOnItemClickListener(this); lv.setOnCreateContextMenuListener(this); ...

I notice that if I have both the click and long click listeners up, I won't ever get the long click listener (i.e. the context menu). If I remove the setOnItemClickListener() call, i get a call into

@Override public void onCreateContextMenu(ContextMenu menu, View v, ContextMenu.ContextMenuInfo menuInfo) {

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, visit this group at

View 4 Replies View Related

Android :: WebView / Soft Keyboard / Forms Usability

May 1, 2009

The soft keyboard in 1.5 has the same behavior as the hard keyboard with respect to the enter key submitting forms. That's pretty reasonable for the hard keyboard as you can easily see that there are more fields to fill out, and can just tap the next field once to go there.

View 3 Replies View Related

General :: Change Usability Of Screen Size On Android?

Dec 22, 2012

Would it be possible to edit android source code lets say for the Galaxy S to only use a certain portion of the lcd screen. Say much like changing the resolution but creating it so only say 1 inch down would be usable. The rest inoperative.

View 4 Replies View Related

Android :: Usability Bug Report - Poor Use Of Language On Failed Download

May 30, 2009

Failed downloads report "Download unsuccessful" in the Notification area. I think this should be changed to "Download failed", because the words unsuccessful and successful look a little bit too similar at a glance.

View 3 Replies View Related

Android :: PNG Optimization On Packaging Process

Oct 28, 2009

I've noticed that the PNGs of my application with some gradients effects looked terribly bad at the device (a Samsung Galaxy) and at the emulator, and I've found the following note at the documentation (http://developer.android.com/guide/topics/graphics/2d- graphics.html):

Image resources placed in res/drawable/ may be automatically optimized with lossless image compression by the aapt tool. For example, a true-color PNG that does not require more than 256 colors may be converted to an 8-bit PNG with a color palette. This will result in an image of equal quality but which requires less memory. So be aware that the image binaries placed in this directory can change during the build. If you plan on reading an image as a bit stream in order to convert it to a bitmap, put your images in the res/raw/ folder instead, where they will not be optimized."

I've tried the res/raw suggestion, but it didn't worked.

I've tried to use the image as JPEG as a workaround, but I couldn't use 9-patch.

I've uploaded a comparison between the original png and the "optimized" png that is shown on the emulator or devices: [url]

One workaround would be put the images at /assets/ and manually load and set the image on the ImageViews, but it requires a lot of code changes.

View 11 Replies View Related

Android : Screen Optimization In Droid?

Jun 30, 2010

I want to do screen optimization. That means once I develop the UI in android it should fit exactly the same in all android enabled phones. So how do i do it?

View 1 Replies View Related

General :: Android Kernel Optimization

May 8, 2013

What sections of kernel code are changed for optimization of performance.

Like we can change
1) the minimum free memory that android need to keep free.
2) Rate of clearing cache
3)Advanced LMK- where we can kill more than one process at at time when memory scarcity occurs.
4) Reducing logging.
5) In framework we can change the oom_adj value of important processes.
6) Implement Zram for kernel.
7) change the minimum and maximum no of process for AMS.

I want to know all the changes that can be made into kernel or framework code to optimize performance. I also want to know how can we implement swapcache for android kernel. What changes do i need to make in the code.

View 2 Replies View Related

HTC Desire :: Reliability And Usability Of Phone?

Nov 11, 2010

My phone broke about 1 week ago and it was just a couple of days after my parents asked me what do you want for Christmas, I have never had a smart phone before I had my K800i for 4 years so I never looked at other phones. I quite like the look of the HTC Desire, I did glance at the Galaxy S but the contract prices were too high for my parents so that went out the window pretty sharpish. Is the HTC Desire a goods choice for reliability and usability. I have read many pros and cons but I would like to hear it first hand about any faults with it. Or should I look at another android phone for one reason or another? Like I said I am new to the smart phone world and I have only had a week to look around at the phones. Basically what I want is a phone that rings and I can access the web to check my emails and play with some apps. Sorry if the questions are a bit jumbled its just I couldn't quite figure out what I wanted to ask and part of me is locked onto the desire (don't know why) another part of me says I don't need a smart phone and the other part says "but wouldn't it be nice to check your emails on the go" so I am rather muddled.

View 28 Replies View Related

Android :: Optimization Accessing Fields Vs Methods

Nov 1, 2010

I know rule #1 of optimization is: don't do it! But I figured this was an easy question, and if I start using the faster method now I can save a lot of cpu time when I'm finished.Now, the answer to my question may be "there's no difference" and that's fine with me. I just want to know.

View 4 Replies View Related

Android :: Open Home Memory Optimization

Nov 11, 2009

Any idea? It doesn't seem to close apps like TaskKiller or TaskPanel. So what is it doing?

View 4 Replies View Related

Android :: Want Sql Optimization Techniques For Databases Has Nearly 80,000 Records

Jul 14, 2009

I want to know optimization techniques for databases that has nearly 80,000 records,
list of possibilities for optimizing

i am using for my mobile project in android platform
i use sqlite,i takes lot of time to retreive the data.

View 9 Replies View Related

Nexus :: Power Wake Button Usability

Mar 31, 2010

Current iPhone owner thinking about making the switch to the Verizon Nexus One. I have a concern about the usability of the power (wake) button on the top left of the Nexus One that I haven't heard anyone else mention so perhaps it isn't as big of an issue as I anticipate. Basically my concern is that the hand position and motion required to wake the device using that button is not the same position you want your hand to be in to use the phone. For example, with the iPhone I wake my device with the bottom "home" button that is on the face of the device and then I can very quickly just move my thumb up to swipe-to-unlock without having to reposition the phone. It seems like this would not be possible with the Nexus One given that there isn't a wake button on the face of the phone near the bottom.I'd really love to hear from current Nexus One owners. Is this not the usability issue that I am making it out to be? Do you just adjust and find a new way of quickly waking and then swiping to unlock the phone that is just as comfortable and efficient as with the iPhone? If so, what do you do?

View 11 Replies View Related

Android :: Build Library Without Optimization In Order To Properly Debug It

Mar 12, 2009

I'm trying to debug native library (in particular, libril.so). Everythig is going fine, breakpoint is being hit, I can go thru the lines of RIL_onRequestComplete() function. But when I tried to print out particular struct I got,

(gdb) print pRI $2 = <value optimized out> (gdb) print pRI->pCI $3 = (android::._115 *) 0x613 (gdb) print pRI->pCI->requestNumber Cannot access memory at address 0x613

I suspect it could be due to optimization done by compiler. But when I tried to add,

LOCAL_CFLAGS := -g3 -O0

into makefile of the lib, I've got another problem when I cannot correctly set breakpoint on desired function. Instead of correct one,

(gdb) break RIL_onRequestComplete Breakpoint 1 at 0xae402e4e: file hardware/ril/libril/ril.cpp, line 1800.

I got,

(gdb) break RIL_onRequestComplete Breakpoint 1 at 0xffffab44: file bionic/libm/src/s_tanf.c, line 42.

Does anybody know what could be a problem, and what is the right way to handle this?

View 2 Replies View Related

Jelly Bean :: Turn Off WiFi Optimization S4 I9500 4.3

Dec 6, 2013

Well I have S4 I9500 and whenever I tried to connect to my work network after updating to a clean android 4.3*OTA, I receive a notification stating that: This network has been disconnected.You need to sign-in again. This also happened to all 4.3 users in my workplace. 2 colleagues using Note 3 and another colleague using S4 19500. All of us can log onto various networks outside of our workplace like home and coffee shops. After doing some research I found out that I have to turn off wifi optimization but that option is not available in S4.

View 2 Replies View Related

Samsung Galaxy S :: Phone Running Really Slow / Could It Be Optimization Thing - Something?

Jul 4, 2010

I just got my phone about 4 days ago, and when opening apps, unlocking, opening contact lists etc etc, it just lags heaps. Does anybody else have the same issue? Could it just be an optimization thing or something?

View 35 Replies View Related

Android :: Any Tool To Find Memory Leak / Code Optimization In Android?

Sep 12, 2010

I would like to know is there any tool in android to find memory leak and code optimization.

View 8 Replies View Related

Android :: Android - Transforming Widgets Within Transformed Widgets - Usability

Jun 2, 2010

I'm new to Android application development and I'm currently experimenting with various UI ideas. In the image below, you can see a vertically scrolling list of horizontally scrolling galleries (and also textviews as you can see). I'm also doing some matrix and camera transformations which I will come to in a minute.
For the background of the list elements, I use green. Blue is the background of the galleries, and red is the background for the images. These are just for my benefit of learning.

The galleries being used are extended classes where I overrode the drawChild method to perform a canvas scale operation in order for the image closest to the center (width) to be larger than the others. The list view going vertically, I overrode the drawChild method and used the camera rotations from lack of depth dimension in the canvas functionality. The items in the list are scaled down and rotated relative to their position's proximity to the center (height).............

View 1 Replies View Related

Android :: Way To Change ListView Style Droid Without Building Custom Listview ?

Jun 26, 2010

I would like to change text and back ground color of my Listview without building custom rows. Is this possible ?

View 1 Replies View Related

Android :: How To Keep ListView Header From Scrolling With ListView Content?

Jun 24, 2009

There must be a way to do this. How can you tell a ListView that has a header to not scroll it when the user scrolls the contents? I want it to stay in a "stuck" position so that the user can always see what column the content applies to.

View 9 Replies View Related

Android :: How To Create ListView Within ListView?

Sep 9, 2010

In my project i m parsing xml and i want to put it in xml list with in list.

View 24 Replies View Related

Retrieve And Set ListView Items (cells) Height Depending On ListView Height

Apr 4, 2012

I have some class LoginActivity.java. In the onCreate method I retrieve ListView:

ListView list = (ListView)findViewById(R.id.snListView); then:

list.setAdapter(adapter);

In addition there are login.xml layout - there are:

<ListView
android:id="@+id/snListView"
android:layout_width="match_parent"
android:layout_height="match_parent" >
</ListView>
and sn_row.xml:

[Code]...

At the moment I have cell's height 100dp, I need that cell's height will depend on device, I mean I have here 5 cells showing at login screen in ListView and I need that these 5 rows will fit the ListView (cell's height = ListView's height/5).

View 1 Replies View Related

Android :: Catch Long Key Down?

Jun 10, 2009

I've tried, but couldn't find anything. Is there any way to determine that the key is longpressed?

View 2 Replies View Related

Android :: Way To Know How Long Key Is Pressed?

Jun 13, 2009

Here is my code...

View 2 Replies View Related

Android :: How Long Till Next HTC?

Sep 24, 2010

Firstly I am new to android so please forgive any ignorance below. My Questions are; I really need a phone upgrade (iphone 3g being a proper drag!) and the HD looks great, but with 3.0 scheduled (from what I have read) to come out around xmas I am tempted to hold off till then. Can anyone shed light on when the next HTC uberphone would be expected to come out? I can probably wait till Xmas before upgrading, and maybe a little longer, but otherwise I'll go for the HD in October.

View 1 Replies View Related







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