How to make a button so that it is wide for the entire screen (i.e. scalable).

  • one
    layout_width: "match_parent" not suitable? - Komdosh
  • No, it stretches it a little, but not the full width of the screen. - GuardFromUA
  • one
    Maybe the parent layer has padding, which does not allow stretching along the edges - Komdosh
  • show your layout'a code - Crazy
  • threw the code in the topic - GuardFromUA

1 answer 1

Assign her and all her ancestors android:layout_width="match_parent"

  • No, it does not help. - GuardFromUA
  • Remove android: layout_marginRight = "72dp" or make it 0dp - iramm