Menu - Android studio

1

I have made a new menu: res folder > new Layout > menu.

In the I have entered 7 icons.

<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    tools:context=".MainActivity">

    <item
        android:id="@+id/linterna"
        android:icon="@mipmap/linterna_montse"
        android:title="@string/linterna"
        app:showAsAction="always" />
    <item
        android:id="@+id/camara"
        android:icon="@mipmap/camara_montse"
        android:title="@string/camara"
        app:showAsAction="always" />
    <item
        android:id="@+id/animacio"
        android:icon="@mipmap/man_montse"
        android:title="@string/animacio"
        app:showAsAction="always" />
    <item
        android:id="@+id/animacioTwen"
        android:icon="@mipmap/batman_montse"
        android:title="@string/animaciotwen"
        app:showAsAction="always" />
    <item
        android:id="@+id/audio"
        android:icon="@mipmap/music_montse"
        android:title="@string/audio"
        app:showAsAction="always" />
    <item
        android:id="@+id/video"
        android:icon="@mipmap/film_montse"
        android:title="@string/video"
        app:showAsAction="always" />
    <item
        android:id="@+id/geolocalizacion"
        android:icon="@mipmap/near_montse"
        android:title="@string/geolocalizacion"
        app:showAsAction="always" />
</menu>

The problem is that the 7 does not fit and the problem is that I do not know how to do it so that if it fits and everything is centered ...

Can you help me?

I attach a picture of how it looks like with a big screen, but when the screen is smaller the buttons are cut and not all are shown, how can I make them smaller according to the screen? That is to say that the 7 buttons always leave.

    
asked by Montse Mkd 05.11.2018 в 21:31
source

0 answers