I am starting to create an application in Android Studio and I can not show the buttons or elements in the image preview.
I attach captures and current code.
CODE xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
>
<Button
android:id="@+id/btnagregar"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@mipmap/add"/>
<ListView
android:id="@+id/lvlista"
android:layout_width="match_parent"
android:layout_height="match_parent"></ListView>
</LinearLayout>
As mentioned previously, nothing is shown in the preview on the right.
I hope you can help me, I remain attentive to your comments.
TECHNICAL INFORMATION:
- Nexus 5 Team
- API 28
- Android Studio Version 3.1.4