Comments (7)
Hi,
hmm, strange.. current plugin should works as you described: keyboard shouldn't hides
from umi.
Everything should work correct with both camera types.
from umi.
To remove white background, set alpha to 0 for input field image "normal color".
But, you can't set custom font for native input, at least in current realization
from umi.
Well thanks a lot, it's all fixed now, I added my font in the android project and changed setRec
// Set new position and size private void SetRect(JSONObject data) { try { boolean visible = data.getBoolean("visible"); double x = data.getDouble("x") * (double) layout.getWidth(); double y = data.getDouble("y") * (double) layout.getHeight(); double width = data.getDouble("width") * (double) layout.getWidth(); double height = data.getDouble("height") * (double) layout.getHeight(); Rect rect = new Rect((int) x, (int) y, (int) (x + width), (int) (y + height)); RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(rect.width(), rect.height()); params.setMargins(rect.left, rect.top, 0, 0); if(!visible){ edit.setBackgroundColor(Color.TRANSPARENT); //edit.setTextColor(Color.TRANSPARENT); Typeface face=Typeface.createFromAsset(Plugin.activity.getAssets(),"fonts/dum1.ttf"); edit.setTypeface(face); } edit.setLayoutParams(params); } catch (JSONException e) {} }
from umi.
Ok, it must be me doing something wrong, i'm using unity 2019.1 though, hope it's not a problem. Besides, will It be a problem if I swap the canvas type from overlay to camera ?
from umi.
Well I have just build your demo project and It worked as It should, I will try to import it correctly into my project again to see if it works, thanks for the fast answers !
from umi.
Finally It worked ! Yet I'm still experience some unexpected behaviour where I'm getting this
instead of this
Edit: I will try making the native input invisible and rebuild the plugin to seen if works
from umi.
Related Issues (20)
- Any plans to make it compatible with TextMeshPro Input? HOT 1
- issue with SetVisible is not showing the text if gameObject is deactivated and activated again
- OnShowKeyboard каждый раз присылает разное значение высоты клавиатуры HOT 1
- Pasting long text ends up looping OnReceivedData
- Exception: common.aar plugin with the same name and architecture was already added HOT 4
- Can't auto hide HOT 2
- Orientation problems. [iOS] HOT 1
- Option to make text readonly HOT 2
- Changing InputField Content Type
- Native inputbox is slow to respond when updating visibility and when initializing HOT 3
- Dark theme troubles
- Caret moving to beginning undesirably when SetTextData() is called. HOT 1
- Is there a way to prevent appear the keyboard when scrolling? (For Android)
- Possible security issue HOT 4
- Cannot change input value from code HOT 1
- Input Field does not move with ScrollRect in Android build HOT 1
- Input Field does not adhere to UI Masks in Android build HOT 4
- iOS password keychain stopped working with iOS 15
- hide the suggestions list above the keyboard on Android and iOS?
- 隐藏输入框后的高度怎么计算
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from umi.