Android :: ListView - Invisible Dividers Still Take Up Space - Is It A Bug Or A Feature?
Jul 30, 2009
I'm using a ListView with a custom ListAdapter and a custom Drawable as divider.
My list contains active elements and passive ones as well. By default, the ListView draws a divider only between two active items. This is exactly what I want it to do, expect that ListView leaves "dividerHeight" pixles free space above and under eacht inactive item. Because my ListView has no background-graphic (which is on purpose and can't be changed) I see slices of the underlying Views through my list.
If you have any dificulties imagining what this means, have a look at http://brianschimmel.de/divider.jpg
I'm rather sure this is a Bug, but maybe it's the intended behaviour. I wanted to hear your opinion (as well as a workaround, if there is any) before filing a bug at b.android.com I can even imagine a reason for the behaviour as it is: If you wanted to make list items active/ inactive at runtime, the current implementation does not change the positioning of the items, while the behaviour I proposes would do. But I'm not sure if activatin/inactivating items is a real need.
I'm thinking about not using the build in divider feature at all and inserting a special "divider item" between each two active items manually.
View 5 Replies
Jun 24, 2010
I'm building a list that is sorted alphabetically. The list should show a divider containing the Letter that the following icons belong to.
I'm using a Cursoradapter that contains the already sorted result from the database. I plan on adding the divider to the list item and set it to visible if the shown letter changes. How do I know that I have a new Letter? Is there a better way then going forward or backward in the cursor and check if the item I show is the end or beginning of a new group?
View 1 Replies
View Related
Nov 8, 2010
I managed to figure out how to create a custom shape (with a dashed stroke) by creating a file called dash.xml inside of the /app/res/drawable/ folder:
CODE:.............
Now I'm confused as to how to apply this shape to a ListView. I've tried the following, but no divider is displayed:
CODE:...................
View 1 Replies
View Related
Jul 20, 2010
I have a listview that's using a custom adapter. I want to dynamically show/remove items from the listview. I've tried everything inside the getView() method in my view adapter. I've tried doing setVisiblity(View.GONE) on the view I'm returning. And it infact doesn't draw the view, but it allocates space for the view and it's just a blank black space.
Is this even possible to set items in listview invisible?
View 2 Replies
View Related
Jul 6, 2010
How can you make it so that when I choose a word from the suggestion line it auto spaces for me?
View 6 Replies
View Related
Oct 17, 2010
I have a ListView that with alphabetical headers for each letter. I also have an index function that brings the letter headers to the top of the screen.
My problem is when I reach the end of the list setSelection is unable to bring the last few headers to the top because it will not scroll past the end of the list.
My question is this: Is there a way to add a blank space to the end of the screen dependent on screen size? I would like to scroll until the last item in the list is at the top of the listView.
View 1 Replies
View Related
Sep 2, 2009
In the ListView, the space key is available as an onKeyUp event but not as an onKeyDown event.Is it possible to override the ListView's default response (i.e., page down) to the space key?The reason I ask is that my application's ListView scrolls to the text (including space characters) the user enters.Although I can implement my application's ListView scrolling based upon characters from onKeyUp(),that results in unwanted list jumping anytime the user types a space.
View 3 Replies
View Related
Sep 6, 2010
I have listview and below it have footer to bind more data at footer button click event,the data has been binded well but the problem here is expanding of empty space after click event,when i scrolled to move down,when i reach the last list row by scrolling the footer position is being at same at initially loaded,but here the problem is the list scrolling is applies to this footer layout also when i scrolled down after list row the footer get's moving down,but i need it be after list last row and i also need to know how to scrolling to be stopped when particular condition satisfied.
View 1 Replies
View Related
Sep 14, 2010
Is the android:divider attribute under the TabWidget working? I tried the Tab Layout tutorial from android just to test (http://developer.android.com/resources/tutorials/views/hello-tabwidget.html) and set the android:divider to some image (for now I used the android vertical scrollbar as the drawable to really emphasize if its getting picked up (copied it from frameworks), but when I ran it on the emulator, it doesn't appear to be working. According to the docs, the TabWidget does seem to support this attribute: "Drawable used to draw the divider between tabs." I am using a nine-patched drawable as my divider image drawable.
View 1 Replies
View Related
Jul 14, 2010
I need to completely remove dividers from ExpandableListView. As for parent items it's a setDividerHeight method where I can pass a zero value. But there's no similar method for child divider. Is there any way to hide it?
View 1 Replies
View Related
Sep 24, 2010
I am writing my first simple Android App: It loads temperature samples from a Java based measurement system (CSV via HTTP), shows the available channels in a Spinner and when a channel is selected, it shows the corresponding value and a timestamp in two TextViews. The App works fine, except a little cosmetic problem: The items in the drop-down list are separated by a horizontal line (divider) and depending on the scroll position, some lines disappear and appear again, when I scroll some more pixels up or down. The phenomenon happens on the emulator screen as well as on the handheld display (HTC Wildfire). Seems to be a screen resultion problem. Does anyone have a hint how to avoid this?
See my code below...
CODE:.................................
View 2 Replies
View Related
Dec 2, 2009
Is there and IM app that has the same functionality of the windows Yahoo! IM in that it can allow you to appear either online or invisible by a selected contact (i.e. so you can appear available to some people and offline/ invisible) to others without modifying your contact lists or having to create multiple accounts? I currently have meebo and mundu IM but I don't believe either has this ability.
View 1 Replies
View Related
Jul 5, 2010
I have an app with Copy Protection on. Since a number of users have reported being unable to find the app on Market since upgrading to 2.1, I have researched the issue and copy protection seems to be the culprit. Turning off copy protection is the answer, but it seems that it leads to file access problems and can require a reinstall, which is not a very good user experience.
However, this ought to have been fixed in 1.6 which means I should be able to turn off copy protection and everything is ok. But some people have still encountered this issue and their users had to reinstall. So, my question is this, if I turn off copy protection, will all users have to reinstall the app? Will only 1.5 users have to reinstall (30%)?
View 2 Replies
View Related
Oct 22, 2010
Believe me, I am not trying to create an invisible AlertDialog. But I believe I have one. I'm not making this up. Behavior: main activity starts and is completely unresponsive. No dialog appears. No Force close/ANR appears even after much time in this state. But if I push the back button, it becomes responsive again. This does not occur when debuggable is true in the manifest, so I can't investigate using the debugger. But I found out the following with log statements. MainActrivity:OnCreate starts another activity, a welcome screen. Main Activity: OnResume is called while the other activity is visible. OnResume creates the dialog and calls dlg.Show(); WelcomeActivity is dismissed. MainActivity:OnResume is called. The OnResume method is smart enough to note that the dialog has already been shown and does not create it again. MainActivity is unresponsive. No dialog in sight. When I push the back button, a log statement confirms that the OnCancelListener is called on the dialog. This is Nexus One with 2.2.1. As cool as an invisible dialog is, I'd rather not have it. Can I fix it?
View 9 Replies
View Related
Apr 9, 2010
i added some buttons in HorizontalScrollView and its working fine. But I want to remove/invisible the scrollbar, instead of scroll bar i want to use greater than > and less than < images of both sides of scrollView, on clicking on that greater_than image i want to scroll it to right side. how can i do that.
View 3 Replies
View Related
Sep 9, 2010
i got this notification yesterday so i deleted some apps and all my text messages but i cant get rid of it now!
any ideas?
View 14 Replies
View Related
Jun 25, 2010
I was wondering if there was a transparent lock pattern for the evo. I found this : Invisible Lockscreen Pattern for Android but have no idea what to do with it or how to use it.
View 3 Replies
View Related
Jun 27, 2010
In testing my app across different OS versions I've noticed what appears to be carriage returns showing as visible squares in TextView. This doesn't happen on Froyo wondering if anyone knows how get around this in previous versions?
View 2 Replies
View Related
Nov 8, 2010
How can I remove a button in android, or make it invisible.
View 2 Replies
View Related
Sep 24, 2010
In my android application that is now working fine, I am sending custom SMS from a user to other one.
Once I detect the SMS come from my application, I do my stuff with the message and everything work fine.
But now, I do not want the SMS application to detect this message as it is totally useless for the user.
So what I would like to do:
As soon I receive it, I get the text and avoid the system to get it ( or at least stop the notification for this message)
Any Idea on how to do? code....
View 1 Replies
View Related
Sep 25, 2010
I've got the following layout:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<WebView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/webview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
/>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<Button android:id="@+id/back"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:text="Back" />
<Button android:id="@+id/page_number"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:text="1 / 100" />
<Button android:id="@+id/next"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:text="Next" />
</LinearLayout>
</LinearLayout>
Which results in the following. How do I make the buttons fit the screen and stop the WebView pushing them off?
View 1 Replies
View Related
Nov 9, 2009
Two days ago, we uploaded a new version of the full version of our app (SpecTrek) to the market. Improvements include support for QVGA and WVGA screens.
We changed nothing in the "Developer Console" (Language: en_US, "All locations" selected).
Now we have received the first complaint of a Droid user who cannot find the full version on the market. The light version (that has not been upgraded yet) can be found ok. The good news is that the light version seems to work on the Droid, something we couldn't really test (except for some simulator runs on 2.0).
So presumably we did something stupid in the upgraded version. I can only assume it must be something in the manifest, as it seems unreasonably to assume the market software looks at anything else in the apk.
The only change in the manifest (besides versionCode/versionName) is the following:
CODE:.....................
There is also a "uses-sdk" entry, but that didn't change: <uses-sdk android:minSdkVersion="3" />
Is there anyone with a Droid that can verify the full version is not available to them (searching for 'SpecTrek' should find both the light and full versions)?
View 5 Replies
View Related
Oct 11, 2010
I have created a directory and even a file in that directory on the external storage, I am able to read and write into that but the problem is they are not visible on the emulator i.e, in the phone.
View 17 Replies
View Related
Apr 14, 2010
I suspect that adding a certain letter/character to the beginning of my text will solve an alignment problem I am currently facing. Needless to say that I do not wish for this letter to appear.
Is there a way to tell a portion of the text to be invisible/transparent?
I reviewed the Spannable interface could not find anything related to visibility.
View 2 Replies
View Related
Dec 17, 2009
In my layout, there is a TextView at the bottom of the screen. The problem is that when I click inside the text box to type something, the keyboard covers the text box as a result of which I am not able to see what's happening... Is there any solution for this? Here's my layout...
View 1 Replies
View Related
Jul 15, 2010
I want do uninstall some useless apps from /system.
I have super access, and the permission DELETE_PACKAGE in the manifest.
But when i run Runtime.exec("pm uninstall package") I get ERROR/AndroidRuntime(10981): java.lang.SecurityException: Neither user 10094 nor current process has android.permission.DELETE_PACKAGES.
Anyone know how to solve this?
View 2 Replies
View Related
May 13, 2010
So I just downloaded an app that quickly shows battery life, SD space, and disc space. It says I have used 628 of 748 mb on the disc. I thought the phone had an internal memory of 8gb.
View 3 Replies
View Related
May 3, 2010
I don't know if this means anything, but I just got a shipping email from ZAGG for my invisible shield HTC EVO 4G. I ordered last week, and it is shipping today. I ordered the screen-only protector, because I plan on using a hard shell case for the back.
View 49 Replies
View Related
Dec 16, 2009
Had my Samsung Moment for about a month. LOVE IT. Few issues (same as everyone else has noticed), but nothing terrible. Until: Randomly today TWO Notifications popped up that said "Low on space Phone storage space is getting low." One was what seemed to be from the "hardware" and the other was from the "Work Mail" app (which I don't use, haven't used, haven't even opened). When I click it, it takes me to the Manager screen. So, I began uninstalling some apps I don't really use (I didn't have that many anyway...a couple of games [Solitaire, etc], Facebook, Notes). It started running really slowly and random Force Close messages would appear for things like android.process, messaging--things that have never Force Closed before. I turned it off (pressed and held the red button), waited a few seconds, then turned it back on again. Immediately after the "Sprint" logo lights show finished, I got another Force Close message. When the Home Screen showed up, I had the two notifications again "Low on space". When I cleared the notifications, only the "Work Mail" one would clear. I went through and deleted some more apps that I don't use. Got on my computer & Googled the issue. Found a couple of random forums that suggested cleaning out the Cache in the Browser. I did that. Cleaned the History & Cookies in the Browser, too. Then, I did a soft reset (took out the battery). Started it up again, SAME notifications. Less Force Close messages. But, it's running VERY slowly.
After a few hours, I noticed that I hadn't received any text messages or Gmail notifications. I had my sister text me about 2 hours ago. Still have not received it.
I really don't want to hard reset. I haven't synced my contacts (I have over 400 & the Sprint store had trouble moving them from my Centro to the Moment) to Google yet, nor have I hooked my Moment up to my Mac yet (the Sprint guys had no idea if it would work or not with Snow Leopard & I hadn't had time to check yet) and I'm worried to try it now that my Moment has gone crazy...I really don't want to lose 400 contacts.I don't download a lot of apps. Most are reputable (Pandora, MotherTED, Shazam, Movies, Jewels). The last one I remember downloading was Google Voice three days ago (which I haven't really used because I've had the flu). I don't know if this is a Malware/Virus issue or if I'm just an idiot & did something wrong. But, it's running REALLY slowly right now. Still not receiving texts or emails (though my Twitter app has notified me of a couple of @ replies).I'm going to call Sprint & Samsung tomorrow, then go to a Sprint tech store if they can't help. But, I'm just hoping one of you have come across this & can help before I have to deal with hours of hold music & techies who tell me to soft reset over & over again.
BTW:
After awhile, I finally checked the storage space:
External SD care: Total: 1.89; Available: 1.85
Internal: About 2 hours ago when I first checked, after I had deleted a bunch of apps it said I had 7.something MB, now (after not downloading ANYTHING or barely even TOUCHING the damn thing) it says 1.95MB. Which leads me to believe that the 7.whatever was not necessarily accurate.
View 31 Replies
View Related
Apr 29, 2010
Installed the IS on 2 incredibles this evening.Everything went well, they look great. Just a few tiny bubbles that should dry up.The phones have been "resting" for about 6 hours now. I plan on waiting the full 24 hours before i put the batteries back in and turn them on. I started reading some posts on other forums about how people have messed up their phones with water damage after installing the IS. Just wanted to see if anyone was having any trouble after installing the IS.I tried not to use alot of water, but there was some water coming out from under the IS when i was squeegeeing the bubbles out.Going to be a worrisome 24 hrs.
View 14 Replies
View Related