1. In regards to recently combined carrier specific root forums, if your device forum was affected, please see this poll/thread!

Android findViewById

  1. AndroidDevel

    AndroidDevel New Member

    Hi all
    Plz can anyone clarify on below concepts

    At the activity

    To change the properties of the resources we need an view instance of that particular resource.
    And to find the view instance for the resources attached with in an activity, we use findViewById() api
    Ex: private ImageView mView;
    mView=(ImageView) findViewById(R.id.image);

    At the widget

    To attain the same requirement at the widget, we can use the instance of RemoteViews .
    Ex: RemoteViews remoteViews = new RemoteViews(context.getPackageName(), R.layout.main);

  2. Unforgiven

    Unforgiven ~Shoveling Snow~ Moderator

    I've moved this to the application development forum so you can get the help you need.:)

Share This Page