Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我附上了一张图片。在该图像中,一个复选框和微调器处于未定义的位置。我正在使用绝对布局,但我无法将其修复到任何地方。所以,我需要以编程方式设置它们。这可能吗?任何人都可以帮助我。提前致谢。
Praveen 如果你把你的 XML 文件放上去会很有帮助。绝对布局类已被弃用的任何方式尝试使用框架布局或RelativeLayout。与没有绝对定位的其他类型的布局相比,绝对布局更不灵活且更难维护。