0
我想在Android中將日曆圖標顯示爲按鈕。我創建了一個圖像按鈕,將日曆圖像應用於圖像按鈕
ImageButton DtPk = new ImageButton(this);
我知道,圖像將作爲設定,
Drawable d = Drawable.createFromPath("@drawable/calendar");
DtPk.setBackgroundDrawable(d);
但我在哪裏可以儲存的圖像在我的項目呢?如何。
雅它工作正常!謝謝。 – posteritysystem 2012-07-15 06:47:08
@posteritysystem請接受答案:http://meta.stackexchange.com/questions/5234/how-does-accepting-an-answer-work :) – 2012-07-15 06:52:14