Revision 7cb8d4b0
Added by Leszek Koltunski about 2 years ago
src/main/java/org/distorted/bandaged/BandagedCreatorScreen.java | ||
---|---|---|
19 | 19 |
|
20 | 20 |
package org.distorted.bandaged; |
21 | 21 |
|
22 |
import android.graphics.Bitmap; |
|
22 | 23 |
import android.view.View; |
24 |
import android.widget.ImageView; |
|
23 | 25 |
import android.widget.LinearLayout; |
24 | 26 |
|
25 | 27 |
import org.distorted.helpers.TransparentImageButton; |
... | ... | |
139 | 141 |
mObjectView.addView(pane); |
140 | 142 |
mNumObjects++; |
141 | 143 |
} |
144 |
|
|
145 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
146 |
|
|
147 |
void iconCreationDone(Bitmap bmp) |
|
148 |
{ |
|
149 |
int numChildren = mObjectView.getChildCount(); |
|
150 |
LinearLayout pane = (LinearLayout)mObjectView.getChildAt(numChildren-1); |
|
151 |
ImageView view = pane.findViewById(R.id.bandagedCreatorObjectIcon); |
|
152 |
|
|
153 |
if( view!=null ) |
|
154 |
{ |
|
155 |
view.setImageBitmap(bmp); |
|
156 |
} |
|
157 |
else |
|
158 |
{ |
|
159 |
android.util.Log.e("D", "ImageView not found!"); |
|
160 |
} |
|
161 |
} |
|
142 | 162 |
} |
Also available in: Unified diff
Mode the 'iconMode' from static variable in ObjectControl to member varaible in TwistyObject (safer)