This repository was archived by the owner on Jul 27, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
asset-browser-ui/app/src/main
java/com/adobe/assetbrowserui Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 13
13
import android .view .MenuItem ;
14
14
import android .view .View ;
15
15
import android .widget .Button ;
16
+ import android .widget .ImageView ;
16
17
17
18
import com .adobe .creativesdk .foundation .auth .AdobeAuthException ;
18
19
import com .adobe .creativesdk .foundation .auth .AdobeAuthSessionHelper ;
35
36
public class MainActivity extends AppCompatActivity {
36
37
37
38
private Button mLaunchAssetBrowserButton ;
39
+ private ImageView mSelectedAssetImageView ;
38
40
39
41
private AdobeUXAuthManager mUXAuthManager = AdobeUXAuthManager .getSharedAuthManager ();
40
42
private AdobeAuthSessionHelper mAuthSessionHelper ;
@@ -50,6 +52,7 @@ protected void onCreate(Bundle savedInstanceState) {
50
52
mAuthSessionHelper .onCreate (savedInstanceState );
51
53
52
54
mLaunchAssetBrowserButton = (Button ) findViewById (R .id .launchAssetBrowserButton );
55
+ mSelectedAssetImageView = (ImageView ) findViewById (R .id .selectedAssetImageView );
53
56
54
57
View .OnClickListener mLaunchAssetBrowserButtonListener = new View .OnClickListener () {
55
58
@ Override
@@ -185,7 +188,7 @@ public void onProgress(double v) {
185
188
}
186
189
};
187
190
188
- /* 4) */
191
+ /* 4) */
189
192
AdobePhotoAsset photoAsset = ((AdobeSelectionPhotoAsset ) selection ).getSelectedItem ();
190
193
Map <String , AdobePhotoAssetRendition > renditionMap = photoAsset .getRenditions ();
191
194
photoAsset .downloadRendition (renditionMap .get (AdobePhotoAsset .AdobePhotoAssetRenditionImage2048 ), downloadCallBack );
Original file line number Diff line number Diff line change 19
19
android : id =" @+id/launchAssetBrowserButton"
20
20
android : layout_alignParentTop =" true"
21
21
android : layout_centerHorizontal =" true" />
22
+
23
+ <ImageView
24
+ android : layout_width =" wrap_content"
25
+ android : layout_height =" wrap_content"
26
+ android : id =" @+id/selectedAssetImageView"
27
+ android : layout_centerVertical =" true"
28
+ android : layout_centerHorizontal =" true" />
22
29
</RelativeLayout >
You can’t perform that action at this time.
0 commit comments