I am using Titanium for creating my Android app. I have a one big form in my window. But the scrollbar is not showing up there. I think its not set by default in Titanium. So I just want to know is there any way for the scrollbar to show up.
I think what you are looking for is showVerticalScrollIndicator or showHorizontalScrollIndicator so setting the one you want to true will make the scroll bar show up.
Related
My app works with webViews and I'm trying to implement scroll to top when clicking the status bar in IOS. I am using the cordova plugin statusTap to detect when the status bar is clicked and I managed to get scroll to top work without any native code. the problem is that if I am clicking the status bar while in a scroll, the view kind of gets seizures and jumps around.
My code so far:
window.addEventListener('statusTap', onStatusTap);
function onStatusTap() {
var appsContainer = $("#apps-container");
appsContainer.animate({scrollTop: element.offset().top}, "slow");
}
I tried listening to scrolls and what not but I can't get away from the fact that during scrolls the value of
$("#apps-container").scrollTop
doesn't change so it's impossible to know if a scroll is taking place.
Does anybody have any idea for a non-native solution? Thanks in advance.
Background
on Firefox and Chrome apps for Android, if the user scrolls down, the upper actionBar starts to disappear.
if the scrolling is fast enough , it starts an animation to finish the disappearing, but if not, it returns to its normal state.
and there is a similar effect for showing the action bar, only that it's for scrolling up.
The problem
I need to have the same ability to make a customized view that is on the top of the screen (looks a bit like an action bar but it's not).
a part of the view will always be visible, but a part of it will shrink like in the effect of chrome and firefox.
I've looked for libraries that allow such a thing but without any luck.
The question
How can I achieve this behavior?
My guess is that I need to use the scrolling listener of the adapterView , but then what?
I think this library can help, in the inner sample of "animation" :
https://github.com/LarsWerkman/QuickReturnListView
sadly i also use a customized pinterest-like listView, which doesn't report about scrolling (not states, but the real positions as you scroll). in fact it doesn't even extend from AdapterView.
I'm trying to make an extra effect to menu that will come down from the top of the screen
I want to make it enter the screen while swiping it from the top and if the user left it, it should continue to the end
this is the figure that demonstrate what I want to do:
I tried to do it with animation but the animation will not go on while swiping and it will go to the end without touching
any other ideas to move the view down with finger ?
Check this out for a sliding Drawer http://developer.android.com/reference/android/widget/SlidingDrawer.html
it sound like you kind of want the same thing as the pulldown menu at the top of all android phones except you want it customized, the link will show you that.
OK
It works for me now
I used SlidingTray.java class from this API
API Website
btw : this api open source
I am implementing pop up screen .But when i click a button My pop up is show .But when i click the field which is present on pop up screen .it show keyboad
along with my background image .I didn't add any background image on that page .I only add background image on different pages but it is show in that page when i scroll the pop up screen
i don't provide my code because it too large.Can you please idea how it is possible .actualy i check on browser it is working fine problem is android device!
This is not a image. Actually jQueryMobile adds a border to the active input field. You can change this via CSS. Please see the link jQuery Mobile border on select text input
It is not an image those lines are the lists that are created automatically for some reason you can check there will be some code for it in your code put it on git.
In Samsung Galaxy S3, even though my app is set to be full screen, and this makes the notification bar not to be visible, if I swipe from the very edge of the screen side, this action will make the notification bar to appear again, allowing the user to expand it over the full screen app.
Is there any way to disable this, or to cancel the expand of the notification bar?
The problem is that I have a listview covering the whole screen, and if I swipe to scroll the items, every time I do it from the very edge due to the instinctive action of scrolling faster, then the notification bar appears again.
I've tried tricks such as creating an overlay window on the edge, but not working at all for SG3.
Thanks
If you haven't tried already, you might attempt to use the View flag for hiding navigation, SYSTEM_UI_FLAG_HIDE_NAVIGATION, documented here.
However it may be important to note this found at the bottom of their description :
There is a limitation: because navigation controls are so important, the least user interaction will cause them to reappear immediately. When this happens, both this flag and SYSTEM_UI_FLAG_FULLSCREEN will be cleared automatically, so that both elements reappear at the same time.
which is probably related to what you're seeing. I find it hard to believe there's a way around this... I just tried and every fullscreen app I have on my S3 behaves this exact same way.
I suspect that if there was a way around it (assuming the above doesn't work, which I don't expect it to), it would be considered to be a bug by the Android team, and I would advise against it.