Reputation: 121
I am using Android-Studio and lately I ran into some situation.
till now I was using the attributes window for set the margin layout (to top/left/right/bottom) but in some point of time, Probably last week, this margin option dissapir. how can i return it? (i know i can do this at the xml text file but its More comfortable at the design option)
my attribute look like this: enter image description here
this is how i want it to look like: enter image description here
Upvotes: 1
Views: 2427
Reputation: 2547
I had this exact problem today and this is how I solved it.
select 'Floating mode' on options that comes up when you click on 'cog' in attributes window. now, margins will come back.
if you don't want floating anymore, attach it back to right side and margins will stay now.
It seems like a bug in Android studio that margins disappear for no reason.
Upvotes: 1