Giter VIP home page Giter VIP logo

Comments (7)

mopsicus avatar mopsicus commented on May 16, 2024 1

Hi,
hmm, strange.. current plugin should works as you described: keyboard shouldn't hides

from umi.

mopsicus avatar mopsicus commented on May 16, 2024 1

Everything should work correct with both camera types.

from umi.

mopsicus avatar mopsicus commented on May 16, 2024 1

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.

Aisthetic avatar Aisthetic commented on May 16, 2024 1

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.

Aisthetic avatar Aisthetic commented on May 16, 2024

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.

Aisthetic avatar Aisthetic commented on May 16, 2024

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.

Aisthetic avatar Aisthetic commented on May 16, 2024

Finally It worked ! Yet I'm still experience some unexpected behaviour where I'm getting this
image instead of this
image
Edit: I will try making the native input invisible and rebuild the plugin to seen if works

from umi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.