GridLayout does not expand elements evenly
问题 i am trying to use GridView to divide the screen into six equal pieces. The problem is that it displays properly in the emulator but when i view it from the phone then the space is distributed unevenly. What could cause this behavior? I have tested this with API 21 & API 22 phones. Emulator vs Phone: This is my xml: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools=