Monday, 3 May 2021

EditText is not showing in the preview screen

I have a strange problem with my android studio IDE. Whenever I'm taking the EditText, its preview is not showing in the preview screen of android studio. I tried with different layouts but it doesn't work. And the problem is only with my laptop it's running completely fine on my friend's laptop. I tried literally everything like changing the color, uninstalling the whole android studio but nothing works.

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity">

    <EditText
        android:layout_marginLeft="20dp"
        android:layout_marginRight="20dp"
        android:layout_marginTop="30dp"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:hint="Enter name"
        android:textColor="@color/black"
        android:textColorHint="@color/black"
        android:textSize="30dp" />
</LinearLayout>

EditText Preview Image



from EditText is not showing in the preview screen

No comments:

Post a Comment