Comments (2)
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.
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)
- I can't change fab button alignment to left HOT 3
- wrap_content support HOT 1
- Had you find the wrong shadow of fab HOT 5
- Add check SDK version HOT 2
- Unable to listen to fab click HOT 2
- animation breaks after switching orientation HOT 1
- Why to limit it to API 16 when you can make for earlier APIs? HOT 1
- Performance issues due to ToolbarLayout HOT 7
- How to match the Snackbar? HOT 4
- Cant set anchor in coordinate layout
- Anchor property not working for the layout HOT 1
- Hide fab if Show it HOT 1
- Examples please
- Toolbar should hide when scroll down and visible when scroll up HOT 1
- The icon of the fab is shown as background for the toolbar.
- Start showing toolbar instead Float Button
- Ripple effect disappear when onClick added in the XML for ImageView
- BUG: issues FAB that morphs into android.support.v7.widget.Toolbar HOT 1
- hide() does not bring floating action button is not at same place HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fabtoolbar.