xamarin android:资源不包含'style'的定义

时间:2017-05-29 18:47:31

标签: c# android xml xamarin

我试图将动画添加到我的android对话框片段中,我已将style.xml创建到values文件夹中,但我收到此错误:资源不包含样式的定义。

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div class="container">
    <div class="functionality">Accordion</div>
    <ul class="accordion-wrapper">
        <li>
            <div class="title">Title</div>
            <div class="text">Description</div>
        </li>
        <li>
            <div class="title">Title</div>
            <div class="text">Description</div>
        </li>
        <li>
            <div class="title">Title</div>
            <div class="text">Description</div>
        </li>
    </ul>
</div>

style.xml:

public override void OnActivityCreated(Bundle savedInstanceState)
    {
        Dialog.Window.RequestFeature(WindowFeatures.NoTitle);
        base.OnActivityCreated(savedInstanceState);
        Dialog.Window.Attributes.WindowAnimations = Resource.style.dialoge_animation;
    }

0 个答案:

没有答案