JWorld@TW the best professional Java site in Taiwan
      註冊 | 登入 | 全文檢索 | 排行榜  

» JWorld@TW » Java ME、Google Android 平台與 JavaCard 討論區 » Android  

按列印兼容模式列印這個話題 列印話題    把這個話題寄給朋友 寄給朋友    訂閱主題
reply to topicthreaded modego to previous topicgo to next topic
本主題所含的標籤
作者 接收圖片的陣列
GEX268





發文: 8
積分: 0
於 2017-11-06 13:12 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
我在書上看到說,如果要接收圖片的話
就用一個陣列,如下:
1
2
3
4
int[] imgId={R.drawable.img01,R.drawable.img02,R.drawable.img03,
            R.drawable.img04,R.drawable.img05,R.drawable.img06};
 


那如果說我要從 drawable 接收的照片數量不固定,隨時都有可能更動的話
那我要怎麼宣告那個陣列?


reply to postreply to post
作者 Re:接收圖片的陣列 [Re:GEX268]
bangayegg





發文: 64
積分: 0
於 2017-11-07 00:35 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
如果不確定大小可用 ArrayList

reply to postreply to post
作者 Re:接收圖片的陣列 [Re:GEX268]
Alinalin





發文: 1
積分: 0
於 2018-10-12 12:20 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
我也有一樣的問題,最近在寫自己的網站,希望有大大能幫忙!

-----------
From Alina Lin
1on1-全球家教共享平台的瑜伽老師


reply to postreply to post
作者 Re:接收圖片的陣列 [Re:GEX268]
qrtt1





發文: 1748
積分: 31
於 2018-10-14 02:37 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
看起來是一樣的問題

https://stackoverflow.com/questions/3221603/retrieving-all-drawable-resources-from-resources-object


reply to postreply to post
蝸牛角上爭何事?石火光中寄此身,隨富隨貧且歡樂,不開口笑是癡人。
my notes
» JWorld@TW »  Java ME、Google Android 平台與 JavaCard 討論區 » Android

reply to topicthreaded modego to previous topicgo to next topic
  已讀文章
  新的文章
  被刪除的文章
Jump to the top of page

JWorld@TW 本站商標資訊

Powered by Powerful JuteForum® Version Jute 1.5.8