Solution to invalid weight in RecyclerView layout

  • Problem : If LinearLayout is used and the weight attribute is used internally, the final effect of RecyclerView will be inconsistent with the weight.
  • Solution : just put a layer of other layout outside LinearLayout

Guess you like

Origin blog.csdn.net/qq_36881363/article/details/107174774