Programación y Desarrollo para Android Subforo exclusivo para temas de programación de software para PDAs y desarrollo de aplicaciones, interfaces, etc bajo Android


 
Herramientas
  #1  
Viejo 25/09/11, 15:36:25
Avatar de luischo
luischo luischo no está en línea
Miembro del foro
Mensajes: 493
 
Fecha de registro: jul 2009
Localización: Galicia
Mensajes: 493
Modelo de smartphone: Sony Ericsson Xperia ARC
Versión de ROM: De serie
Tu operador: Simyo
Mencionado: 1 comentarios
Tagged: 0 hilos
SlidingDrawer y XML

Alguien sabe como funcionan los Sliding???? He encontrado varios ejemplos por internet pero no me funciona ninguno, e aquí un ejemplo:

Código:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:orientation="vertical" android:layout_width="fill_parent"
        android:layout_height="fill_parent">
        <SlidingDrawer android:id="@+id/slidingDrawer1"
                android:layout_width="fill_parent" android:layout_height="fill_parent"
                android:topOffset="50dip" android:handle="@+id/handle"
                android:content="@+id/content">
                <Button android:text="Handle" android:layout_height="wrap_content"
                        android:layout_width="wrap_content" android:id="@+id/handle"></Button>
                <LinearLayout android:id="@+id/content"
                        android:layout_width="fill_parent" android:layout_height="fill_parent"
                        android:orientation="vertical" android:gravity="center"
                        android:background="#FF444444">
                        <Button android:text="Item 1" android:layout_height="wrap_content"
                                android:layout_width="wrap_content" android:id="@+id/item1"></Button>
                        <Button android:text="Item 2" android:layout_height="wrap_content"
                                android:layout_width="wrap_content" android:id="@+id/item2"></Button>
                        <Button android:text="Item 3" android:layout_height="wrap_content"
                                android:layout_width="wrap_content" android:id="@+id/item3"></Button>
                        <Button android:text="Item 4" android:layout_height="wrap_content"
                                android:layout_width="wrap_content" android:id="@+id/item4"></Button>
                        <Button android:text="Item 5" android:layout_height="wrap_content"
                                android:layout_width="wrap_content" android:id="@+id/item5"></Button>
                </LinearLayout>
        </SlidingDrawer>
</LinearLayout>
Se supone que debería funcionar, pero a mi no me va da error. Alguien sabe cuál puede ser el problema??

No sé si alguien conoce el juego Bouncy Mouse, quiero hacer un menú del mismo estilo, sabéis como se puede hacer???
Responder Con Cita


Respuesta

Estás aquí
Regresar   HTCMania > Todo sobre Android > Programación y Desarrollo para Android

Herramientas

Reglas de Mensajes
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Las caritas están On
Código [IMG] está On
Código HTML está Off

Saltar a Foro



Hora actual: 00:16:54 (GMT +1)

Cookies settings
Powered by vBulletin™
Copyright © vBulletin Solutions, Inc. All rights reserved.
 
HTCMania: líderes desde el 2007