1

In layout XML files of Android Studio it usually shows suggestion of attributes for any component line 'layout_marginTop','layout_marginBottom' etc,

Now in my case it is not showing proper suggestions even though they are valid attributes.... it is happening in android studio 3.3.2

enter image description here

enter image description here

  • 1
    Have you tried invalidating cache? I'm using the same build and it's working fine here. – bensadiku Mar 28 '19 at 12:44
  • 1
    You are getting suggestions, but it obviously can't predict you want 'margin' when you've only typed 'layout'. Does typing 'layout_m' not narrow it down to the relevant attributes? Because that list seems to be sorted alphabetically, which means layout_margin is rightly not at the top. – shriakhilc Mar 28 '19 at 12:50
  • I agree with TheGamer007's comment - this should be a list sorted alphabetically and "app:layout..." is higher than "layout_..." - scroll down or type "layout_m" to get a better suggestion. – Izabela Orlowska Mar 28 '19 at 13:05
  • @bensadiku Your suggestion somehow helped me thank you – Kartik Bhat Mar 28 '19 at 13:21
  • @TheGamer007 Even I after scrolling down I couldn't found that 'layout_margin' in the whole list. Now I got a solution for that, actually it is a problem related to andrid studio cache i just deleted .android3.3.2 folder from C->Users->''" and restarted android studio.... Its working..... – Kartik Bhat Mar 28 '19 at 13:21
  • This worked absolutely fine for me [Reset Android Studio Settings](https://stackoverflow.com/a/19397632/7708141) – Kartik Bhat Mar 28 '19 at 13:25

0 Answers0