title: How can i achieve/make a listView on camera screen?
body: <p>I already made a list view, on the camera, but its invisible, maybe because it needs a background to appear. I want to make the listView visible on the camera screen because it contains filters.
  <a href="https://i.stack.imgur.com/QCRL6.jpg" rel="nofollow noreferrer">it looks like this now:
  The listView is invisible, but there because when you click the area the filters work.</a></p>
  <p><a href="https://i.stack.imgur.com/PuXPY.jpg" rel="nofollow noreferrer">I want it to look like this: I want the list view visible on camera.
  </a></p>
  <p>I hope i explained well, if not please ask.</p>
  <p>Here is the adapter:</p>
  <pre><code>import android.annotation.SuppressLint;
  import android.content.Context;
  import android.view.LayoutInflater;
  import android.view.View;
  import android.view.ViewGroup;
  import android.view.Window;
  import android.widget.ArrayAdapter;
  import android.widget.TextView;
  
  import androidx.annotation.NonNull;
  
  import com.anisacoding.expriment.R;
  
  import java.util.List;
  public class FilterAdapter extends ArrayAdapter&lt;FilterType&gt; {
  
      static class ViewHolder {
          public TextView text;
      }
      private final Context context;
      private final List&lt;FilterType&gt; values;
      private boolean isWhite = false;
      public FilterAdapter(Context context, int resource, List&lt;FilterType&gt; objects) {
          super(context, resource, objects);
          this.context = context;
          values = objects;
      }
      @SuppressLint(&quot;InflateParams&quot;)
      @NonNull
      @Override
      public View getView(int position, View convertView, @NonNull ViewGroup parent) {
          View rowView = convertView;
          // reuse views
          if (rowView == null) {
              LayoutInflater inflater = (LayoutInflater) context
                      .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
  
              if (isWhite) {
                  rowView = inflater.inflate(R.layout.row_white_text, null);
              } else {
                  rowView = inflater.inflate(R.layout.row_text, null);
              }
  
  
              // configure view holder
              ViewHolder viewHolder = new ViewHolder();
              viewHolder.text = rowView.findViewById(R.id.label);
              rowView.setTag(viewHolder);
          }
          ViewHolder holder = (ViewHolder) rowView.getTag();
          String s = values.get(position).name();
          holder.text.setText(s);
          return rowView;
      }
  
      public FilterAdapter whiteMode() {
          isWhite = true;
          return this;
      }
      
  
  }
  </code></pre>
  <p><a href="https://i.stack.imgur.com/E9VjQ.jpg" rel="nofollow noreferrer"></a>This is text of the list view layout:</p>
  
  <pre><code>&lt;TextView xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      android:id=&quot;@+id/label&quot;
      style=&quot;@style/ServiceTextShadow&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;?android:attr/listPreferredItemHeight&quot;
      android:gravity=&quot;center_vertical&quot;
      android:padding=&quot;12dp&quot;
      android:textColor=&quot;@android:color/white&quot;
      android:textAppearance=&quot;?android:attr/textAppearanceListItem&quot;
      android:textSize=&quot;15sp&quot; &gt;
  &lt;/TextView&gt;
  </code></pre>
  <p>This is the layout:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;androidx.constraintlayout.widget.ConstraintLayout
      xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;
      xmlns:tools=&quot;http://schemas.android.com/tools&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;match_parent&quot;
      android:background=&quot;@android:color/black&quot;
      android:keepScreenOn=&quot;true&quot;&gt;
  
  
      &lt;ListView
          android:id=&quot;@+id/filter_list&quot;
          android:layout_width=&quot;129dp&quot;
          android:layout_height=&quot;717dp&quot;
          app:layout_constraintBottom_toBottomOf=&quot;parent&quot;
          app:layout_constraintEnd_toStartOf=&quot;@+id/btn_record&quot;
          app:layout_constraintStart_toStartOf=&quot;parent&quot;
          app:layout_constraintTop_toTopOf=&quot;parent&quot; &gt;
  
      &lt;/ListView&gt;
  
  
  
  
      &lt;com.anisacoding.expriment.VideoEditorFolder.widget.PortraitFrameLayout
          android:id=&quot;@+id/wrap_view&quot;
          android:layout_width=&quot;0dp&quot;
          android:layout_height=&quot;0dp&quot;
          app:layout_constraintBottom_toBottomOf=&quot;parent&quot;
          app:layout_constraintEnd_toEndOf=&quot;parent&quot;
          app:layout_constraintHorizontal_bias=&quot;0.0&quot;
          app:layout_constraintStart_toStartOf=&quot;parent&quot;
          app:layout_constraintTop_toTopOf=&quot;parent&quot;
          app:layout_constraintVertical_bias=&quot;1.0&quot;&gt;
  
  
      &lt;/com.anisacoding.expriment.VideoEditorFolder.widget.PortraitFrameLayout&gt;
  
      &lt;ImageView
          android:id=&quot;@+id/btn_record&quot;
          android:layout_width=&quot;100dp&quot;
          android:layout_height=&quot;100dp&quot;
          android:contentDescription=&quot;@string/record_Video&quot;
          android:text=&quot;@string/app_record&quot;
          app:layout_constraintBottom_toBottomOf=&quot;parent&quot;
          app:layout_constraintEnd_toEndOf=&quot;parent&quot;
          app:layout_constraintHorizontal_bias=&quot;0.454&quot;
          app:layout_constraintStart_toStartOf=&quot;parent&quot;
          app:layout_constraintTop_toTopOf=&quot;parent&quot;
          app:layout_constraintVertical_bias=&quot;0.926&quot;
          app:srcCompat=&quot;@drawable/ic_btn_record&quot; /&gt;
  
      &lt;ImageView
          android:id=&quot;@+id/btn_switch_camera&quot;
          android:layout_width=&quot;71dp&quot;
          android:layout_height=&quot;47dp&quot;
          android:text=&quot;@string/SWITCH&quot;
          app:layout_constraintBottom_toBottomOf=&quot;parent&quot;
          app:layout_constraintEnd_toEndOf=&quot;parent&quot;
          app:layout_constraintHorizontal_bias=&quot;0.91&quot;
          app:layout_constraintStart_toStartOf=&quot;parent&quot;
          app:layout_constraintTop_toTopOf=&quot;parent&quot;
          app:layout_constraintVertical_bias=&quot;0.052&quot;
          app:srcCompat=&quot;@drawable/ic_switch&quot;
          android:contentDescription=&quot;@string/SWITCH&quot; /&gt;
  
      &lt;ImageView
          android:id=&quot;@+id/btn_flash&quot;
          android:layout_width=&quot;51dp&quot;
          android:layout_height=&quot;40dp&quot;
          android:contentDescription=&quot;@string/flash&quot;
          android:text=&quot;@string/flash&quot;
          app:layout_constraintBottom_toBottomOf=&quot;parent&quot;
          app:layout_constraintEnd_toEndOf=&quot;parent&quot;
          app:layout_constraintHorizontal_bias=&quot;0.95&quot;
          app:layout_constraintStart_toStartOf=&quot;parent&quot;
          app:layout_constraintTop_toTopOf=&quot;parent&quot;
          app:layout_constraintVertical_bias=&quot;0.2&quot;
          app:srcCompat=&quot;@drawable/ic_flash&quot; /&gt;
  
      &lt;ImageView
          android:id=&quot;@+id/pause_video&quot;
          android:layout_width=&quot;90dp&quot;
          android:layout_height=&quot;54dp&quot;
          android:contentDescription=&quot;@string/record_Video&quot;
          android:text=&quot;@string/pause&quot;
          android:visibility=&quot;gone&quot;
          app:layout_constraintBottom_toBottomOf=&quot;parent&quot;
          app:layout_constraintEnd_toEndOf=&quot;parent&quot;
          app:layout_constraintHorizontal_bias=&quot;0.454&quot;
          app:layout_constraintStart_toStartOf=&quot;parent&quot;
          app:layout_constraintTop_toTopOf=&quot;parent&quot;
          app:layout_constraintVertical_bias=&quot;0.926&quot;
          android:color=&quot;#FF0000&quot;
          app:srcCompat=&quot;@drawable/ic_stop&quot; /&gt;
  
      &lt;ImageView
          android:id=&quot;@+id/music_library&quot;
          android:layout_width=&quot;52dp&quot;
          android:layout_height=&quot;47dp&quot;
          android:contentDescription=&quot;@string/library_music&quot;
          app:layout_constraintBottom_toBottomOf=&quot;parent&quot;
          app:layout_constraintEnd_toEndOf=&quot;parent&quot;
          app:layout_constraintHorizontal_bias=&quot;0.45&quot;
          app:layout_constraintLeft_toLeftOf=&quot;@+id/btn_record&quot;
          app:layout_constraintStart_toStartOf=&quot;@+id/guideline18&quot;
          app:layout_constraintTop_toTopOf=&quot;parent&quot;
          app:layout_constraintVertical_bias=&quot;0.926&quot;
          app:srcCompat=&quot;@drawable/ic_music_golibrary&quot; /&gt;
  
      &lt;androidx.constraintlayout.widget.Guideline
          android:id=&quot;@+id/guideline18&quot;
          android:layout_width=&quot;wrap_content&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:orientation=&quot;vertical&quot;
          app:layout_constraintGuide_percent=&quot;0.7347932&quot; /&gt;
  
  
      &lt;TextView
          android:id=&quot;@+id/timer2&quot;
          android:layout_width=&quot;53dp&quot;
          android:layout_height=&quot;43dp&quot;
          android:layout_marginStart=&quot;25dp&quot;
          android:layout_marginTop=&quot;25dp&quot;
          android:text=&quot;@string/_2_m&quot;
          android:textStyle=&quot;bold&quot;
          android:textSize=&quot;20sp&quot;
          android:textColor=&quot;#Ff0000&quot;
          app:layout_constraintEnd_toEndOf=&quot;parent&quot;
          app:layout_constraintStart_toStartOf=&quot;@+id/guideline18&quot;
          app:layout_constraintTop_toBottomOf=&quot;@+id/btn_flash&quot; /&gt;
  
  
  &lt;/androidx.constraintlayout.widget.ConstraintLayout&gt;
  </code></pre>