my code

Ejemplo de xml para menú de preferencias en app de Android
by [email protected]

Archivo llamado ajustes.xml (es un ejemplo). Se muestran distintas formas de seleccionar preferencias. Ha de ir en la carpeta res/xml

rutacompleta: res/xml/ajustes.xml
consultar: El gran libro de Android, Jesús Tomás, cap. 2, page 26

Snippet options

Download: Download snippet as ejemplo-de-xml-para-menu-de-preferencias-en-app-de-android.xml.
Copy snippet: For this you need a free my code account.
Embed code : You will find the embed code for this snippet at the end of the page, if you want to embed it into a website or a blog!

<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="" >

        android:summary="Se reproduce música de fondo"
        android:title="Reproducir música" ></CheckBoxPreference>

        android:summary="Se escoge la representación de gráficos"
        android:title="Tipo de gráficos" ></ListPreference>

        android:summary="En cuantos trozos se divide el asteroide"
        android:title="Número de Fragmentos" ></EditTextPreference>


Create a free my code account now.

my code is a free service, which allows you to save and manage code snippes of any kind and programming language. We provide many advantages for your daily work with code-snippets, also for your teamwork. Give it a try!

Find out more and register now

You can customize the height of iFrame-Codes as needed! You can find more infos in our API Reference for iframe Embeds.