Luciferangel Luciferangel - 20 days ago 6
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

Answer

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 https://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html). 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.