As it turns out, Eclipse is not always right. Ctrl+Shift+M made the wrong import. It had import android.view.ViewGroup.LayoutParams
when it should have import android.widget.TableRow.LayoutParams
Everything works fine now.
More Related Contents:
- How to send a JSON object over Request with Android?
- ClassNotFoundException after ADT update
- Remove all unused resources from an android project
- Should we use RecyclerView to replace ListView? [closed]
- How to handle cookies in httpUrlConnection using cookieManager
- Didn’t find class “com.google.firebase.provider.FirebaseInitProvider”?
- How to enable TLS 1.2 support in an Android application (running on Android 4.1 JB)
- Android ICS and MJPEG using AsyncTask
- Android: android.content.res.Resources$NotFoundException: String resource ID #0x5
- Adding OpenCV to Native C code through CMake on Android Studio
- Gradle version 2.2 is required. Current version is 2.10
- Why does AlertDialog.Builder(Context context) only accepts Activity as a parameter?
- Turn off device programmatically
- Intent – if activity is running, bring it to front, else start a new one (from notification)
- The ‘kotlin-android-extensions’ Gradle plugin is deprecated
- Threading Example in Android [closed]
- How to stop an animation (cancel() does not work)
- Get Cursor Position in Android in Edit Text?
- Passing touch events to the parent view
- How do I retrieve the data from AsyncTasks doInBackground()?
- How to click or tap on a TextView text on different words?
- Calling a Activity method from BroadcastReceiver in Android
- Play Youtube HTML5 embedded Video in Android WebView
- Passing a List to another Activity in Android
- GPS not update location after close and reopen app on android
- Cannot resolve symbol HttpGet,HttpClient,HttpResponce in Android Studio
- Android “Hello, MapView” Tutorial – Map Tiles Do Not Load
- Android MediaStore insertVideo
- Add an Image from url into custom InfoWindow google maps v2
- replace layout on orientation change