Code Monkey home page Code Monkey logo

Comments (5)

Jay-YaoJie avatar Jay-YaoJie commented on June 19, 2024

设置了没有显示

from dialog.

Jay-YaoJie avatar Jay-YaoJie commented on June 19, 2024

//初始化布局:
View customView = LayoutInflater.from(me).inflate(R.layout.layout_custom, null);
//启动对话框
MessageDialog.build(context, null, null, "知道了", new DialogInterface.OnClickLis
@OverRide
public void onClick(DialogInterface dialog, int which) {

}

}).setCustomView(customView)
.setCanCancel(true)
.showDialog();

出不来呀,我的style
image

from dialog.

Jay-YaoJie avatar Jay-YaoJie commented on June 19, 2024

image

from dialog.

kongzue avatar kongzue commented on June 19, 2024

目前尚不清楚原因,您可以尝试下Demo中的代码
https://github.com/kongzue/Dialog/blob/master/app/src/main/java/com/kongzue/dialogdemo/MainActivity.java)
目前我这边测试自定义布局是能够正常显示的

from dialog.

Jay-YaoJie avatar Jay-YaoJie commented on June 19, 2024

如果自定义的View 一定要写成RelativeLayout开头的布局,写成了LinearLayout是不可以的,因为在加载库里add是RelativeLayout
image

但是现在修改了,,,键盘弹不出来了
https://blog.csdn.net/zxyyohou/article/details/80338222
或着修改为
https://blog.csdn.net/zxyyohou/article/details/80338222
SelectDialog类下面修改,,其他的我还没有调试过,,,
image

from dialog.

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.