arrow2015
V2EX  ›  Android

谁知道安卓 declare-styleable 标签的官方文档在哪吗?

  •  
  •   arrow2015 · Mar 19, 2020 · 13360 views
    This topic created in 2425 days ago, the information mentioned may be changed or developed.

    在这里 https://developer.android.google.cn/guide/topics/resources/providing-resources 找了一圈没找到。是我没找对地方吗?还是官方文档里就是没有对 declare-styleable 完整的介绍?我看讲自定义 View 的地方有介绍: https://developer.android.google.cn/training/custom-views/create-view 但是这不是正式的定义,比如 format="reference",format="dimension" 都没有给出定义。

    3 replies  •  2020-03-20 18:01:18 +08:00
    arrow2015
    arrow2015
    OP
    Mar 20, 2020
    2
    @fairytale110 这应该不算是对 declare-styleable 各字段下定义做解释的文档,只是对它的一个使用。
    shingkit
    shingkit
    Mar 20, 2020
    3
    可能谷歌觉得学到自定义 view 的时候,应该不用再解释"format="reference",format="dimension" 之类的东西了吧
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   513 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 20:52 · PVG 04:52 · LAX 12:52 · JFK 15:52
    ♥ Do have faith in what you're doing.