[android-developers] Re: How to inflate an xml file with ids from other apk?

2009-03-15 Thread David Yue
Did you define the string id "hello" in the strings.xml file? You may need define it in the 'other apk' 's strings.xml file, you can try. On Mar 16, 9:25 am, quill wrote: > Hi, guys, > I want to inflate a layout xml file(in different apk), so I use > res = getPackageManager().getResourcesForAppl

[android-developers] How to display text just over ProgressBar?

2009-03-10 Thread David Yue
Hi, I am trying to implement a ProgressBar with text over it. Below is my general idea: In layout *.xml file, I define it as below: In Java code, I do like this: final ProgressBar progress; progress = (ProgressBar) v.findViewById(R.id.progress_ID); progress.setProgress(99); BUT I have no idea