2 xingkong90 xingkong90 于 2013.05.15 19:34 提问

android课程表出现错误

在csdn上下载了个课程表
http://download.csdn.net/detail/kkforeva2/4284645

到自己电脑上运行,发现错误,src文件夹下score_activity.java文件错误

package com.donglihan.CollegeLifeManager;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.RatingBar;
import android.widget.Toast;

public class score_activity extends Activity {
    /* (non-Javadoc)
     * @see android.app.Activity#onCreate(android.os.Bundle)
     */
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        // TODO Auto-generated method stub
        super.onCreate(savedInstanceState);
        setContentView(R.layout.score);
        setTitle("评个分吧O(∩_∩)O~");

    RatingBar ratingBar = (RatingBar) findViewById(R.id.rating_bar);
    ratingBar.setOnRatingBarChangeListener(
            new RatingBar.OnRatingBarChangeListener() {  
            @Override  
            public void onRatingChanged(RatingBar ratingBar,  
                    float rating, boolean fromUser) {  
                // TODO Auto-generated method stub  
                ratingBar.setRating(rating);  
                Toast.makeText(score_activity.this,  
                        "谢谢评分!", Toast.LENGTH_SHORT).show();
                finish();
                }         
            }
            );  
    }
}

1个回答

lyyybz
lyyybz   Rxr 2016.08.19 10:44

请问你的问题解决了么,我碰到和你一样的问题!

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!