├── app ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── mipmap-hdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── values │ │ │ │ ├── strings.xml │ │ │ │ ├── colors.xml │ │ │ │ ├── dimens.xml │ │ │ │ └── styles.xml │ │ │ ├── values-v21 │ │ │ │ └── styles.xml │ │ │ ├── values-w820dp │ │ │ │ └── dimens.xml │ │ │ ├── menu │ │ │ │ └── menu_main.xml │ │ │ ├── raw │ │ │ │ └── content.json │ │ │ └── layout │ │ │ │ ├── content_main.xml │ │ │ │ └── activity_main.xml │ │ ├── assets │ │ │ └── fonts │ │ │ │ ├── freight_text_pro.ttf │ │ │ │ ├── freight-sans-pro_normal_500.ttf │ │ │ │ ├── freight-sans-pro_normal_700.ttf │ │ │ │ ├── freight-text-pro_400_italic.ttf │ │ │ │ ├── freight-text-pro_700_italic.ttf │ │ │ │ ├── freight-text-pro_normal_400.ttf │ │ │ │ ├── freight-text-pro_normal_700.ttf │ │ │ │ ├── jaf-bernino-sans_normal_300.ttf │ │ │ │ ├── jaf-bernino-sans_normal_400.ttf │ │ │ │ └── jaf-bernino-sans_normal_700.ttf │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── io │ │ │ └── github │ │ │ └── angebagui │ │ │ └── mediumtextviewapp │ │ │ ├── Content.java │ │ │ └── MainActivity.java │ ├── test │ │ └── java │ │ │ └── io │ │ │ └── github │ │ │ └── angebagui │ │ │ └── mediumtextview │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── io │ │ └── github │ │ └── angebagui │ │ └── mediumtextviewapp │ │ └── ExampleInstrumentedTest.java ├── proguard-rules.pro └── build.gradle ├── mediumtextview ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── values │ │ │ │ └── strings.xml │ │ │ └── drawable │ │ │ │ └── image_placeholder_error.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── io │ │ │ └── github │ │ │ └── angebagui │ │ │ └── mediumtextview │ │ │ ├── HeaderView.java │ │ │ ├── BlockquoteView.java │ │ │ ├── ElementView.java │ │ │ ├── DivView.java │ │ │ ├── MediumTextView.java │ │ │ ├── ImageView.java │ │ │ ├── IFrameView.java │ │ │ ├── ParagraphView.java │ │ │ └── util │ │ │ ├── JsoupUtils.java │ │ │ └── Utils.java │ ├── test │ │ └── java │ │ │ └── io │ │ │ └── github │ │ │ └── angebagui │ │ │ └── mediumtextview │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── io │ │ └── github │ │ └── angebagui │ │ └── mediumtextview │ │ └── ExampleInstrumentedTest.java ├── proguard-rules.pro └── build.gradle ├── settings.gradle ├── .idea ├── copyright │ └── profiles_settings.xml ├── encodings.xml ├── vcs.xml ├── modules.xml ├── runConfigurations.xml ├── compiler.xml ├── gradle.xml └── misc.xml ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── screenshot ├── Screenshot_2016-08-14-19-59-32.png └── Screenshot_2016-08-14-19-59-48.png ├── .gitignore ├── gradle.properties ├── README.md ├── gradlew.bat └── gradlew /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /mediumtextview/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app', ':mediumtextview' 2 | -------------------------------------------------------------------------------- /.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/medium-textview/master/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /mediumtextview/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | MediumTextView 3 | 4 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/medium-textview/master/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/medium-textview/master/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/medium-textview/master/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /screenshot/Screenshot_2016-08-14-19-59-32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/medium-textview/master/screenshot/Screenshot_2016-08-14-19-59-32.png -------------------------------------------------------------------------------- /screenshot/Screenshot_2016-08-14-19-59-48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/medium-textview/master/screenshot/Screenshot_2016-08-14-19-59-48.png -------------------------------------------------------------------------------- /app/src/main/assets/fonts/freight_text_pro.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/medium-textview/master/app/src/main/assets/fonts/freight_text_pro.ttf -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/medium-textview/master/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/medium-textview/master/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | .externalNativeBuild 10 | -------------------------------------------------------------------------------- /app/src/main/assets/fonts/freight-sans-pro_normal_500.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/medium-textview/master/app/src/main/assets/fonts/freight-sans-pro_normal_500.ttf -------------------------------------------------------------------------------- /app/src/main/assets/fonts/freight-sans-pro_normal_700.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/medium-textview/master/app/src/main/assets/fonts/freight-sans-pro_normal_700.ttf -------------------------------------------------------------------------------- /app/src/main/assets/fonts/freight-text-pro_400_italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/medium-textview/master/app/src/main/assets/fonts/freight-text-pro_400_italic.ttf -------------------------------------------------------------------------------- /app/src/main/assets/fonts/freight-text-pro_700_italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/medium-textview/master/app/src/main/assets/fonts/freight-text-pro_700_italic.ttf -------------------------------------------------------------------------------- /app/src/main/assets/fonts/freight-text-pro_normal_400.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/medium-textview/master/app/src/main/assets/fonts/freight-text-pro_normal_400.ttf -------------------------------------------------------------------------------- /app/src/main/assets/fonts/freight-text-pro_normal_700.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/medium-textview/master/app/src/main/assets/fonts/freight-text-pro_normal_700.ttf -------------------------------------------------------------------------------- /app/src/main/assets/fonts/jaf-bernino-sans_normal_300.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/medium-textview/master/app/src/main/assets/fonts/jaf-bernino-sans_normal_300.ttf -------------------------------------------------------------------------------- /app/src/main/assets/fonts/jaf-bernino-sans_normal_400.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/medium-textview/master/app/src/main/assets/fonts/jaf-bernino-sans_normal_400.ttf -------------------------------------------------------------------------------- /app/src/main/assets/fonts/jaf-bernino-sans_normal_700.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/medium-textview/master/app/src/main/assets/fonts/jaf-bernino-sans_normal_700.ttf -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | MediumTextView Library 3 | Settings 4 | 5 | -------------------------------------------------------------------------------- /.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | 7 | -------------------------------------------------------------------------------- /mediumtextview/src/main/res/drawable/image_placeholder_error.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Sat Aug 06 10:31:41 GMT 2016 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.14.1-all.zip 7 | -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 16dp 6 | 7 | -------------------------------------------------------------------------------- /mediumtextview/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/values-v21/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/menu/menu_main.xml: -------------------------------------------------------------------------------- 1 | 5 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/test/java/io/github/angebagui/mediumtextview/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package io.github.angebagui.mediumtextview; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() throws Exception { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /mediumtextview/src/test/java/io/github/angebagui/mediumtextview/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package io.github.angebagui.mediumtextview; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() throws Exception { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/raw/content.json: -------------------------------------------------------------------------------- 1 | { 2 | "content" : "

