Új hozzászólás Aktív témák

  • WonderCSabo
    félisten

    Most ezzel a két sorral van baja:

    android:id="@+id/saveButton"

    és a

    android:text="save" />

    alsónál a "save" ra ha ráviszem az egeret ezt írja ki:

    [I18N] Hardcoded string "save", should use @string resource less... (⌘F1)
    Hardcoding text attributes directly in layout files is bad for several reasons: * When creating configuration variations (for example for landscape or portrait)you have to repeat the actual text (and keep it up to date when making changes) * The application cannot be translated to other languages by just adding new translations for existing string resources. In Android Studio and Eclipse there are quickfixes to automatically extract this hardcoded string into a resource lookup.

    Ennek megint csak figyelmeztetésnek, warning-nak kell lennie. Ettől még fordul az app. Egyébként le is írja, hogy mi a probléma, és mi a megoldás. Alt + Enter és felajánlja a javítást.

Új hozzászólás Aktív témák