Android Pull to Refresh on Webview gets stuck - android

I am beginner with Android development.
I have used https://github.com/chrisbanes/Android-PullToRefresh library for 'Pull to Refersh' feature.
I have configured web view for this feature and it's working fine.
The issue is when we pull to refresh, the web view gets stuck and i can not scroll the existing page.
Please help to resolve this issue or suggest alternate library for this feature.
Thanks,
Ankur

https://developer.android.com/reference/android/support/v4/widget/SwipeRefreshLayout.html
There already exists a swipe down to refresh layout in the support library. Perhaps this is what you are looking for?
Some samples:
SwipeRefreshLayoutBasic
SwipeRefreshListFragment
SwipeRefreshMultipleViews

Related

How to implement 'BottomNavigation' element in a nativescript application?

I have a working project written with angular nativescript, and now i want to add some tabs using 'BottomNavigation'. I looked in the documentation and it seemed pretty simple, but when i added the code to my project all of the tabs just overlayed on each other and i didn't saw any tabs, as if i just put the pages one on another. What am i missing? What should i do in order to use bottom navigation? I tried to create a new helloe world project and just add the bottom navigation but i got the same result. However, when i created a 'tabs' project it did had proper tabs.
I suspect its have somthing to do with the {N} version. I recently updated to the latest version (8.1.5) and there are a lot of troubles with it. Does bottom navigation still supported on this version? How can i make it work?
Well, i found the solution. In case someone in the future will face the same problem:
It is a version problem. Since version 8 you should add the package manualy as described here:
https://github.com/nativescript-community/ui-material-components/tree/master/packages/bottom-navigation#installation

Joomla: disabling iphone and android view for a template

I am currently trying to disable the iphone and android view for a specific template within my site. I don't have much experience with joomla but I've been using google to find some answers but so far no luck.
I've tried removing the files 'index-iphone' and 'index-android' from the template xml but on mobile it stills gives and error and doesn't call the 'index' file.
If my question is unclear or you need further details, let me know and i will try my best to be more detailed
I was able to resolve the issue by going to Extensions > template manager. On this page are several tabs but I clicked on 'Mobile' tab. I was then able to disable to iphone and android view.

titanium classic android slide a view like facebook slide menu?

I am building a titanium classic mobile project where I want a Facebook like slider menu, both for Android and iOS. In GitHub I have found projects which work great for iPhone but dont work with Android. I have been trying for weeks now but without much success.
I want a solution which works for both Android and iPhone. Can anyone share some information on the same.
Thanks a lot!
There is a very good solution, NappDrawer Module works fine for android and iOS, and if you face a bug, you post it and most probably they help you or they fix it.
You're gonna have to use views for android and windows for iOS.
Here's the module's link NappDrawer Module.
And this is the documentation.

Use ChromeView in Android App

I'm trying to use ChromeView on my Android app in order to run some preload html. I follow this tutorial https://github.com/pwnall/chromeview
I can import it correctly to my project, but i can't see the ChromeView component on the Pallete, as it is mentioned there, so my app crashes because "Class Not Found" exception is raised.
Thanks in advise
I just implemented this and It worked. Hopefully it helps someone.
Here's how I did it:
Instead of looking for ChromeView on the Pallete, I would recommend that you just type it in the XML. Much quicker.
Here's how:
BUT, if you prefer to do it in the design mode, look for Custom View on the Pallete.
And when you click on it, it will show all the custom views available from the linked libraries, etc. Pick ChromeView from the list.
If ChromeView is not on that list and if you manually type it in XML and give you error, the chromeview package isn't linked correctly.

Android browser scrolling issue

I tried the Facebooklike plugin as showed in Like Box with android browser using PhoneGap, to my surprise the scroll didn't work at all. No scrollbars appeared and find no way to scroll the contentin webkit.
Anybody tried this, did figure out a solution?
Thanks
I think the like function is about to be deprecated or merged with the share functionality. Try using the share method using facebook's android library http://developers.facebook.com/docs/guides/mobile/#android

Categories

Resources