我一直在尝试使用这个jquery星级评级插件:http://www.fyneworks.com/jquery/star-rating/#tab-Overview.一旦被点击,我正试图获得明星的价值,但我一直没有运气.我不确定在哪里包含他们建议的以下回调:
$('.auto-submit-star').rating({
callback: function(value, link){
alert(value);
}
});
Run Code Online (Sandbox Code Playgroud)
我已经尝试在代码中粘贴它,但是当我点击一个星星时我没有得到警告.谢谢!!
当我尝试在我的模拟器上使用ImageView显示图像时,它会显示出来.添加按钮后,图像不会显示.
我不知道这是否有帮助,但我的XML工作时:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:id="@+id/LinearLayout01"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<ImageView android:id="@+id/ImageView01"
android:layout_height="wrap_content"
android:layout_width="fill_parent"/>
</LinearLayout>
Run Code Online (Sandbox Code Playgroud)
而不是工作:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:id="@+id/LinearLayout01"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<Button
android:id="@+id/backbutton"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Back"/>
<ImageView android:id="@+id/ImageView01"
android:layout_height="wrap_content"
android:layout_width="fill_parent"/>
</LinearLayout>
Run Code Online (Sandbox Code Playgroud)