1. Download our Official Android App: Forums for Android!

Apps Slide menu and buttons on one screen

Discussion in 'Android Development' started by KeesK, Aug 2, 2016.

  1. KeesK

    KeesK Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Aug 2, 2016

    Aug 2, 2016
    1
    0
    5
    I'm a beginner with Xamarin and I'm trying make an app fore Android.

    I'm trying to make a screen with slide tab menu and on the bottom of the screen buttons for audio player.

    For the sliding menu tabs I used this example: https://developer.xamarin.com/samples/monodroid/ActionBarViewPager/

    On the bottom of the screen I'm trying add the follow code:

    <LinearLayout
    android:eek:rientation="horizontal"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_gravity="center_horizontal"
    android:background="#d63333"
    android:id="@+id/linearLayout1">
    <Button
    android:text="@String/play"
    android:id="@+id/playButton"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:drawableTop="@drawable/ic_av_play"
    android:layout_gravity="center_vertical" />
    <Button
    android:text="@String/pause"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:id="@+id/pauseButton"
    android:drawableTop="@drawable/ic_av_pause"
    android:layout_gravity="center_vertical" />
    <Button
    android:text="@String/stop"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:id="@+id/stopButton"
    android:drawableTop="@drawable/ic_av_stop"
    android:layout_gravity="center_vertical" />
    </LinearLayout>

    The problem is that I can not get the slide smaller. Does anyone know how I can fix it?
     

    Advertisement

Share This Page

Loading...