How to use panning with WebKitGTK? - webkit

I want to use WebKitGTK on a touchscreen device. Since operating scroll bars on such a device is too cumbersome I would like to have some panning support. Since WebKit is used on quite a number of mobile devices which all support panning I hope that WebKit/WebKitGTK has some support for it.
So the question is how to activate it?
WebKitGTK does not have an API for activating it. CSS also does not seem to be suitable for switching it on.
Version of WebKitGTK to be used is 1.11.5 since the target architecture has no compiler with full C++11 support but is restricted to gcc-4.4.1.

Since you are using WebKit 1.x, you should put the WebKitWebView in a GtkScrolledWindow. If you have a new enough version of GTK, then the scrolled window should support vertical and horizontal scrolling on mobile devices.

Related

Embedded camera in Xamarin Forms

I have a client that adamantly insists on a solution with embedded camera in terms of having a ContentPage with an camera stream and custom buttons and icons, similar to https://github.com/pierceboggan/Moments, or at very least as I understand it seeing as it is a Snapchat clone. And my client wants similar swipe capabilities as to how navigation works in Snapchat.
However, as far as I can tell most of what is utilized in that solution has been deprecated.
I have suggested using the Media Plugin https://github.com/jamesmontemagno/MediaPlugin but they're not satisfied with the camera being pushed on the stack.
I've looked into implementing it natively and using dependency injections but it appears to be an overwhelming amount of work just to implement the most basic functions, particularly for Android's Camera2.
I'm hoping someone can provide me with good news of an easier alternative or an alteration to either Moments or Media Plugin or anything similar that will facilitate the requirements or if my only option is time consuming and complex?
From the code of Moment, you can do what you want to achieve. I did this for iOS.
You will have to create a custom renderer to display the camera page. You will be able to add buttons on top of it.
You could try this example which use custom renderer to add a take photo button and switch camera button on the camera view. Which is able to use on iOS and Android platform.
Main Page:
Camera View with custom button page:

Simulate non-standard resolution

I am working on a project that will be targeted to a specific device, and the device has a resolution of 1280 x 800. I am aware of the restrictions on a Store app that mean limited functional support for this resolution (no snapped view, etc), but I was wondering if there was a way to configure the simulator to work in a non-standard resolution. Currently all the screens we have developed have been done blind (or at least against a resolution of 1366x768) as we don't have an actual device to build against. As a result we really don't know how the layouts are going to look on the device.
Click the Change Resolution button on right edge of the simulator. 9th button down, the icon looks like an LCD display. 1200x800 is one of the resolutions provided in the dropdown list. I'd post a screenshot if I knew how to make one, the simulator works a bit too well for that ;)

How do I position in mono for android?

Hello i am new to Mono for android. I am trying to make a Calculator, in a normal windows forms application.
I can Drag a button or textbox to any position I want but how does that work in Mono for android, I want the buttons next to each other not only downwards. If I place buttons under eachother that go out of the framework I dont want that either..
I am not English il hope you will understand.
please help.
Android "supports", but has deprecated and doesn't endorse, pixel-perfect layout. Unfortunately the Windows Forms-style of dragging and dropping controls onto a design surface at specific pixel locations requires pixel perfect layout, so you can see the mismatch here.
For a Calculator, what you would instead want to do use a Table Layout or some other "resizable" container, so that your Activity can support the variety of device sizes that Android covers.

Is it possible to test touch gestures with a "non-touchable" laptop?

While developing Windows Store apps and WP8 apps, is it possible to test the "touch" gestures while using a laptop that doesn't support touch? Are there parallel mouse or keyboard actions/combinations that will do the same thing as a "pinch" or a "flick" gesture (to imitate semantic zoom and unzoom) for example?
When you use the simulator, there are buttons at the right that let you simulate multi-touch. It's not convenient, but it mostly works.
http://msdn.microsoft.com/en-us/library/windows/apps/hh441475(v=vs.110).aspx
I haven't been able to use the WP8 SDK yet but if the SDK is like WP7 (from what I hear from others it is) use the simulator that comes with the SDK and use Multitouch Vista to emulate the touches with this Guide to using Multitouch Vista. You will just need any other USB mouse (note though using the built-in trackpad as another mouse has been hit and miss in my experience with Multitouch Vista)
For Windows Store Apps the easiest way to simlute gestures only us by using the provided simulator. You can still use Multitouch Vista but the dots to track the points won't show in the Metro Environment.

Sencha Touch: lags during animation (carousel)

I have an application with few "pages" with images. When i use carousel for changing "pages" - it lags. And i can't understand why.
I'm guessing your browser is choking on the cpu-intensive CSS3 features involved in the carousel. They are supposed to be hardware accelerated (done on the GPU), but only certain platforms support this (iOS yes, Android not yet IIRC).
See this talk from SenchaCon 2010 on performance: http://vimeo.com/17882927