我试图将动画添加到我的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;
}