与蓝牙配​​对时替换应用中的图像资源

时间:2015-08-04 10:02:20

标签: android android-layout qualifiers

我有两组可绘制的图像(比如drawabl1和drawable2)。我的要求是,当手机与任何其他设备连接blutooth时,我的应用程序应重新启动并使用drawale2中的图像,否则默认为drawable1。我能够得到蓝牙连接的确认,但我不知道如何让应用程序在与其他设备配对时使用另一个drawble图像。

0 个答案:

没有答案