Une nouvelle vue differente de Webview et inspiré de l'application android de Medium

\n

Imaginez vous pouvez avec une seule vue afficher le content d'un article avec pour contenu en Html fourni par un CMS comme wordpress(du texte, des images, des videos etc) dans votre application Android

\n

" 3 | } -------------------------------------------------------------------------------- /.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /mediumtextview/src/main/java/io/github/angebagui/mediumtextview/HeaderView.java: -------------------------------------------------------------------------------- 1 | package io.github.angebagui.mediumtextview; 2 | 3 | import android.content.Context; 4 | import android.util.AttributeSet; 5 | 6 | import org.jsoup.nodes.Element; 7 | 8 | /** 9 | * Created by angebagui on 06/08/2016. 10 | */ 11 | 12 | public class HeaderView extends ElementView{ 13 | public HeaderView(Context context, Element element) { 14 | super(context, element); 15 | } 16 | 17 | public HeaderView(Context context, AttributeSet attrs, Element element) { 18 | super(context, attrs, element); 19 | } 20 | 21 | @Override 22 | public void render() { 23 | 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /mediumtextview/src/main/java/io/github/angebagui/mediumtextview/BlockquoteView.java: -------------------------------------------------------------------------------- 1 | package io.github.angebagui.mediumtextview; 2 | 3 | import android.content.Context; 4 | import android.util.AttributeSet; 5 | 6 | import org.jsoup.nodes.Element; 7 | 8 | /** 9 | * Created by angebagui on 06/08/2016. 10 | */ 11 | 12 | public class BlockquoteView extends ElementView{ 13 | 14 | 15 | public BlockquoteView(Context context, Element element) { 16 | super(context, element); 17 | } 18 | 19 | public BlockquoteView(Context context, AttributeSet attrs, Element element) { 20 | super(context, attrs, element); 21 | } 22 | 23 | @Override 24 | public void render() { 25 | 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /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 /Users/angebagui/Library/Android/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 | -------------------------------------------------------------------------------- /mediumtextview/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 /Users/angebagui/Library/Android/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 | -------------------------------------------------------------------------------- /.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /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 | org.gradle.jvmargs=-Xmx1536m 13 | 14 | # When configured, Gradle will run in incubating parallel mode. 15 | # This option should only be used with decoupled projects. More details, visit 16 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 17 | # org.gradle.parallel=true 18 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 15 | 16 |