Глюк в дизайне материалов Android

При использовании RectangleButton в этой библиотеке дизайна материалов andriod возникают проблемы: https://github.com/navasmdc/MaterialDesignLibrary когда я касаюсь кнопки и прокручиваю ее, оставляю что-то, что не будет работать, если вы не нажмете на изображение кнопки: http://imgur.com/sZHShFP

XML-код

<com.gc.materialdesign.views.ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:materialdesign="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:focusable="false"
android:focusableInTouchMode="false"
tools:context=".MainActivity$PlaceholderFragment">
<LinearLayout
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content">
    <view
        class="com.it.university.lbu.ecogallery.EcoGallery"
        android:layout_width="fill_parent"
        android:layout_height="140dp"
        android:id="@+id/gallery"
        android:scaleType="fitXY"
        android:visibility="visible"/>
    <LinearLayout
        android:orientation="vertical"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent">

        <LinearLayout
            android:orientation="horizontal"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:focusable="false">

            <view
                class="com.gc.materialdesign.views.ButtonRectangle"
                android:layout_width="fill_parent"
                android:layout_height="150dp"
                android:id="@+id/view"
                android:layout_weight="1"
                android:background="#ff5146ff"
                android:textSize="25dp"
                android:text="General&#10;   Blog"/>

            <view
                class="com.gc.materialdesign.views.ButtonRectangle"
                android:layout_width="fill_parent"
                android:layout_height="150dp"
                android:id="@+id/view2"
                android:layout_weight="1"
                android:textColor="@color/material_blue_grey_800"
                android:background="#ff67ce00"
                android:padding="0dp"
                android:textSize="25dp"
                android:text="Branch&#10;  Blog" />
        </LinearLayout>

        <LinearLayout
            android:orientation="horizontal"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content" >

            <view
                class="com.gc.materialdesign.views.ButtonRectangle"
                android:layout_width="fill_parent"
                android:layout_height="150dp"
                android:id="@+id/view3"
                android:layout_weight="1"
                android:background="#ff0aff00"
                android:padding="0dp"
                android:textColor="@color/material_blue_grey_800"
                android:textSize="25dp"
                android:text="Personal&#10;    Blog"  />

            <view
                class="com.gc.materialdesign.views.ButtonRectangle"
                android:layout_width="fill_parent"
                android:layout_height="150dp"
                android:id="@+id/view4"
                android:layout_weight="1"
                android:background="#ff007ad4"
                android:padding="0dp"
                android:textSize="25dp"
                android:text="My Friend"  />
        </LinearLayout>

        <LinearLayout
            android:orientation="horizontal"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content" >

            <view
                class="com.gc.materialdesign.views.ButtonRectangle"
                android:layout_width="fill_parent"
                android:layout_height="150dp"
                android:id="@+id/view5"
                android:layout_weight="1"
                android:background="#ffff0000"
                android:padding="0dp"
                android:textSize="25dp"
                android:text="My Teacher"  />

            <view
                class="com.gc.materialdesign.views.ButtonRectangle"
                android:layout_width="fill_parent"
                android:layout_height="150dp"
                android:id="@+id/view6"
                android:layout_weight="1"
                android:background="#ffc1ff00"
                android:padding="0dp"
                android:textSize="25dp"
                android:text="Last News"
                android:textColor="@color/material_blue_grey_800"
                />

        </LinearLayout>
    </LinearLayout>
</LinearLayout>


person Mouhamad Arafeh    schedule 10.01.2015    source источник


Ответы (1)


У меня есть 2 решения для вас!

Теперь, как вы можете видеть, эта библиотека сильно развита, и сейчас даже демонстрационный проект не обновляется до своей библиотеки.

Итак, вот что вы можете сделать:

  1. Используйте старую версию библиотеки, которая вам подходит. Обновляйте при обновлении демо-приложения.

  2. Подождите, пока все это закончится - все элементы управления будут работать. И никаких баг-репортов какое-то время.

Я написал разработчику по электронной почте о проблеме с прокруткой, но невозможно сказать, когда это будет исправлено, так как он еще не ответил.

.

ОБНОВЛЕНИЕ

Эта библиотека сильно разрабатывается — иногда она не работает, но будет :)

.

Я ответил на ваш вопрос?

person Inoy    schedule 15.01.2015
comment
спасибо, что очень помогли мне, но не знаете ли вы, где я могу найти старую библиотеку, пожалуйста. - person Mouhamad Arafeh; 16.01.2015
comment
@ user3556648 Обновленный ответ. Вот обсуждение - github.com/navasmdc/MaterialDesignLibrary/issues/103 - person Inoy; 16.01.2015