Comments (4)
补充一下截图
是不是我哪里打开方式不对...贴一下DialogScene的代码
class CommonAlertScene : Scene {
private lateinit var msg: String
private var type: Style = Style.Default
enum class Style{Default,NoIcon}
constructor(msg:String, type:Style):super(){
this.type = type
}
constructor(msg:String):super(){
this.msg = msg
}
override fun onCreateView(
inflater: LayoutInflater,
container: ViewGroup,
savedInstanceState: Bundle?
): View {
return inflater.inflate(R.layout.layout_common_alert,container,false)
}
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
view.setBackgroundColor(Color.parseColor("#99000000"))
view.tv_msg?.setText(msg)
view.btn_confirm?.onClick {
navigationScene?.pop()
}
}
}
from scene.
你在 onViewCreated 补一段 view.setClickable(true)
from scene.
你在 onViewCreated 补一段 view.setClickable(true)
果然好用,虽然不明白为啥。。。谢谢!
from scene.
@Iridescentangle
点击进入事件被view消费了
from scene.
Related Issues (20)
- Why not update to androidx HOT 5
- SceneContainerActivity透明主题 HOT 4
- need release resources on OnDestroyView? HOT 4
- Viewpager2 adapter HOT 2
- Why not using material components? HOT 1
- Deep linking? HOT 1
- Demo singleTask 用法和singleTop 一样啊,不会清除要启动的sense 栈上面的sense HOT 1
- scene跨进程打开另外一个页面 可以解决白屏问题吗? HOT 5
- 出现空指针 HOT 2
- 出现崩溃 HOT 2
- 现状和计划 HOT 8
- 如何在Scene里面监听按键 HOT 1
- 无法拉取新版本更新依赖的问题。 HOT 8
- 关于权限请求的问题 HOT 1
- 觉得这个项目和Jetpack Compose 很适合一起使用 HOT 1
- 结合ViewBinding使用的回收时机 HOT 1
- 绑定到Fragment时onViewCreated生命周期 HOT 5
- JCenter deprecated HOT 1
- Compose兼容 HOT 8
- 项目编译不过 HOT 2
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 scene.