Skip to content
sjmn edited this page Apr 19, 2018 · 2 revisions

Overview

ParseImageView is a android UI widget which allows you to load image stored in ParseFile easily.

Usage

  1. Import and config Parse as described in README.md.

  2. 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>
  3. In your app's activity, inflate ParseImageView, get the ParseFile 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();

Documentation

For complete details about this library project, please see our documentation on the Parse website.

Clone this wiki locally