android:windowSoftInputMode="adjustNothing" equivalent in livecode - android

Do you know the equivalent of eclipse code android:windowSoftInputMode="adjustNothing" in livecode? This prevents changing the layout when the keyboard shows up.
Note: I created a web apps (html5 packed as android and ios apps)
Thanks.

The default behavior is not to change the layout, so you don't need to script it.

Related

ModernListView looks different on Windows and Android platform

I need your help.
Can someone explain to me why the appearance of ListView (I use ModernListView -> https://github.com/rzaripov1990/ModernListView) is different on Windows platform and Android platform. I am using Custom Style, StyleBook which is modified for Platform Default.
I use Delphi 10.4 CE, Update 2.
On Windows platform both Accessory (Type=More) and GlyphButton (ButtonType=Checkbox) in EditMode are visible.
On the Android platform, however, neither the Accessory (Type=More) nor GlyphButton (ButtonType=Checkbox) in EditMode is visible.
The source code of example can be found on github -> https://github.com/sax15/ListViewExample
Thanks for your help.
i didn't use Firemonkey in the past 2 years now(maybe even longer...), but from what i remember the controls will always look different between Windows and mobile.
sometimes also the behavior is different.
i think even when you set the controls to look native.
Edit -
Here are some useful link about styles and different devices :
https://books.google.co.il/books?id=euJDEAAAQBAJ&pg=PA164&lpg=PA164&dq=delphi+firemonkey+different+styles+in+different+devices&source=bl&ots=Xq55fI6L1z&sig=ACfU3U2mvWi7_DXu6hP2tca-WRJmNjEPIA&hl=en&sa=X&ved=2ahUKEwj5ho_K_qz4AhXUiP0HHZQVAIMQ6AF6BAglEAM#v=onepage&q=delphi%20firemonkey%20different%20styles%20in%20different%20devices&f=false
https://docwiki.embarcadero.com/RADStudio/Sydney/en/Working_with_Native_and_Custom_FireMonkey_Styles
https://www.fmxexpress.com/add-firemonkey-mobile-styles-into-your-desktop-apps-in-delphi-10-seattle-for-android-and-ios/
Thanks to Eitan Arbel, I realized that I had not changed Style for the Android platform. The Default style was not displaying correctly on the Android. Now I added the Style for the Android and everything works as it should.
I've also updated the example on github -> https://github.com/sax15/ListViewExample
THX Eitan

Is there an hot reload alternative for Xamarin.Android?

I'm aware that when developing in Xamarin.Forms I have available some tools for hot reloading, such as:
https://github.com/AndreiMisiukevich/HotReload
https://marketplace.visualstudio.com/items?itemName=Xamarin.XamarinLiveReload
https://www.livexaml.com/
However I wasn't able to find an equivalent alternative for Xamarin.Android. Is there an alternative out there that I can use for hot reloading on Xamarin.Android?
There's two ways of creating a layout in Xamarin Android:
Using axml layouts - If you upgrade to the latest Xamarin & Visual Studio on a Mac, you will notice that the designer view for a layout gets updated in real time with the axml code. So technically it's live reloading.
Inside the fragment(CS file) - For this you can use Continuous, as you can see it in use here. Ryan Davis is available on Twitter, and he's pretty quick to respond

Keyboard adjusting issue in react native for android

I'm a beginner to react native development and for keyboard handling in my current application, I have used react-native-keyboard-manager which works well in iOS. Now for android, it says I need to set android:windowSoftInputMode to adjustResize. I've tried both adjustResize and adjustPan as well but they both behave the same way and my view get squashed up. Below are the screenshots of my view.
View before keyboard appearance
View after keyboard appearance
Am I missing something here? Is there an easy way to fix this? I'm aware of other Libraries like KeyboardAvoidingView, KeyboardSpacer and KeyboardAwareScrollView, but if I use that I would need to implement it in every view and repeat same code to do it separately for android as in iOS it already works very well. Any help is appreciated
If you make changes to native code in your project then you must rebuild your project.
You will not see the updates in your simulator/emulator if you just reload it (ie pressing CMD+R or RR. This is due to the fact that when you reload all you are doing is changing the JavaScript and not the native code.
To effect the changes (usually the best way is to remove the previous build folder first) is to run react-native run-ios or react-native run-android that way you force a rebuild and any changes to your native code are then updated on your simulator/emulator.

File upload field not working inside a web view in android

I have a webapplication made in Laravel Framework. I am launching it inside the web view of an android application. All works well but when i press the choose file It does no work. Its completely inactive. How to make it work?
I think you make use of the input attribute in your html, don't you?
As written here (FAQ part) it does not work out-of-the-box in webviews by now.
Maybe you can give the WebChromeClient.onShowFileChooser a shot (added API 21).

Arabic mirror of layout issue in Android

I am currently developing an application on Android platform with multi-language support (i.e., Arabic and English). I have prepared two value packages for English as well as Arabic.
I am using the same layouts for the different languages. In other words, I do not have special layouts for Arabic or English. I have used all possible ways i.e. layoutDirection, gravity, and layout_gravity attributes to get the layouts mirrored. so far, the best I have got that the controls are aligned to the right, but not mirrored.
My question is how to force the application layouts to be mirrored? To the purpose of knowledge, I have tried different Android platforms: 2.3.3 and 4.2.2 with no success. Please, could any one help me as I have searched deliberately to get my problem solved.
How to set up RTL layout mirroring
To set up RTL layout mirroring in your app, perform the following steps:
Add android:supportsRtl=”true” to the <application> element in your Android manifest file.
In the Android manifest file, change all of your app’s “left/right” layout properties to new “start/end” equivalents. For example, android:paddingLeft should become android:paddingStart.
just follow this link
http://developer.sonymobile.com/2015/06/09/enable-worldwide-usability-for-your-apps-with-bi-directional-language-support/
Android has full RTL support on 4.2+ and even on 4.2+ some widgets ignore directionality. See:
http://developer.android.com/about/versions/jelly-bean.html#intl
http://android-developers.blogspot.com/2013/03/native-rtl-support-in-android-42.html

Categories

Resources