Skip to content
Window image viewer [DEPRECATED]
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
gradle/wrapper
library
resources add gif Jun 2, 2017
.gitignore Initial commit May 31, 2017
LICENSE Initial commit May 31, 2017
README.md Update README.md May 31, 2017
build.gradle
circle.yml circle.yml update May 31, 2017
gradle.properties Initial commit May 31, 2017
gradlew Initial commit May 31, 2017
gradlew.bat
settings.gradle Initial commit May 31, 2017

README.md

Wiv

CircleCI API

Library of Tweet-ui TweetMediaView component.

Usage

MediaView mediaView;
ArrayList<String> medias;

//medias.add("http://datalook.io/app/uploads/NY.jpg");
mediaView.setOnMediaClickListener(new MediaView.OnMediaClickListener() {
    @Override
    public void onMediaClick(View view, int index) {
        Snackbar.make(view, "onClickIndex :" + index, Snackbar.LENGTH_LONG).show();
    }
});
mediaView.setMedias(medias);
<com.ihsanbal.wiv.AspectRatioLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_marginTop="?attr/actionBarSize"
        app:aspect_ratio="1"
        app:dimension_to_adjust="height">

        <com.ihsanbal.wiv.MediaView
            android:id="@+id/media.view"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_margin="14dp"
            app:background_color="@android:color/white"
            app:corner_radii="15dp"
            app:divider_size="2dp" />

</com.ihsanbal.wiv.AspectRatioLayout>

Download

Gradle:

allprojects {
	repositories {
		...
		maven { url 'https://jitpack.io' }
	}
}

dependencies {
	compile 'com.github.ihsanbal:Wiv:1.0.0'
}

Maven:

<repository>
   <id>jitpack.io</id>
   <url>https://jitpack.io</url>
</repository>

<dependency>
   <groupId>com.github.ihsanbal</groupId>
   <artifactId>Wiv</artifactId>
   <version>1.0.0</version>
</dependency>

Screenshots

You can’t perform that action at this time.