Git Product home page Git Product logo

typekit's People

Contributors

tsengvn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

typekit's Issues

Should be empty application tag and no need for app_name

Firstly, thanks for a very convenient library.

We've started evaluating the typekit on one of our product and encountered a conflict:

Error:Execution failed for task ':ourapp:processOurAppBetaManifest'.
> Manifest merger failed : Attribute application@label value=(@string/config_app_name) from (unknown)
    is also present at com.tsengvn:Typekit:1.0.0:13:9 value=(@string/app_name)
    Suggestion: add 'tools:replace="android:label"' to <application> element at AndroidManifest.xml:31:5 to override

Our app has a config_app_name defining app name and this conflicts with the same key defined at the typekit library. While a solution can be to rename config_app_name into app_name as suggested above, I wonder if an alternative is to empty the app tag in AndroidManifest file and no longer use the app_name in the typekit codebase?

We also have library projects and each of them all has an empty app tag like:

<manifest package="com.us.android.ourapp">

    <application />

</manifest>

Allow referring to custom fonts by arbitrary name

Hi, firstly thanks for creating this library, I really like it!

I would like to propose an enhancement for custom fonts, so that they can be referenced with proper names instead of "custom1" etc. The new API could look like this (overloads Typekit#addCustom1(Typeface typeface)):

Typekit.getInstance()
        .addCustom1(Typekit.createFromAsset(this, "fonts/MyCustomFont.ttf"), "my-custom-font");

Then, in XML:

<TextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="Some text"
    app:font="my-custom-font"
    />

gradle에 라이브러리 추가하면 에러가 뜹니다

Information:Gradle tasks [:app:generateDebugSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies, :app:generateDebugAndroidTestSources]
C:\Users\seungyeop\AndroidStudioProjects\InitialQuiz_1\app\build\intermediates\data-binding-layout-out\debug\values\values.xml
Error:(426) Attribute "font" already defined with incompatible format.
Error:(302) Original attribute defined here.
Error:(426) Attribute "font" already defined with incompatible format.
Error:(302) Original attribute defined here.
Error:Execution failed for task ':app:processDebugResources'.

com.android.ide.common.process.ProcessException: Failed to execute aapt
Information:BUILD FAILED
Information:Total time: 1.717 secs
Information:5 errors
Information:0 warnings
Information:See complete output in console

다음과 같은 에러가 뜨는데 혹시 해결방법을 알 수 있을까요?

Binary XML file line #8: Error inflating class fragment

I use google map in my service.
my xml code have google map fragment code like this

    <fragment
        android:id="@+id/map_map"
        class="com.google.android.gms.maps.SupportMapFragment"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />

sometime I got error like this.

Fatal Exception: android.view.InflateException
Binary XML file line #8: Error inflating class fragment


Fatal Exception: android.view.InflateException: Binary XML file line #8: Error inflating class fragment
       at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:697)
       at android.view.LayoutInflater.rInflate(LayoutInflater.java:739)
       at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
       at com.tsengvn.typekit.TypekitLayoutInflater.inflate(TypekitLayoutInflater.java:76)

How can I check or fix my code?
Is this bug?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.