[android-developers] ScrollBar in Android not working ???

2011-07-06 Thread Rahul Mandaliya
I need to add a scroll for linear layout.I use the following code to
create the linear layout.But it's not working


LinearLayout llay=new LinearLayout(context);
llay.setVerticalScrollBarEnabled(true);

If i use the following lines i will get the Scrollbar.

ScrollView sc=new ScrollView(context);sc.addView(llay);

But I need to add scroll for the Linear layout without using
ScrollView. Thanks in advance !!!

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] ScrollBar in Android not working ???

2011-07-06 Thread TreKing
On Wed, Jul 6, 2011 at 8:08 AM, Rahul Mandaliya mandaliy...@gmail.comwrote:

 But I need to add scroll for the Linear layout without using ScrollView.


Why not? This is the way it's done.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Scrollbar in AdapterView derived object

2011-05-11 Thread Ga
Hi,

I have *overridden* the methods scroll in the class which extends 
adapterview but none of them are fired. 
What causes them to be fired ?

I'm using a Scroller in the AdapterView.




Thanks

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Scrollbar not working

2011-03-27 Thread New Developer
I have the following in the XML
TableLayout android:id=@+id/TableLayout01 
android:layout_width=fill_parent 
android:layout_height=fill_parent 
android:scrollbars=vertical
android:scrollbarSize=20dp
android:scrollbarAlwaysDrawVerticalTrack=true
android:stretchColumns=*
TableRow
  ListView
android:id=@+id/main_list 
android:layout_width=wrap_content 
android:layout_height=wrap_content
android:smoothScrollbar=true
android:fastScrollEnabled=true
android:scrollbars=vertical
android:scrollbarStyle=insideInset
android:scrollbarSize=20dip
android:textColor=#00ee00/ListView
/TableRow
  /TableLayout

I add the items dynamically from a database using

private ListView  listView = null;
listView = (ListView) findViewById(R.id.main_list);
listView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE);

It shows a very narrow scrollbar.
But the list does not scroll and the scroll bar has no effect, which I click 
the scrollbar to move it
the scrollbar fades away.  any Ideas ?


Thanks in advance

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Scrollbar not working

2011-03-27 Thread Mark Murphy
Android does not use scrollbars for more than a momentary display of
position. This is by design. The concept of a scrollbar as being the
mechanism for scrolling is for mouse-based UIs. Touchscreens scroll
via gestures sliding the whole thing up and down.

I strongly encourage you to use some touchscreen hardware -- whether
or not it is an Android phone -- before you start attempting to write
Android applications.

On Sun, Mar 27, 2011 at 8:11 AM, New Developer secur...@isscp.com wrote:
 I have the following in the XML
 TableLayout android:id=@+id/TableLayout01
     android:layout_width=fill_parent
     android:layout_height=fill_parent
     android:scrollbars=vertical
     android:scrollbarSize=20dp
     android:scrollbarAlwaysDrawVerticalTrack=true
     android:stretchColumns=*
     TableRow
       ListView
         android:id=@+id/main_list
         android:layout_width=wrap_content
         android:layout_height=wrap_content
         android:smoothScrollbar=true
         android:fastScrollEnabled=true
         android:scrollbars=vertical
         android:scrollbarStyle=insideInset
         android:scrollbarSize=20dip
         android:textColor=#00ee00/ListView
     /TableRow
   /TableLayout
 I add the items dynamically from a database using
 private ListView  listView = null;
 listView = (ListView) findViewById(R.id.main_list);
 listView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE);
 It shows a very narrow scrollbar.
 But the list does not scroll and the scroll bar has no effect, which I click
 the scrollbar to move it
 the scrollbar fades away.  any Ideas ?

 Thanks in advance

 --
 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+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in Oslo: http://bit.ly/fjBo24

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Scrollbar not working

2011-03-27 Thread New Developer
Thanks

I have tried an android phone
Okay let me ask this  how then to you correctly test a ListView  with a scroll  
on the emulator ??
What is the correct method ?

Thanks again

