1
<style name="mystyle" parent="@*android:style/Widget.Holo.NumberPicker">
</style>

私のスタイルでそれを使用すると、システムはエラー「 Illegal resource reference: @*android resources are private and not always present 」を報告します。問題は何ですか

4

2 に答える 2

0

このコードに従う:

if (value.startsWith("@*android:")) { //$NON-NLS-1$
    context.report(ISSUE, attribute, context.getLocation(attribute),
            "Illegal resource reference: @*android resources are private and " +
            "not always present", null);
}

ノードから抽出された文字列は、@*android

それはおそらくあなたの問題です

于 2013-03-12T09:47:09.097 に答える
0

簡単に言えば、これは不可能です。ナンバー ピッカーのパブリック スタイルはありません。「スタイル番号ピッカー」を簡単に検索して、この SO の質問/回答を見つけることができます: Unable to override style switchStyle and NumberPicker in Android

于 2013-03-12T14:29:24.263 に答える