But in my case that resource does not exist. I have to dynamically
create and assign ID to that.

Kostya Vasilyev wrote:
> http://developer.android.com/reference/android/content/res/Resources.html#getIdentifier(java.lang.String,
> java.lang.String, java.lang.String)
>
> 07.02.2011 13:34, Jawwad Farooq пишет:
> > Hi All,
> >
> > I want to know, Is there any way to assign string value as ID for the
> > component programatically. I am doing something like this:
> >
> > TextView textView = new TextView(this) ;
> > textView.setText("hellooooo") ;
> > textView.setId(10) ;
> >
> >
> > But need some method which assigns my string value as ID...
> >
> > Like
> > textView.setId( someMethod("textViewId") ) ;
> >
> >
> > Please Reply...
> >
>
>
> --
> Kostya Vasilyev -- WiFi Manager + pretty widget -- 
> http://kmansoft.wordpress.com

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to