On Mar 27, 2011, at 8:28 AM, Mark Murphy wrote:

 Android does not use scrollbars for more than a momentary display of
 position. This is by design. The concept of a scrollbar as being the
 mechanism for scrolling is for mouse-based UIs. Touchscreens scroll
 via gestures sliding the whole thing up and down.
 
 I strongly encourage you to use some touchscreen hardware -- whether
 or not it is an Android phone -- before you start attempting to write
 Android applications.
 
 On Sun, Mar 27, 2011 at 8:11 AM, New Developer secur...@isscp.com wrote:
 I have the following in the XML
 TableLayout android:id=@+id/TableLayout01
 android:layout_width=fill_parent
 android:layout_height=fill_parent
 android:scrollbars=vertical
 android:scrollbarSize=20dp
 android:scrollbarAlwaysDrawVerticalTrack=true
 android:stretchColumns=*
 TableRow
   ListView
 android:id=@+id/main_list
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 android:smoothScrollbar=true
 android:fastScrollEnabled=true
 android:scrollbars=vertical
 android:scrollbarStyle=insideInset
 android:scrollbarSize=20dip
 android:textColor=#00ee00/ListView
 /TableRow
   /TableLayout
 I add the items dynamically from a database using
 private ListView  listView = null;
 listView = (ListView) findViewById(R.id.main_list);
 listView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE);
 It shows a very narrow scrollbar.
 But the list does not scroll and the scroll bar has no effect, which I click
 the scrollbar to move it
 the scrollbar fades away.  any Ideas ?
 
 Thanks in advance
 
 --
 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+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 
 
 
 -- 
 Mark Murphy (a Commons Guy)
 http://commonsware.com | http://github.com/commonsguy
 http://commonsware.com/blog | http://twitter.com/commonsguy
 
 Android Training in Oslo: http://bit.ly/fjBo24
 
 -- 
 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+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Scrollbar not working

2011-03-27 Thread Mark Murphy
Use your mouse to simulate a finger.

On Sun, Mar 27, 2011 at 11:43 AM, New Developer secur...@isscp.com wrote:
 Thanks

 I have tried an android phone
 Okay let me ask this  how then to you correctly test a ListView  with a 
 scroll  on the emulator ??
 What is the correct method ?

 Thanks again

 On Mar 27, 2011, at 8:28 AM, Mark Murphy wrote:

 Android does not use scrollbars for more than a momentary display of
 position. This is by design. The concept of a scrollbar as being the
 mechanism for scrolling is for mouse-based UIs. Touchscreens scroll
 via gestures sliding the whole thing up and down.

 I strongly encourage you to use some touchscreen hardware -- whether
 or not it is an Android phone -- before you start attempting to write
 Android applications.

 On Sun, Mar 27, 2011 at 8:11 AM, New Developer secur...@isscp.com wrote:
 I have the following in the XML
 TableLayout android:id=@+id/TableLayout01
     android:layout_width=fill_parent
     android:layout_height=fill_parent
     android:scrollbars=vertical
     android:scrollbarSize=20dp
     android:scrollbarAlwaysDrawVerticalTrack=true
     android:stretchColumns=*
     TableRow
       ListView
         android:id=@+id/main_list
         android:layout_width=wrap_content
         android:layout_height=wrap_content
         android:smoothScrollbar=true
         android:fastScrollEnabled=true
         android:scrollbars=vertical
         android:scrollbarStyle=insideInset
         android:scrollbarSize=20dip
         android:textColor=#00ee00/ListView
     /TableRow
   /TableLayout
 I add the items dynamically from a database using
 private ListView  listView = null;
 listView = (ListView) findViewById(R.id.main_list);
 listView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE);
 It shows a very narrow scrollbar.
 But the list does not scroll and the scroll bar has no effect, which I click
 the scrollbar to move it
 the scrollbar fades away.  any Ideas ?

 Thanks in advance

 --
 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+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en



 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com | http://github.com/commonsguy
 http://commonsware.com/blog | http://twitter.com/commonsguy

 Android Training in Oslo: http://bit.ly/fjBo24

 --
 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+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 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+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in Oslo: http://bit.ly/fjBo24

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] scrollbar is coming in gridview

2011-02-17 Thread cool.manish
Hi,

I am using grid view. It is not displaying all contents and adding one
scroll bar. after scrolling i get to know that their are other items
available. There is lots of space available on the screen but even
then it is displaying scrollbar

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Scrollbar as data input

2010-12-18 Thread Pikoh
I hope i make myself understood. What I want is to use something like
a scrollbar to let the user change a value. I mean, i want the user to
slide a bar to change a value. Anyone can point me in the right
direction? Thank you

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Scrollbar as data input

2010-12-18 Thread Mark Murphy
Try SeekBar.

On Sat, Dec 18, 2010 at 1:41 PM, Pikoh pik...@gmail.com wrote:
 I hope i make myself understood. What I want is to use something like
 a scrollbar to let the user change a value. I mean, i want the user to
 slide a bar to change a value. Anyone can point me in the right
 direction? Thank you

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
Available!

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] scrollbar drawable not appearing properly

2010-10-10 Thread kavitha b
Hi All,

