Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有两个班,A和B。A extends Dialog和B extends ArrayAdapter。我在B. 我想把它弄进去A。有什么可能的方法吗?
A
B
A extends Dialog
B extends ArrayAdapter
这回答了你的问题了吗?
double value = (double) adapterB.getItem(position); dialogA.setMessage("Value from adapter: "+value);