Luciferangel Luciferangel - 4 months ago 32
Android Question

Why is there a dash across my variables

I am really new to android so pardon me. Why is there a strike-through

for example (fill_parent)

in some android variables and not others


The strikeout shows deprecated methods or attributes (assuming you are using Android Studio / IntelliJ). In your case FILL_PARENT (LayoutParams?) is deprecated for a really long time (API Level 8). It is now called MATCH_PARENT (see Hovering the variable should show you a tooltip with more information on the deprecation and when it was deprecated. Just make sure you don't use those deprecated elements.