Load feature graphic (currently large icon)
This commit is contained in:
		
							parent
							
								
									30bcad963e
								
							
						
					
					
						commit
						f3e88535f9
					
				| @ -113,6 +113,18 @@ public class AppDetails2 extends AppCompatActivity implements ShareChooserDialog | ||||
|         lm.setStackFromEnd(false); | ||||
|         mRecyclerView.setLayoutManager(lm); | ||||
|         mRecyclerView.setAdapter(mAdapter); | ||||
| 
 | ||||
|         // Load the feature graphic, if present | ||||
|         if (!TextUtils.isEmpty(mApp.iconUrlLarge)) { | ||||
|             ImageView ivFeatureGraphic = (ImageView) findViewById(R.id.feature_graphic); | ||||
|             DisplayImageOptions displayImageOptions = new DisplayImageOptions.Builder() | ||||
|                     .cacheInMemory(false) | ||||
|                     .cacheOnDisk(true) | ||||
|                     .imageScaleType(ImageScaleType.NONE) | ||||
|                     .bitmapConfig(Bitmap.Config.RGB_565) | ||||
|                     .build(); | ||||
|             ImageLoader.getInstance().displayImage(mApp.iconUrlLarge, ivFeatureGraphic, displayImageOptions); | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|     private String getPackageNameFromIntent(Intent intent) { | ||||
|  | ||||
| @ -26,7 +26,7 @@ | ||||
|             app:layout_scrollFlags="scroll|exitUntilCollapsed"> | ||||
| 
 | ||||
|             <ImageView | ||||
|                 android:id="@+id/backdrop" | ||||
|                 android:id="@+id/feature_graphic" | ||||
|                 android:layout_width="match_parent" | ||||
|                 android:layout_height="match_parent" | ||||
|                 android:scaleType="centerCrop" | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 mvp76
						mvp76