I am setting a drawable to scrollbar of a list view.But scrollbar image is
not appearing properly.It appears strecthed.

I tried to use 9 patch image.But still same problem.

Anybody ahs used image to scrollbar successfully?

Please help.

Thanks
Kavitha

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Scrollbar

2010-10-10 Thread guru sagar
how to keep buttons on the scroll bar

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Scrollbar

2010-10-10 Thread Mark Murphy
On Thu, Oct 7, 2010 at 2:20 AM, guru sagar gurusagar...@gmail.com wrote:
 how to keep buttons on the scroll bar

The scroll bar has no buttons in Android.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 3.0.1 Available!

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] scrollbar image not appearing properly

2010-10-09 Thread kavitha b
Hi All,

I am setting a drawable to scrollbar of a list view.But scrollbar image is
not appearing properly.It appears strecthed.

I tried to use 9 patch image.But still same problem.

Anybody ahs used image to scrollbar successfully?

Please help.

Thanks
Kavitha

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] scrollbar image not appearing properly

2010-10-09 Thread kavitha b
I am setting a drawable to scrollbar of a list view.But scrollbar image is
not appearing properly.It appears strecthed.

I tried to use 9 patch image.But still same problem.

Anybody ahs used image to scrollbar successfully?

Please help.

Thanks
Kavitha

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] scrollbar drawable not appearing properly

2010-10-07 Thread kavitha b
Hi All,

I tried replacing scrollbar image with another drawable,setting
scrollbar to a listview,but scrollbar image is appearing very weird,it
is stretched vertically.

I am setting to list view as

android:scrollbarThumbVertical=@drawable/scrollbar
android:scrollbarTrackVertical=@drawable/scrollbar

Is there any other attribute i need to set to make image appear properly.

Thanks
Kavitha

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] scrollbar drawable not appearing properly

2010-10-07 Thread TreKing
On Thu, Oct 7, 2010 at 1:29 AM, kavitha b kkavith...@gmail.com wrote:

 Is there any other attribute i need to set to make image appear properly.


Not sure, but I would look at the default image used by the system (it
should be somewhere in the SDK along with the other default images) and see
if that does anything special. Maybe it's a PNG.9 stretchy image or
something.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Scrollbar Thumb Color

2010-02-24 Thread sriram
Hi All,


Can the application customize the scroll bar colors like the thumb
color/image or the background color image.

For example I am using a ListView on a device. Now the scrollbar seems
to appear in white because I see the imageviewgets truncated on the
left.
The same does not happen on the emulator where the scrollbar is
visible.

Thanks...

I have posted couple of questions, but have not recived even one
answer... atleast for this one can I get one response may be even from
the admin banning from posting :)

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Scrollbar in AdapterView derived object

2010-01-11 Thread RIV
Hi All,

I have a AdapterView derived class (say GridLayout) in which I arrange
views in a grid. When items in the grid exceed the height of the
GridLayout( or screen) I want a scrollbar to appear. I have handled
scrolling in onTouchEvent. But the problem is the scrollbars don't
appear. I have set the vertical scrollbar to be enabled, but no use.
The docs say the scrollbar appears every time the scrollTo or scrollBy
methods are called. Whats wrong. Please suggest.

Thanks in advance
R
-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Scrollbar in AdapterView derived object

2010-01-11 Thread Romain Guy
Hi,

You have to override the various compute*() methods to tell the
framework what the scroll range, offset and extent are.

On Mon, Jan 11, 2010 at 8:37 PM, RIV ronnievie...@gmail.com wrote:
 Hi All,

 I have a AdapterView derived class (say GridLayout) in which I arrange
 views in a grid. When items in the grid exceed the height of the
 GridLayout( or screen) I want a scrollbar to appear. I have handled
 scrolling in onTouchEvent. But the problem is the scrollbars don't
 appear. I have set the vertical scrollbar to be enabled, but no use.
 The docs say the scrollbar appears every time the scrollTo or scrollBy
 methods are called. Whats wrong. Please suggest.

 Thanks in advance
 R

 --
 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+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them
-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Scrollbar in AdapterView

2009-12-17 Thread RIV
Hi All,

I have a AdapterView derived class (say GridLayout) in which I arrange
views in a grid. When items in the grid exceed the height of the
GridLayout( or screen) I want a scrollbar to appear. I have handled
scrolling in onTouchEvent. But the problem is the scrollbars don't
appear. I have set the vertical scrollbar to be enabled, but no use.
The docs say the scrollbar appears every time the scrollTo or scrollBy
methods are called. Whats wrong. Please suggest.

Thanks in advance
R

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en