[Arriba] [Todas las Listas]

Re: [android-developers] Ayuda con FindViewById

To: android-developers@xxxxxxxxxxxxxxxx
Subject: Re: [android-developers] Ayuda con FindViewById
From: Mark Murphy <mmurphy@xxxxxxxxxxxxxxx>
Date: Mon, 31 Oct 2011 11:38:09 -0400
Delivery-date: Mon, 31 Oct 2011 11:38:49 -0400
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=beta; h=x-beenthere:received-spf:mime-version:in-reply-to:references:from :date:message-id:subject:to:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type :content-transfer-encoding; bh=hBXZS3Fm9wSpJX1mh3129zL6S7H8+ZWdFe0CdOpmI3c=; b=RAGbxvJsyuQjAdu/Desblyyh7JH+WLHXRAxDfQ7mVdGTgFqSBR4V8gKh67EbpzESL2 NT5JULFCzLoUGQ5uAFQWoLOP3jI2Q6isP3RMdsfkjmYsNHYA9+kiokPSVRRN/Ytih1Dl DGF7etizNEUJs3U3cIRVyMbaCzcPQgSoiDe3U=
Envelope-to: traductor@xxxxxxxxxxx
In-reply-to: <>
List-archive: <>
List-help: <>, <>
List-id: <>
List-post: <>, <>
List-subscribe: <>, <>
List-unsubscribe: <>, <>
Mailing-list: list android-developers@xxxxxxxxxxxxxxxx; contact android-developers+owners@xxxxxxxxxxxxxxxx
References: <>
Reply-to: android-developers@xxxxxxxxxxxxxxxx
Sender: android-developers@xxxxxxxxxxxxxxxx
En *Mon, *Oct 31, 2011 en 11:34 AM, Mark *Phillips
<mark@xxxxxxxxxxxxxxxxxxxxx> escribió:
> tengo el siguiendo *layout:
> *LinearLayout
>     *TableLayout_1
>     *ScrollView
>        *MyHorizontalScrollView
>          *TableLayout_2
> *MyHorizontalScrollView extiende *HorizontalScrollView. Puedo conseguir un *pointer a *TableLayout_2
> utilizando *findViewById(). Cómo  consigo un *pointer a *TableLayout_1
> de *MyHorizontalScrollView?

Tú  no, desde *TableLayout_1 no es un niño de *MyHorizontalScrollView.
Lo consigues de vuestra actividad.

Mark *Murphy (un *Commons Guy)
*http://*commonsware.*com | *http://*github.*com/*commonsguy
*http://*commonsware.*com/*blog | *http://*twitter.*com/*commonsguy

_*Android Programación *Tutorials_ Versión 4.0 Disponible!

Recibiste este mensaje porque eres *subscribed al *Google
Grupos "*Android *Developers" grupo.
A correo a este grupo, envía *email a *android-developers@xxxxxxxxxxxxxxxx
A *unsubscribe de este grupo, envía *email a *android-*developers+unsubscribe@xxxxxxxxxxxxxxxx

Puesto que más opciones, visita este grupo en

On Mon, Oct 31, 2011 at 11:34 AM, Mark Phillips
<mark@xxxxxxxxxxxxxxxxxxxxx> wrote:
> I have the following layout:
> LinearLayout
>     TableLayout_1
>     ScrollView
>        MyHorizontalScrollView
>          TableLayout_2
> MyHorizontalScrollView extends HorizontalScrollView. I can get a pointer to
> TableLayout_2 using findViewById(). How do I get a pointer to TableLayout_1
> from MyHorizontalScrollView?

You don't, since TableLayout_1 is not a child of
MyHorizontalScrollView. You get it from your activity.

Mark Murphy (a Commons Guy) | |

_Android Programming Tutorials_ Version 4.0 Available!

You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@xxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to
For more options, visit this group at

<Anterior por Tema] Tema Actual [Siguiente por Tema>