Skip to content
Advertisement

Tag: android-studio

Cardview not displaying

I am trying to use com.google.android.material.card.MaterialCardView to display images and text. In the xml file it appears to be correct but when running the application, the card view is blank not even a text. Below are my xml file and grade file. The actual output I want also is shown in the picture (expected output) and the actual result is

Android Studio, generate Ormlite Configuration File (ormlite.txt), gradle complains “The JavaExec.main property has been deprecated.”

Ormlite is a library to do object-oriented access to sqlite. It requires that we generate an ormlite.txt file which contains the processed configuration of the database objects in my android project. In addition to my Android run configuration that will actually launch the Android app, I created an Application run configuration to just execute the main() method. This is how

Advertisement