powered by simpleCommunicator - 2.0.40     © 2025 Programmizd 02
Форумы / Android [игнор отключен] [закрыт для гостей] / Прокручиваемое боковое меню
2 сообщений из 2, страница 1 из 1
Прокручиваемое боковое меню
    #38848331
Елдос
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Хочу сделать прокручиваемое выдвигаемое боковое меню.
при использовании scrollView вылазит ошибка

java.lang.IllegalArgumentException: DrawerLayout must be measured with MeasureSpec.EXACTLY.


Код: xml
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
<ScrollView
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:id="@+id/scroll"
    android:orientation="vertical"
    xmlns:android="http://schemas.android.com/apk/res/android">
    <LinearLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        xmlns:app="http://schemas.android.com/apk/res-auto"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        tools:context="com.example.eldos.callreport.TabsTogetherDrawerLayout"
        android:orientation="vertical">

        <android.support.v4.widget.DrawerLayout
            android:id="@+id/drawer_layout"
            android:layout_width="match_parent"
            android:layout_height="match_parent"

            android:fitsSystemWindows="true">
            <!-- The main content view -->
            <LinearLayout
                android:id="@+id/content_frame1"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:orientation="vertical">
                <android.support.v7.widget.Toolbar
                    android:id="@+id/my_awesome_toolbar"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:minHeight="?attr/actionBarSize"
                    android:background="?colorPrimary"
                    app:popupTheme="@style/ThemeOverlay.AppCompat.Light"
                    />

                <FrameLayout
                    android:id="@+id/content_frame"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent">



                </FrameLayout>
            </LinearLayout>

   
        </android.support.v4.widget.DrawerLayout>
    </LinearLayout>


</ScrollView>



что у меня не правильно
...
Рейтинг: 0 / 0
Прокручиваемое боковое меню
    #38848464
Елдос
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Елдос,

проблема решена, я пытался закинуть и тулбар в скроллвью, а надо было только второй элемент drawerlayouta
...
Рейтинг: 0 / 0
2 сообщений из 2, страница 1 из 1
Форумы / Android [игнор отключен] [закрыт для гостей] / Прокручиваемое боковое меню
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]