Android resource file explanation

1: android resources  

             1: Native resources that R cannot access are stored in the assets directory 

             2: The resources that R can access, in the res directory


2: xml file for res/animator attribute animation

    res/anim tween xml file

    res/drawable 

   res/raw Native resources Audio and video files Native resources are recommended to be placed under the assets directory

   res/values ​​simple xml file string array color value array  

   String resource res/values/strings.xml    

    Color resource res/values/colors.xml argb

    Dimensions resource res/values/demins.xml  

    Array resources res/values/arrays.xml

       <array> normal data type data array

       <string-array> String array

       <integer-array> integer array

   xml resource res/xml manually create xml directory

  Style theme: style theme applies beautification to set similar styles for easy reuse

  style  res/values/style.xml

  theme res/values/theme.xml mainly sets the display style of the activity for the activity

  Attribute

  attribute res/values/attrs.xml attribute resource

       attr Child element An item represents an attribute declare-styleable A set of attributes

  Native resources: video and audio see picture

  globalization:






International explanation:








Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324800388&siteId=291194637