kandi background
Explore Kits

Android-RobotoTextView | indirect subclasses with native support | User Interface library

 by   johnkil Java Version: 4.0.0 License: Apache-2.0

 by   johnkil Java Version: 4.0.0 License: Apache-2.0

Download this library from

kandi X-RAY | Android-RobotoTextView Summary

Android-RobotoTextView is a Java library typically used in User Interface applications. Android-RobotoTextView has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has medium support. You can download it from GitHub, Maven.
Implementation of a [TextView][6] and all its direct/indirect subclasses with native support for the [Roboto][5] fonts, includes the brand new [Roboto Slab][3] and [Roboto Mono][4] fonts. <a href="http://play.google.com/store/apps/details?id=com.devspark.robototextview"> <img alt="Get it on Google Play" src="http://www.android.com/images/brand/get_it_on_play_logo_small.png" /> </a>.
Support
Support
Quality
Quality
Security
Security
License
License
Reuse
Reuse

kandi-support Support

  • Android-RobotoTextView has a medium active ecosystem.
  • It has 790 star(s) with 118 fork(s). There are 40 watchers for this library.
  • It had no major release in the last 12 months.
  • There are 2 open issues and 39 have been closed. On average issues are closed in 35 days. There are no pull requests.
  • It has a neutral sentiment in the developer community.
  • The latest version of Android-RobotoTextView is 4.0.0
This Library - Support
Best in #User Interface
Average in #User Interface
This Library - Support
Best in #User Interface
Average in #User Interface

quality kandi Quality

  • Android-RobotoTextView has 0 bugs and 0 code smells.
This Library - Quality
Best in #User Interface
Average in #User Interface
This Library - Quality
Best in #User Interface
Average in #User Interface

securitySecurity

  • Android-RobotoTextView has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
  • Android-RobotoTextView code analysis shows 0 unresolved vulnerabilities.
  • There are 0 security hotspots that need review.
This Library - Security
Best in #User Interface
Average in #User Interface
This Library - Security
Best in #User Interface
Average in #User Interface

license License

  • Android-RobotoTextView is licensed under the Apache-2.0 License. This license is Permissive.
  • Permissive licenses have the least restrictions, and you can use them in most projects.
This Library - License
Best in #User Interface
Average in #User Interface
This Library - License
Best in #User Interface
Average in #User Interface

buildReuse

  • Android-RobotoTextView releases are available to install and integrate.
  • Deployable package is available in Maven.
  • Build file is available. You can build the component from source.
  • Installation instructions are not available. Examples and code snippets are available.
  • It has 1994 lines of code, 90 functions and 29 files.
  • It has medium code complexity. Code complexity directly impacts maintainability of the code.
This Library - Reuse
Best in #User Interface
Average in #User Interface
This Library - Reuse
Best in #User Interface
Average in #User Interface
Top functions reviewed by kandi - BETA

