├── .idea ├── .name ├── copyright │ └── profiles_settings.xml ├── scopes │ └── scope_settings.xml ├── encodings.xml ├── vcs.xml ├── modules.xml ├── misc.xml ├── runConfigurations.xml ├── gradle.xml └── compiler.xml ├── app ├── .gitignore ├── app-release.apk ├── libs │ └── jsoup-1.8.2.jar ├── src │ ├── main │ │ ├── res │ │ │ ├── mipmap-hdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_stat_book_pictogram.png │ │ │ ├── mipmap-mdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_stat_book_pictogram.png │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_stat_book_pictogram.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_stat_book_pictogram.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── values │ │ │ │ ├── styles.xml │ │ │ │ ├── dimens.xml │ │ │ │ └── strings.xml │ │ │ ├── values-w820dp │ │ │ │ └── dimens.xml │ │ │ ├── layout │ │ │ │ ├── row_definition.xml │ │ │ │ ├── widget.xml │ │ │ │ ├── status_bar_layout.xml │ │ │ │ ├── activity_main.xml │ │ │ │ └── activity_meaning.xml │ │ │ ├── menu │ │ │ │ └── menu_main.xml │ │ │ ├── xml │ │ │ │ ├── global_tracker.xml │ │ │ │ └── preferences.xml │ │ │ ├── values-zh │ │ │ │ └── strings.xml │ │ │ ├── values-ko │ │ │ │ └── strings.xml │ │ │ ├── values-ja │ │ │ │ └── strings.xml │ │ │ ├── values-fi │ │ │ │ └── strings.xml │ │ │ ├── values-lt │ │ │ │ └── strings.xml │ │ │ ├── values-nb │ │ │ │ └── strings.xml │ │ │ ├── values-no │ │ │ │ └── strings.xml │ │ │ ├── values-sv │ │ │ │ └── strings.xml │ │ │ ├── values-pl │ │ │ │ └── strings.xml │ │ │ ├── values-nl │ │ │ │ └── strings.xml │ │ │ ├── values-ru │ │ │ │ └── strings.xml │ │ │ ├── values-de │ │ │ │ └── strings.xml │ │ │ ├── values-ca │ │ │ │ └── strings.xml │ │ │ ├── values-es │ │ │ │ └── strings.xml │ │ │ ├── values-fr │ │ │ │ └── strings.xml │ │ │ ├── values-it │ │ │ │ └── strings.xml │ │ │ ├── values-pt │ │ │ │ └── strings.xml │ │ │ ├── values-mg │ │ │ │ └── strings.xml │ │ │ └── values-en │ │ │ │ └── strings.xml │ │ ├── java │ │ │ └── live │ │ │ │ └── bar │ │ │ │ └── dictionary │ │ │ │ └── wiki │ │ │ │ └── dictionarybar │ │ │ │ ├── GoogleAnalytics │ │ │ │ ├── AnalyticsActions.java │ │ │ │ └── AnalyticsApplication.java │ │ │ │ ├── Settings.java │ │ │ │ ├── Util │ │ │ │ ├── NetworkUtil.java │ │ │ │ ├── WikitionaryHelper.java │ │ │ │ ├── ClipboardHelper.java │ │ │ │ ├── Parser.java │ │ │ │ ├── Internet.java │ │ │ │ ├── Util.java │ │ │ │ └── StatusBarHelper.java │ │ │ │ ├── Receiver │ │ │ │ ├── ClipboardMonitorStarter.java │ │ │ │ └── ClipboardMonitor.java │ │ │ │ ├── SettingsHolder.java │ │ │ │ ├── Adapter │ │ │ │ └── DefinitionAdapter.java │ │ │ │ ├── Objects │ │ │ │ └── Definition.java │ │ │ │ ├── Meaning.java │ │ │ │ └── MainActivity.java │ │ └── AndroidManifest.xml │ └── androidTest │ │ └── java │ │ └── live │ │ └── bar │ │ └── dictionary │ │ └── wiki │ │ └── dictionarybar │ │ └── ApplicationTest.java ├── proguard-rules.pro ├── build.gradle └── app.iml ├── settings.gradle ├── .gitignore ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradle.properties ├── DictionaryBar.iml ├── README.md ├── gradlew.bat ├── gradlew └── LICENSE /.idea/.name: -------------------------------------------------------------------------------- 1 | DictionaryBar -------------------------------------------------------------------------------- /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /app/app-release.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Victor-DS/Dictionary-for-Android/HEAD/app/app-release.apk -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .gradle 2 | /local.properties 3 | /.idea/workspace.xml 4 | /.idea/libraries 5 | .DS_Store 6 | /build 7 | -------------------------------------------------------------------------------- /app/libs/jsoup-1.8.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Victor-DS/Dictionary-for-Android/HEAD/app/libs/jsoup-1.8.2.jar -------------------------------------------------------------------------------- /.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Victor-DS/Dictionary-for-Android/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Victor-DS/Dictionary-for-Android/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Victor-DS/Dictionary-for-Android/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Victor-DS/Dictionary-for-Android/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Victor-DS/Dictionary-for-Android/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Victor-DS/Dictionary-for-Android/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_stat_book_pictogram.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Victor-DS/Dictionary-for-Android/HEAD/app/src/main/res/mipmap-hdpi/ic_stat_book_pictogram.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_stat_book_pictogram.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Victor-DS/Dictionary-for-Android/HEAD/app/src/main/res/mipmap-mdpi/ic_stat_book_pictogram.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_stat_book_pictogram.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Victor-DS/Dictionary-for-Android/HEAD/app/src/main/res/mipmap-xhdpi/ic_stat_book_pictogram.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_stat_book_pictogram.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Victor-DS/Dictionary-for-Android/HEAD/app/src/main/res/mipmap-xxhdpi/ic_stat_book_pictogram.png -------------------------------------------------------------------------------- /.idea/scopes/scope_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/java/live/bar/dictionary/wiki/dictionarybar/GoogleAnalytics/AnalyticsActions.java: -------------------------------------------------------------------------------- 1 | package live.bar.dictionary.wiki.dictionarybar.GoogleAnalytics; 2 | 3 | /** 4 | * Created by victor on 17/05/15. 5 | */ 6 | public class AnalyticsActions { 7 | } 8 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Wed Apr 10 15:27:10 PDT 2013 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip 7 | -------------------------------------------------------------------------------- /app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/androidTest/java/live/bar/dictionary/wiki/dictionarybar/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package live.bar.dictionary.wiki.dictionarybar; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /app/src/main/res/layout/row_definition.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 12 | 13 | -------------------------------------------------------------------------------- /app/src/main/java/live/bar/dictionary/wiki/dictionarybar/Settings.java: -------------------------------------------------------------------------------- 1 | package live.bar.dictionary.wiki.dictionarybar; 2 | 3 | import android.os.Bundle; 4 | import android.preference.PreferenceFragment; 5 | 6 | /** 7 | * Created by victor on 15/05/15. 8 | */ 9 | public class Settings extends PreferenceFragment { 10 | @Override 11 | public void onCreate(Bundle savedInstanceState) { 12 | super.onCreate(savedInstanceState); 13 | 14 | // Load the preferences from an XML resource 15 | addPreferencesFromResource(R.xml.preferences); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/res/menu/menu_main.xml: -------------------------------------------------------------------------------- 1 | 4 | 6 | 8 | 10 | 11 | -------------------------------------------------------------------------------- /.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 18 | 19 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /home/victor/Downloads/adt-bundle-linux-x86_64-20131030/sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 21 5 | buildToolsVersion "22.0.1" 6 | 7 | defaultConfig { 8 | applicationId "live.bar.dictionary.wiki.dictionarybar" 9 | minSdkVersion 16 10 | targetSdkVersion 21 11 | versionCode 3 12 | versionName "Circular Quay" 13 | } 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 18 | } 19 | } 20 | } 21 | 22 | dependencies { 23 | compile fileTree(dir: 'libs', include: ['*.jar']) 24 | compile 'com.android.support:appcompat-v7:22.0.0' 25 | compile 'com.google.android.gms:play-services-analytics:7.0.0' 26 | } 27 | -------------------------------------------------------------------------------- /app/src/main/java/live/bar/dictionary/wiki/dictionarybar/Util/NetworkUtil.java: -------------------------------------------------------------------------------- 1 | package live.bar.dictionary.wiki.dictionarybar.Util; 2 | 3 | import android.content.Context; 4 | import android.net.ConnectivityManager; 5 | 6 | /** 7 | * Created by victor on 18/05/15. 8 | */ 9 | public class NetworkUtil { 10 | 11 | public static boolean isUsingWifi(Context c) { 12 | return ((ConnectivityManager) c.getSystemService(Context.CONNECTIVITY_SERVICE)) 13 | .getNetworkInfo(ConnectivityManager.TYPE_WIFI).isConnected(); 14 | } 15 | 16 | public static boolean isUsingData(Context c) { 17 | return ((ConnectivityManager) c.getSystemService(Context.CONNECTIVITY_SERVICE)) 18 | .getNetworkInfo(ConnectivityManager.TYPE_MOBILE).isConnected(); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /app/src/main/res/xml/global_tracker.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 300 4 | 5 | 6 | true 7 | 8 | 9 | 10 | Home screen 11 | 12 | 13 | Settings 14 | 15 | 16 | List of definitions 17 | 18 | 19 | UA-38018123-19 20 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true -------------------------------------------------------------------------------- /DictionaryBar.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /app/src/main/res/layout/widget.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 15 | 16 | 19 |