The upper part of my layout is not displayed when I launch the application on the phone, and in the studio everything is well displayed. I'm talking about the one where the name of the application. Here is the class code;

public class FileManager extends Activity { ListView listDirs; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_file_manager); String [] paths = {"/storage/emulated/0/", "/storage/extSdCard/"}; listDirs = (ListView) findViewById(R.id.list); ArrayAdapter<String> adapter = new ArrayAdapter<>(this, R.layout.file_list, paths); listDirs.setAdapter(adapter); } } 

first_image

enter image description here

  • 2
    Preview studio should not be trusted - it almost always shows wrong. Most likely you have a problem in styles - show them - Yuriy SPb ♦
  • How? What other styles - Nick
  • You can show by adding code to a question through editing it. Styles are in res / values ​​/ styles.xml file - JuriySPb ♦

0