0
がところで私はちょうどので、私の知る限り、私のmain.xmlがEclipseの藍のカスタムボタンを使用すると、ボタン消える
<Button
android:id="@+id/LOGIN"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/LOGIN"
android:textSize="25dp"
android:background="@drawable/custombutton"/>
custombutton.xml
を読み込み言うことができるようにすべての私のコードが正しいだアイブ私と一緒にクマ学んでいます<item
android:state_pressed="true"
android:drawable="@drawable/musicnotes1"/>
<item
android:state_focused="true"
android:drawable="@drawable/musicnotes2"/>
はcustombutton.java
import android.app.Activity;
import android.os.Bundle;
public class custombutton extends Activity{
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.drawable.custombutton);
}
}
を作成し、私はアンドロイドが同様にエラーを訂正しないマニフェスト持っていますなぜ私のボタンが消えてしまったのか?