title: How to set a default text to app widget when there is no data?
body: <p>I am using GridView in my app-widget. I want to set a default text to the app-widget when there is no data. I tried doing using getLoadingView() method but it's not working.</p>
  
  <p>getLoadingViewMethod() of WidgetViewsFactory.java:</p>
  
  <pre><code>@Override
  public RemoteViews getLoadingView() {
  
      Log.e("textview is displayed","true");
      RemoteViews row = new RemoteViews(mContext.getPackageName(), R.layout.widget_default_display);
      row.setTextViewText(R.id.txt_default_widget,"DEFAULT TEXT");
      return row;
  }    
  </code></pre>
  
  <p>widget_default_display.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:orientation="vertical"
  android:layout_width="match_parent"
  android:layout_height="180dp"&gt;
  
      &lt;TextView
          android:id="@+id/txt_default_widget"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:text="@string/no_notifications"
          android:textColor="@color/txt_sub_title_gray"
          android:textSize="@dimen/txt_title_size"/&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Please suggest me some solution.</p>