-
-
Notifications
You must be signed in to change notification settings - Fork 323
ParseImageView
sjmn edited this page Apr 19, 2018
·
2 revisions
ParseImageView
is a android UI widget which allows you to load image stored in ParseFile
easily.
-
Import and config Parse as described in README.md.
-
Add
ParseImageView
to your app's layout xml file, for example<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" <com.parse.ParseImageView android:id="@+id/parse_image_view" android:layout_width="wrap_content" android:layout_height="wrap_content"/> </LinearLayout>
-
In your app's activity, inflate
ParseImageView
, get theParseFile
which stores the image file and load the image.ParseFile parseFile = parseObject.getParseFile("image"); ParseImageView parseImageView = (ParseImageView)findViewById(R.id.parse_image_view); parseImageView.setParseFile(parseFile); parseImageView.loadInBackground();
For complete details about this library project, please see our documentation on the Parse website.