scrollview

How do I know that the scrollview is already scrolled to the bottom?

I have a scrollview and I only want an event to happen if it's already scrolled to the bottom but I can't find a way to check if the scrollview is at the bottom. I have solved it for the opposite; only allow the event to happen if it's already scrolled to the top: ScrollView sv = (ScrollView) findViewById(R.id.Scroll); if(sv.getScr...

Programmatically creating scrollview(s) from custom component in android

I'm trying to build a compound control in Android, containing (among other things) a ScrollView. Things go wrong when I try to view the control in Eclipse, crashing with a NullPointerException after the error message: "Parser is not a BridgeXmlBlockParser". Stacktrace: java.lang.NullPointerException at android.view.View.<init>(View.jav...

Remove UIViewController from UIScrollView?

Hi, i add different View with (setPageID) to a ScrollView, but know i get a Memory problem on rotaion and i want to remove the actualy not showed view... how can i do this or how can i remove the memory problem? Thanks!!! - (void)setPageID:(int)page { if (page < 0) return; if (page >= self.listOfItems.count) ret...

[self.view addSubview:UIView] doesn't work correctly. addSubview problem

Help me. addSubview doesn't work. I want to add "ContentView" on scrollView. But "ContentView" doesn't appear on screen. "ContentView" is UIView. When I change to self.view=scrollView from [self.view addSubview:scrollView], addSubview doesn't work. Please teach me how to add UIView on this screen!! - (void)viewDidLoad { [super viewDid...

Redundant margins when adding ImageView to ScrollView in Android.

Hi.. I have been trying to use a ScrollView on a single ImageView with a JPG (~770 x 1024) over an AVD that's 600x800. My main.xml is: <?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...

Android ScrollView jumps around when resized

I have a ScrollView that contains an number of other views (TextViews, ImageViews, etc.). The ScrollView is taller than the screen. I have an AsyncTask that updates the children of the ScrollView based on an http response. I've discovered an interesting behavior that I can't figure out how to work around. If I set any of the children...

Change scrollbar color in Android

Is it possible to change the color or appearance of the scrollbar in a ScrollView or ListView? ...

Android: ScrollView force to bottom

I would like a ScrollView to start all the way at the bottom. Any methods? ...

Android: how to listen for scrolling events?

Hi all, is there a way to establish a listener on the process of scrolling in a ScrollView or a HorizontalScrollView? ...

Scroll to last line of TableLayout within a ScrollView

I want to have a dynamic table, with rows added over time as a result of user interaction, using a TableLayout inside a ScrollView. This works fine, but when I want to scroll to the end of the table using fullScroll(), it always leaves out the last line; that is, it scrolls so that the one before the last one is visible. The last line is...

How to make UITableView work within TTScrollView?

Hi there, I'm solving a problem how to make tableviews work within three20's TTScrollView. I have a project which I want to rebuild using three20 library. There is one module which allows user to flip through set of "pages", which contains table showing some list of data. My problem is that when I rebuilt this module to use three20's T...

iphone paging scroll view based on WWDC 2010 presentation

Hey guys, im trying to build basically a paged scroll image view like the photos app. There is both source code and the videos explaining alot of how apple built their photo app (its video 104 from WWDC on iTunes U) has anyone worked with this code? I keep trying to put in my own images and they dont work. yet, when i get rid of the ti...

Scrolling TextView in a ScrollView to a specific substring of text

For starters, I'm a C++/Qt Developer jumping into Android/Java development, so please don't assume I know anything. :) So, I have an application with a TextView contained with in a ScrollView. The text contained in the TextView is the results of a web query from my web server application. Depending on the query, the text can be pretty...

Scrolling EditText on ScrollView programmatically

Hi there, I am trying to make a non-editable EditText that is placed in a ScrollView and scrolling is controlled programmatically (when a left/right fling is detected). Ok, here's my simple layout: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientatio...

Scrollview problem

Hi, i have a simple activity with a linearlayout and a scrollview. Dynamically i add a tablerow with one textview and a button. But when i launch app scrollview doesn't contain all tablerow... infact the first is "this is a text - 3 -" Rows from 1 to 3 are cut off from screen! this is java code : int contatore = 0; final...

Why won't onLongPress fire on scrollable text?

I am trying to implement a alert box to pop up when someone holds their finger down on the screen (onLongPress event). The layout contains a TextView inside a LinearLayout, inside a ScrollView. If the text being displayed is short, everything works fine. But if it is so long that a scroll bar is present, the event won't fire at all. How ...

Android Scrollview in RelativeLayout with ButtonBar

I'm trying to implement a login view where several EditTexts and a logo are displayed on the screen with a ButtonBar at the bottom, something like this: The problem is that on very small screens, especially when they are rotated sideways, the entire main view doesn't fit onto the screen. I currently have <?xml version="1.0" encoding...

Scrollable TableLayout & Column Headers

I am trying to create a basic datasheet in my application using a TableLayout. The first row contains the titles of each column. Every row thereafter is data. I would like the data to be scrollable while keeping the first title row visible (i.e. the first row would not scroll with the rest). I have tried something like the following (un...

UIScrollView setContentSize

i have one trouble, me need make scrollview with content of pdf(pages), this content has size of first 8 pages, and when i already see 8 page, i need expand content size for new pages and to do so, that scrollview show me new pages, but he shows pages from start scrollview again. What i need to implement? ...

UIScrollview paging back

hello everyone i my iphone app i have scrollview with pages and i know what page on screen now with that: if(currentPoint.x == screenWidth){ currentPage += 1; screenWidth += 768; [self loadScrollViewWithPage:currentPage]; , but i need also know, what page on screen when user scrolling back. How it's possible? Thanks. ...