Android studio Title bar

0

Witam!,
mam pytanie, przerabiam kurs z YT, kurs hest od 0 i na razie mam takie coś:

0

Przepraszam za double post, odruchowo dusiłem enter i się wysłało : |

 import android.support.v7.app.AppCompatActivity;

public class MainActivity extends AppCompatActivity{
}
 <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical">

    <TextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_margin="20dp"
        android:gravity="center"
        android:text="Witaj Świecie!"
        android:textSize="30sp" />

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <ImageView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@drawable/ic_car" />

        <TextView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:layout_marginLeft="20dp"
            android:text="Samochód"
            android:textSize="20sp" />

    </LinearLayout>

    <Button
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="OK" />

</LinearLayout>

problem polega na tym że ma title Bar w podglądzie, którego nie chcę mieć, czy jest jakiś prosty sposób na usnięcie go z poziomu XML, tak aby na podglądzie go nie było ?

Z góry dziękuję za pomoc : )

0

Zrobione,
w stylach trzeba podmienić na "Theme.AppCompat.Light.NoActionBar"

Do zamknięcia : D

1 użytkowników online, w tym zalogowanych: 0, gości: 1