2015-05-14 26 views
0

我有這樣的下面的代碼:變化的ImageView動態地從IndoorAtlas

public void futureResult() 
{ 
    FutureResult<FloorPlan> result = mIndoorAtlas.fetchFloorPlan(mFloorPlanId); 
    result.setCallback(new ResultCallback<FloorPlan>() { 
     @Override 
     public void onResult(final FloorPlan result) { 
      mFloorplan = result; 
      loadFloorPlanImage(result); 
     } 

這:

public void loadFloorPlanImage(FloorPlan floorPlan) { 
    BitmapFactory.Options options = createBitmapOptions(floorPlan); 
    final FutureResult<Bitmap> result = mIndoorAtlas.fetchFloorPlanImage(floorPlan, options); 
    result.setCallback(new ResultCallback<Bitmap>() { 
     @Override 
     public void onResult(final Bitmap result) { 
      //updateImageViewInUIThread(result) <-------this is where im getting confused 
     } 

我有一組圖像問題的ImageView與indooratlas的一個實例。

任何人都可以幫到我嗎?

+0

你能解釋一下* imageview中'setimage'的問題是什麼? –

+0

即時通訊使用indooratlas sdk。我想要的是直接從indooratlas服務器加載平面圖,並將其顯示到我的用戶界面中。在'updateimageinuithread' –

+0

你有沒有實現一個名爲'updateImageViewInUIThread'的方法?我們即將對IndoorAtlas產品進行評估,並且我很好奇你是否能夠正常工作,以及您對SDK易於使用/與我們自己的POI數據點(辦公室/會議室位置)整合的想法。 – wottle

回答

0

同樣,你的問題是關於泛型ImageView的使用,圖像的來源與它沒有多大關係。你在上一個問題中檢查了我鏈接的教程嗎?它有一個關於使用ImageView的部分:http://developer.android.com/training/displaying-bitmaps/display-bitmap.html

+0

對不起,我只是一個初學者在Android的東西。這就是爲什麼我很難理解。你能告訴我代碼如何直接從indooratlas加載平面圖並動態顯示到UI中嗎?同時在當前位置顯示藍點。我的問題是。 –