21.04.2014 Views

Curso-Android-Desarrollo-de-Aplicaciones-Móviles

Curso-Android-Desarrollo-de-Aplicaciones-Móviles

Curso-Android-Desarrollo-de-Aplicaciones-Móviles

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CURSO ANDROID<br />

24<br />

CAPÍTULO 2<br />

Aumentar la funcionalidad <strong>de</strong> un lector <strong>de</strong> feeds<br />

El lector <strong>de</strong> feed que <strong>de</strong>sarrollaremos en este capítulo se diferencia <strong>de</strong>l anterior porque permitiremos<br />

al usuario <strong>de</strong>cidir si al presionar sobre un elemento quiere verlo en una vista previa <strong>de</strong>ntro <strong>de</strong> la aplicación<br />

o en el navegador, para esta elección agregaremos un menú y personalizaremos el View <strong>de</strong> cada<br />

fila <strong>de</strong>l resultado.<br />

El ejemplo se verá <strong>de</strong> la siguiente manera:<br />

Disposición inicial<br />

Empecemos <strong>de</strong>scargando el código 1 que <strong>de</strong>be ser importado hacia un nuevo proyecto es muy similar<br />

al <strong>de</strong>l capítulo anterior, pero revisemos las diferencias:<br />

ÐÐ<br />

El XMLParser ahora obtiene no solo el link y título <strong>de</strong> cada artículo, también su autor, fecha, <strong>de</strong>scrip-<br />

1 https://github.com/androidMDW/guia2base

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!