0

The title says everything, what I'm trying to achieve is to group custom attrs in the layout designer, just like layout_margin or padding, but with diferent type of attributes if it is possible

Like this

Thanks in advance!

René Jörg Spies
  • 1,544
  • 1
  • 10
  • 29

2 Answers2

0

Didn't fully understand your question. From the image, I guess you want to make a single line of combo attribute which can cover all the attributes under it. This grouping is not possible I guess. But if u want to make some custom attributes, u can use this: Defining custom attrs

Soumik
  • 55
  • 1
  • 8
0

What I found in my research that, you cannot make groups for your custom attributes. If you look at the attrs.xml file, you will see there are no extra things/conditions about grouping padding and its related attributes, but Android Studio shows the attributes as a group. So I think Android Studio developers create custom conditions for those attributes to group up those attributes.

Mahmudul Hasan Shohag
  • 2,203
  • 1
  • 22
  • 30