Repository: ihsanbal/Wiv Branch: master Commit: 52c119c81393 Files: 31 Total size: 40.0 KB Directory structure: gitextract_4_q_5bw6/ ├── .gitignore ├── LICENSE ├── README.md ├── app/ │ ├── .gitignore │ ├── build.gradle │ ├── proguard-rules.pro │ └── src/ │ └── main/ │ ├── AndroidManifest.xml │ ├── java/ │ │ └── ihsanbal/ │ │ └── com/ │ │ └── wiv/ │ │ └── MainActivity.java │ └── res/ │ ├── layout/ │ │ └── activity_main.xml │ ├── menu/ │ │ └── menu_main.xml │ └── values/ │ ├── colors.xml │ ├── dimens.xml │ ├── strings.xml │ └── styles.xml ├── build.gradle ├── circle.yml ├── gradle/ │ └── wrapper/ │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradle.properties ├── gradlew ├── gradlew.bat ├── library/ │ ├── .gitignore │ ├── build.gradle │ ├── proguard-rules.pro │ └── src/ │ └── main/ │ ├── AndroidManifest.xml │ ├── java/ │ │ └── com/ │ │ └── ihsanbal/ │ │ └── wiv/ │ │ ├── AspectRatioLayout.java │ │ ├── MediaView.java │ │ └── OverlayImageView.java │ └── res/ │ └── values/ │ ├── attrs.xml │ └── strings.xml └── settings.gradle ================================================ FILE CONTENTS ================================================ ================================================ FILE: .gitignore ================================================ *.iml .gradle /local.properties .DS_Store /captures .externalNativeBuild !gradle-wrapper.jar # Generated files bin/ gen/ out/ # Gradle files build/ # Local configuration file (sdk path, etc) /.idea/ ================================================ FILE: LICENSE ================================================ MIT License Copyright (c) 2017 ihsan BAL Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================ FILE: README.md ================================================ Wiv -------- [![CircleCI](https://circleci.com/gh/ihsanbal/Wiv/tree/master.svg?style=svg)](https://circleci.com/gh/ihsanbal/Wiv/tree/master) ![API](https://img.shields.io/badge/API-16%2B-brightgreen.svg?style=square) Library of [Tweet-ui](https://docs.fabric.io/android/twitter/tweet-ui.html) TweetMediaView component.

Usage -------- ```java MediaView mediaView; ArrayList 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); ``` ```xml ``` Download -------- Gradle: ```groovy allprojects { repositories { ... maven { url 'https://jitpack.io' } } } dependencies { compile 'com.github.ihsanbal:Wiv:1.0.0' } ``` Maven: ```xml jitpack.io https://jitpack.io com.github.ihsanbal Wiv 1.0.0 ``` Screenshots --------

================================================ FILE: app/.gitignore ================================================ /build ================================================ FILE: app/build.gradle ================================================ apply plugin: 'com.android.application' android { compileSdkVersion 25 //noinspection GradleDependency buildToolsVersion "25.0.1" defaultConfig { applicationId "ihsanbal.com.wiv" minSdkVersion 16 targetSdkVersion 25 versionCode 1 versionName "1.0.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.android.support', module: 'support-annotations' }) compile 'com.android.support:appcompat-v7:25.3.1' compile 'com.android.support:design:25.3.1' // compile project(':library') compile 'com.github.ihsanbal:Wiv:1.0.0' testCompile 'junit:junit:4.12' } ================================================ FILE: app/proguard-rules.pro ================================================ # Add project specific ProGuard rules here. # By default, the flags in this file are appended to flags specified # in /Users/ihsan/Library/Android/sdk/tools/proguard/proguard-android.txt # You can edit the include path and order by changing the proguardFiles # directive in build.gradle. # # For more details, see # http://developer.android.com/guide/developing/tools/proguard.html # Add any project specific keep options here: # If your project uses WebView with JS, uncomment the following # and specify the fully qualified class name to the JavaScript interface # class: #-keepclassmembers class fqcn.of.javascript.interface.for.webview { # public *; #} # Uncomment this to preserve the line number information for # debugging stack traces. #-keepattributes SourceFile,LineNumberTable # If you keep the line number information, uncomment this to # hide the original source file name. #-renamesourcefileattribute SourceFile ================================================ FILE: app/src/main/AndroidManifest.xml ================================================ ================================================ FILE: app/src/main/java/ihsanbal/com/wiv/MainActivity.java ================================================ package ihsanbal.com.wiv; import android.os.Bundle; import android.support.design.widget.FloatingActionButton; import android.support.design.widget.Snackbar; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; import android.view.View; import com.ihsanbal.wiv.MediaView; import java.util.ArrayList; public class MainActivity extends AppCompatActivity { private ArrayList medias = new ArrayList<>(); @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); setSupportActionBar(toolbar); MediaView mediaView = (MediaView) findViewById(R.id.media_view); FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab); fab.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { } }); medias.add("http://datalook.io/app/uploads/NY.jpg"); medias.add("https://wallpaperbrowse.com/media/images/High-Definition-Ultra-HD-Wallpaper.jpg"); medias.add("https://static.pexels.com/photos/17679/pexels-photo.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); } } ================================================ FILE: app/src/main/res/layout/activity_main.xml ================================================ ================================================ FILE: app/src/main/res/menu/menu_main.xml ================================================ ================================================ FILE: app/src/main/res/values/colors.xml ================================================ #3F51B5 #303F9F #FF4081 ================================================ FILE: app/src/main/res/values/dimens.xml ================================================ 16dp ================================================ FILE: app/src/main/res/values/strings.xml ================================================ Wiv Settings ================================================ FILE: app/src/main/res/values/styles.xml ================================================