[英]Where should i put IInAppBillingService.aidl file in Android Studio?
[英]Where Should I put the PNG file relate to ImageButton in Android?
我是Android的新手。
我創建了一個ImageButton。 main.xml包含以下代碼段。
<ImageButton
android:id="@+id/button1"
android:layout_width="50px"
android:layout_height="50px"
android:src="@drawable/cat"
android:layout_x="50px"
android:layout_y="52px"
>
我必須在哪里放置我擁有的“ cat.png”。 我是否需要將其重命名為其他名稱?
將其放在Android項目中的res/drawable/
文件夾中。 保留名稱cat.png
您只需將其放入任何一個文件夾即可,而無需為此更改xml。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.