[英]How to create a customized layout
i'm creating an app, and i'm kinda knew in android develpment, i don't have much experience, but i've bee maneging well. 我正在创建一个应用程序,我在android开发方面有点儿了解,我经验不足,但是我表现得很好。 My app is almost complete and now i want to improve the looks.
我的应用程序即将完成,现在我想改善外观。 Anyone knows how to put the widgets inside boxes, separated from background ?
有谁知道如何将小部件放在与背景分开的盒子中? Like, i'll give you an example:
像,我给你举个例子:
Anyone knows how to put the widgets inside boxes, separated from background ?
有谁知道如何将小部件放在与背景分开的盒子中?
=> You can use the CardView
provided in support library. =>您可以使用支持库中提供的
CardView
。 CardView
is nothing but a FrameLayout
so you can include whatever views inside it! CardView
只是一个FrameLayout
所以您可以在其中包含任何视图!
For more reference, go through the Creating Lists and Cards . 有关更多参考,请遍历创建列表和卡片 。
使用框的框架布局。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.