kandi has reviewed Android-RobotoTextView and discovered the below as its top functions. This is intended to give you an instant insight into Android-RobotoTextView implemented functionality, and help decide if they suit your requirements.

  • Creates the typeface of a specific typeface .
    • Create a View from a tag .
      • Determines if the parent view should be inherited .
        • Converts a context to a context
          • On createView .
            • Obtains the typeface from a specific attributes .
              • Returns the theme resId for the theme .
                • Update the draw state .
                  • Attaches the activity to the activity view .
                    • Returns the typeface .

                      Get all kandi verified functions for this library.

                      Get all kandi verified functions for this library.

                      Android-RobotoTextView Key Features

                      [Roboto][1]

                      [Roboto Condensed][2]

                      [Roboto Slab][3]

                      [Roboto Mono][4]

                      Android-RobotoTextView Examples and Code Snippets

                      See all related Code Snippets

                      default

                      copy iconCopydownload iconDownload
                      This project is deprecated in favor of the [native implementation](https://developer.android.com/preview/features/fonts-in-xml.html) introduced in Android O.
                      
                      
                      Compatibility
                      -------------
                      
                      This library is compatible from API 14 (Android 4.0).
                      
                      
                      Download
                      --------
                      
                      Gradle:
                      
                      ```groovy
                      compile 'com.github.johnkil.android-robototextview:robototextview:4.0.0'
                      ```
                      
                      Maven:
                      
                      ```xml
                      &lt;dependency&gt;
                          &lt;groupId&gt;com.github.johnkil.android-robototextview&lt;/groupId&gt;
                          &lt;artifactId&gt;robototextview&lt;/artifactId&gt;
                          &lt;version&gt;4.0.0&lt;/version&gt;
                          &lt;type&gt;aar&lt;/type&gt;
                      &lt;/dependency&gt;
                      ```
                      
                      
                      Usage
                      -----
                      
                      #### In XML
                      
                      To set up a typeface you must specify the parameter `robotoTypeface`:
                      
                      ``` xml
                      &lt;com.devspark.robototextview.widget.RobotoTextView
                          xmlns:android="http://schemas.android.com/apk/res/android"
                          xmlns:app="http://schemas.android.com/apk/res-auto"
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          app:robotoTypeface="roboto_light_italic"/&gt;
                      ```
                      
                      or specify a set of parameters `robotoFontFamily`, `robotoTextWeight` and `robotoTextStyle`:
                      ``` xml
                      &lt;com.devspark.robototextview.widget.RobotoTextView
                          xmlns:android="http://schemas.android.com/apk/res/android"
                          xmlns:app="http://schemas.android.com/apk/res-auto"
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          app:robotoFontFamily="roboto"
                          app:robotoTextWeight="light"
                          app:robotoTextStyle="italic"/&gt;
                      ```
                      
                      Set up typeface in code:
                      
                      #### In Code
                      
                      Using parameter `typeface`:
                      ``` java
                      RobotoTextView textView = new RobotoTextView(context);
                      RobotoTypefaces.setUpTypeface(
                              textView,
                              RobotoTypefaces.TYPEFACE_ROBOTO_LIGHT_ITALIC);
                      ```
                      
                      Using parameters `fontFamily`, `textWeight` and `textStyle`:
                      ``` java
                      RobotoTextView textView = new RobotoTextView(context);
                      RobotoTypefaces.setUpTypeface(
                              textView,
                              RobotoTypefaces.FONT_FAMILY_ROBOTO,
                              RobotoTypefaces.TEXT_WEIGHT_LIGHT,
                              RobotoTypefaces.TEXT_STYLE_ITALIC);
                      ```
                      
                      #### With Span
                      
                      Using parameter `typeface`:
                      ``` java
                      RobotoTypefaceSpan span = new RobotoTypefaceSpan(
                              context,
                              RobotoTypefaces.TYPEFACE_ROBOTO_LIGHT_ITALIC);
                      Spannable spannable = new SpannableString("text");
                      spannable.setSpan(span, 0, 1, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
                      ```
                      
                      Using parameters `fontFamily`, `textWeight` and `textStyle`:
                      ``` java
                      RobotoTypefaceSpan span = new RobotoTypefaceSpan(
                              context,
                              RobotoTypefaces.FONT_FAMILY_ROBOTO,
                              RobotoTypefaces.TEXT_WEIGHT_LIGHT,
                              RobotoTypefaces.TEXT_STYLE_ITALIC);
                      Spannable spannable = new SpannableString("text");
                      spannable.setSpan(span, 0, 1, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
                      ```
                      
                      #### Roboto Inflater
                      
                      To apply roboto typeface for original TextView (like a [Calligraphy][7]) you must attach inflater in your `Activity` class in the `#onCreate()` method.
                      ```java
                      @Override
                      protected void onCreate(@Nullable Bundle savedInstanceState) {
                          RobotoInflater.attach(this);
                          super.onCreate(savedInstanceState);
                      }
                      ```
                      
                      and specify the typeface in xml:
                      ``` xml
                      &lt;TextView
                          xmlns:android="http://schemas.android.com/apk/res/android"
                          xmlns:app="http://schemas.android.com/apk/res-auto"
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          app:robotoTypeface="roboto_light_italic"
                          tools:ignore="MissingPrefix"/&gt;
                      ```
                      
                      _Note: Popular IDE's (Android Studio, IntelliJ) will likely mark this as an error despite being correct. You may want to add `tools:ignore="MissingPrefix"` to either the View itself or its parent ViewGroup to avoid this. You'll need to add the tools namespace to have access to this "ignore" attribute. `xmlns:tools="
                      http://schemas.android.com/tools"`. See https://code.google.com/p/android/issues/detail?id=65176._
                      
                      
                      Gradle
                      ------
                      
                      If you intend to use is not all fonts, the extra fonts can be removed.
                      
                      ```groovy
                      android.applicationVariants.all{ variant -&gt;
                          variant.mergeAssets.doLast {
                              File fonts = file("$variant.mergeAssets.outputDir/fonts")
                              if (fonts.exists()) {
                                  for (File file : fonts.listFiles()) {
                                      if (file.getName().contains("RobotoSlab")) {
                                          println("delete " + file.getName() + " font")
                                          file.delete()
                                      }
                                  }
                              }
                          }
                      }
                      ```
                      
                      
                      License
                      -------
                      
                          Copyright 2014 Evgeny Shishkin
                      
                          Licensed under the Apache License, Version 2.0 (the "License");
                          you may not use this file except in compliance with the License.
                          You may obtain a copy of the License at
                      
                             http://www.apache.org/licenses/LICENSE-2.0
                      
                          Unless required by applicable law or agreed to in writing, software
                          distributed under the License is distributed on an "AS IS" BASIS,
                          WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
                          See the License for the specific language governing permissions and
                          limitations under the License.
                      
                      
                      [1]: https://www.google.com/fonts/specimen/Roboto
                      [2]: https://www.google.com/fonts/specimen/Roboto+Condensed
                      [3]: https://www.google.com/fonts/specimen/Roboto+Slab
                      [4]: https://www.google.com/fonts/specimen/Roboto+Mono
                      [5]: http://www.google.com/design/spec/style/typography.html
                      [6]: http://developer.android.com/reference/android/widget/TextView.html
                      [7]: https://github.com/chrisjenx/Calligraphy
                      
                      [0]: https://github.com/google/roboto

                      Error while mopub integartion

                      copy iconCopydownload iconDownload
                      compile files('libs/mopub-volley-1.1.0.jar')
                      

                      See all related Code Snippets

                      Community Discussions

                      Trending Discussions on Android-RobotoTextView
                      • PlayStore -The following APKs or app bundles are available on 64-bit devices, but have only native 32-bit code: 1
                      • Error while mopub integartion
                      Trending Discussions on Android-RobotoTextView

                      QUESTION

                      PlayStore -The following APKs or app bundles are available on 64-bit devices, but have only native 32-bit code: 1

                      Asked 2019-Nov-11 at 12:46

                      I am updating one of our native Android apps and when I upload the apk( or bundle to play store i get the following message GooglePlay error message

                      i'am not using any native 3rd party library , also my apk dos not contain a lib folder

                      enter image description here

                      Here's my buid.gradle for reference

                        buildscript {
                       ...
                      
                          }
                      
                      
                      
                          android {
                              compileSdkVersion 29
                              buildToolsVersion "28.0.3"
                              defaultConfig {
                                  applicationId "xx.xxx.xxxxx"
                                  minSdkVersion 19
                                  targetSdkVersion 29
                                  versionCode 9
                                  versionName '1.3'
                                  multiDexEnabled true
                      
                              }
                      
                      
                      
                          dependencies {
                              implementation 'com.google.android.material:material:1.0.0'
                              implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
                              implementation 'com.google.android.gms:play-services-vision:19.0.0'
                              implementation 'com.google.firebase:firebase-analytics:17.2.1'
                              implementation 'com.google.android.gms:play-services-location:17.0.0'
                              implementation 'com.edwardvanraak:MaterialBarcodeScanner:0.0.6-ALPHA'
                      
                      
                              compile('it.sephiroth.android.library.horizontallistview:hlistview:1.2.2') {
                                  exclude group: 'com.android.support', module: 'support-v4'
                              }
                              implementation 'de.greenrobot:eventbus:2.4.0'
                              implementation 'com.mcxiaoke.volley:library:1.0.19'
                              // Google Play Services
                              compile('com.github.johnkil.android-robototextview:robototextview:4.0.0') {
                                  exclude group: 'com.android.support', module: 'appcompat-v7'
                      
                              }
                              compile('com.crashlytics.sdk.android:crashlytics:2.6.8@aar') {
                                  transitive = true
                              }
                      
                      
                              apply plugin: 'com.google.gms.google-services'
                      
                          }
                      

                      ANSWER

                      Answered 2019-Nov-11 at 12:46

                      the problem was not caused by any native dependency as my project did not have one.I resolved the issue by disabling older builds on GooglePlay which only supported 32bits architecture.

                      Source https://stackoverflow.com/questions/58800580

                      Community Discussions, Code Snippets contain sources that include Stack Exchange Network

                      Vulnerabilities

                      No vulnerabilities reported

                      Install Android-RobotoTextView

                      You can download it from GitHub, Maven.
                      You can use Android-RobotoTextView like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the Android-RobotoTextView component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .

                      Support

                      For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .

                      DOWNLOAD this Library from

                      Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
                      over 430 million Knowledge Items
                      Find more libraries
                      Reuse Solution Kits and Libraries Curated by Popular Use Cases
                      Explore Kits

                      Save this library and start creating your kit

                      Explore Related Topics

                      Share this Page

                      share link
                      Consider Popular User Interface Libraries
                      Try Top Libraries by johnkil
                      Compare User Interface Libraries with Highest Support
                      Compare User Interface Libraries with Highest Quality
                      Compare User Interface Libraries with Highest Security
                      Compare User Interface Libraries with Permissive License
                      Compare User Interface Libraries with Highest Reuse
                      Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
                      over 430 million Knowledge Items
                      Find more libraries
                      Reuse Solution Kits and Libraries Curated by Popular Use Cases
                      Explore Kits

                      Save this library and start creating your kit

                      • © 2022 Open Weaver Inc.