That isn't really anything specific to layout files, that is just the generic code for parsing typed attribute values in XML files. It is part of the core system image.
On Mon, Aug 31, 2009 at 8:01 PM, Susan <[email protected]> wrote: > > I finally find the validate details in > \mydroid\frameworks\base\libs\utils\ResourceTypes.cpp. The > function ResTable::stringToValue(...) does the job. It doesn't seem > to be the part of ADT. > > Susan wrote: > > Anybody can help me? > > > > Susan wrote: > > > Thanks for your help! > > > But I really can't find where ADT does it. > > > In build method of > > > com.android.ide.eclipse.adt.build.PreCompilerBuilder.java: > > > // launch the command line process > > > Process process = Runtime.getRuntime().exec( > > > array.toArray(new String[array.size > > > ()])); > > > > > > // list to store each line of stderr > > > ArrayList<String> results = new ArrayList<String>(); > > > > > > // get the output and return code from the process > > > execError = grabProcessOutput(process, results); > > > > > > It seems that after invoke aapt in first line and then we get the > > > error message from aapt process. > > > Could you please give me a hint? > > > > > > Thanks again. > > > > > > Balwinder Kaur (T-Mobile USA) wrote: > > > > ADT. > > > > > > > > Balwinder Kaur > > > > Open Source Development Center > > > > ·T· · ·Mobile· stick together > > > > > > > > The views, opinions and statements in this email are those of the > > > > author solely in their individual capacity, and do not necessarily > > > > represent those of T-Mobile USA, Inc. > > > > > > > > > > > > On Aug 27, 2:18 am, Susan <[email protected]> wrote: > > > > > Who is responsible for validation of xml file when editing xml in > > > > > Android layout editor? For example, when I set a negtive valut to > > > > > android:maxLength of TextView, it will be marked in red. ADT or > aapt > > > > > is responsible for check? > > > > > > > > > > Your help will be appreciated. > > > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

