• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Slide menu and buttons on one screen

KeesK

Lurker
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:orientation="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?
 
Back
Top Bottom