B
B
Bartar2016-07-23 12:30:25
Java
Bartar, 2016-07-23 12:30:25

Buttons on the toolbar are not installed? What could be the reason?

There is no activity name in tollbare and no menu button, just "naked"

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
Bartar, 2016-07-23
@Bartar

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
   android:background="@color/colorAccent">
    <include android:id= "@+id/toolbar"
        layout="@layout/toolbar" />
</LinearLayout>

and here is the tulba
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/toolbar"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="@color/colorPrimary"
     />

G
GavriKos, 2016-07-23
@GavriKos

xml-activities in the studio.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question