In my application, the user can choose the notification icons himself. I made a drop down menu for this and added the icon images to the table layout. The problem is that the pictures don't fit on small screen phones and there is a lot of space on the edge on the big screens (tablets, phones, etc). How can I fix this? Thank in advance!
<TableLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp">
<TableRow android:gravity="center">
<ImageView
android:id="@+id/img5"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_gravity="center"
android:clickable="true"
android:focusable="true"
android:foreground="@drawable/ripple_circular_tabs"
android:layout_margin="8dp"
android:src="@mipmap/ic_notifications4"
tools:ignore="ContentDescription" />
<ImageView
android:id="@+id/img6"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_gravity="center"
android:layout_margin="10dp"
android:clickable="true"
android:focusable="true"
android:foreground="@drawable/ripple_circular_tabs"
android:src="@mipmap/ic_notifications10"
tools:ignore="ContentDescription" />
<ImageView
android:id="@+id/img7"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_gravity="center"
android:clickable="true"
android:focusable="true"
android:foreground="@drawable/ripple_circular_tabs"
android:layout_margin="10dp"
android:src="@mipmap/ic_notifications6"
tools:ignore="ContentDescription" />
<ImageView
android:id="@+id/img8"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_gravity="center"
android:layout_margin="8dp"
android:clickable="true"
android:focusable="true"
android:foreground="@drawable/ripple_circular_tabs"
android:src="@mipmap/ic_notifications7"
tools:ignore="ContentDescription" />
</TableRow>
</TableLayout>