Code Monkey home page Code Monkey logo

Comments (2)

fafaldo-zz avatar fafaldo-zz commented on July 18, 2024

Hello, can you post full view hierarchy of your activity? I would like to be able to reproduce your problem and debug it locally if possible

from fabtoolbar.

askarsyzdykov avatar askarsyzdykov commented on July 18, 2024

Hello, tnx for response

activity_main.xml

<android.support.design.widget.CoordinatorLayout
    android:id="@+id/main_content"
    xmlns:ads="http://schemas.android.com/apk/res-auto"
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:fitsSystemWindows="true"
    tools:context=".activities.MainActivity"
    >
<android.support.design.widget.AppBarLayout
    android:id="@+id/appbar"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:paddingTop="@dimen/appbar_padding_top"
    android:theme="@style/AppTheme.AppBarOverlay"
    >

    <android.support.v7.widget.Toolbar
        android:id="@+id/toolbar"
        android:layout_width="match_parent"
        android:layout_height="?attr/actionBarSize"
        android:background="?attr/colorPrimary"
        app:popupTheme="@style/AppTheme.PopupOverlay"
        >

    </android.support.v7.widget.Toolbar>

    <android.support.design.widget.TabLayout
        android:id="@+id/sliding_tabs"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        />

</android.support.design.widget.AppBarLayout>

<android.support.v4.view.ViewPager
    android:id="@+id/pager"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_above="@+id/adView"
    app:layout_behavior="@string/appbar_scrolling_view_behavior"
    />

</android.support.design.widget.CoordinatorLayout>

tab layout:

<com.github.fafaldo.fabtoolbar.widget.FABToolbarLayout
android:id="@+id/fabtoolbar"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:bottomMargin="36dp"
app:fadeInFraction="0.2"
app:hideDuration="200"
app:rightMargin="16dp"
app:showDuration="600"
tools:context="kz.sozdik.fragments.TranslateFragment"
>

<RelativeLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    >

    <include
        android:id="@+id/llButtons"
        layout="@layout/kazakh_letters"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        />

    <FrameLayout
        android:id="@+id/view_main"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_above="@+id/llButtons"
        >

        <ListView
            android:id="@+id/list_suggests"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            />

        <WebView
            android:id="@+id/web_view"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:scrollbars="vertical"
            />

        <TextView
            android:id="@+id/view_suggestion"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:drawableBottom="@drawable/ic_search_gray"
            android:gravity="center"
            android:text="@string/start_search_now"
            android:textColor="#494949"
            android:textSize="16sp"
            />

    </FrameLayout>
</RelativeLayout>

<LinearLayout
    android:id="@+id/fabtoolbar_toolbar"
    android:layout_width="match_parent"
    android:layout_height="70dp"
    android:layout_alignParentBottom="true"
    android:background="@color/colorPrimary"
    android:orientation="horizontal"
    >

    <ImageButton
        android:id="@+id/btn_copy_to_clipboard"
        style="@style/ButtonFloatingToolbar"
        android:layout_width="0dp"
        android:layout_height="match_parent"
        android:layout_weight="1"
        android:src="@drawable/ic_content_copy"
        />

    <ImageButton
        android:id="@+id/btn_play_sound"
        style="@style/ButtonFloatingToolbar"
        android:layout_width="0dp"
        android:layout_height="match_parent"
        android:layout_weight="1"
        android:src="@drawable/ic_play_arrow"
        />

    <ImageButton
        android:id="@+id/btn_add_to_favorite"
        style="@style/ButtonFloatingToolbar"
        android:layout_width="0dp"
        android:layout_height="match_parent"
        android:layout_weight="1"
        android:src="@drawable/ic_star_border_white"
        />

    <ImageButton
        android:id="@+id/btn_share"
        style="@style/ButtonFloatingToolbar"
        android:layout_width="0dp"
        android:layout_height="match_parent"
        android:layout_weight="1"
        android:src="@drawable/ic_share"
        />

</LinearLayout>

<com.github.fafaldo.fabtoolbar.widget.FABContainer
    android:id="@+id/fabtoolbar_container"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_alignParentBottom="true"
    android:layout_alignParentRight="true"
    >

    <android.support.design.widget.FloatingActionButton
        android:id="@+id/fabtoolbar_fab"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:elevation="6dp"
        android:src="@drawable/ic_share"
        app:backgroundTint="@color/colorPrimary"
        app:elevation="6dp"
        app:fabSize="normal"
        />

</com.github.fafaldo.fabtoolbar.widget.FABContainer>

</com.github.fafaldo.fabtoolbar.widget.FABToolbarLayout>

from fabtoolbar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.