Comments (5)
are you kiding us...
from scrollable.
if use
<style name="AppTheme.Base" parent="Theme.AppCompat">
it can work ,but i do not want use like that, i use
<style name="AppTheme.Base" parent="Theme.AppCompat.Light.NoActionBar">
but it does not work well
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:psts="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ru.noties.scrollable.ScrollableLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:psts="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:id="@+id/scrollable_layout"
app:scrollable_maxScroll="@dimen/user_profile_cover">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/layout_profile_header"
android:layout_width="match_parent"
android:layout_height="@dimen/user_profile_cover"
>
<ImageView
android:id="@+id/imageView_user_profile_cover"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@+id/textView_user_screenname"
android:scaleType="centerCrop"
android:src="@color/primary"
/>
<include
android:id="@+id/imageView_portrait"
android:layout_width="@dimen/avatar_large_size"
android:layout_height="@dimen/avatar_large_size"
android:layout_centerHorizontal="true"
android:layout_marginTop="88dp"
layout="@layout/layout_avatar"
/>
<TextView
android:id="@+id/textView_userverified_reason"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/imageView_portrait"
android:layout_centerHorizontal="true"
android:layout_marginTop="@dimen/spacing_normal"
android:layout_marginLeft="40dp"
android:layout_marginRight="@dimen/spacing_huge"
android:layout_marginBottom="@dimen/spacing_small"
android:textSize="16sp"
android:singleLine="true"
android:marqueeRepeatLimit="marquee_forever"
android:ellipsize="marquee"
style="@style/TextViewBody1"
tools:text="马薇薇不算是昵马薇薇不马薇薇不算是昵马薇薇不马薇薇不算是昵马薇薇不马薇薇不算是昵马薇薇薇不算是昵马薇薇不马薇薇不算是昵马薇薇不马薇薇不算是昵马薇不算是昵马薇薇不马薇薇不算是昵马薇薇不马薇薇不算是昵马薇薇薇不算是昵马薇薇不马薇薇不算是昵马薇薇不马薇薇不算是昵马薇薇薇不算是昵马薇薇不马薇薇不算是昵马薇薇不马薇薇不算是昵马薇薇薇不算是昵马薇薇不马薇薇不算是昵马薇薇不马薇薇不算是昵马薇薇薇不算是昵马薇薇不马薇薇不算是昵马薇薇不马薇薇不算是昵马薇薇薇不算是昵马薇薇不马薇薇不算是昵马薇薇不马薇薇不算是昵马薇薇薇不算是昵马薇薇不马薇薇不算是昵马薇薇不马薇薇不算是昵马薇薇薇不算是昵马薇薇不马薇薇不算是昵马薇薇不马薇薇不算是昵马薇薇薇薇不"
/>
<TextView
android:id="@+id/textView_user_screenname"
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:paddingLeft="@dimen/spacing_large"
android:paddingRight="@dimen/spacing_large"
android:singleLine="true"
android:ellipsize="marquee"
android:gravity="center_vertical"
style="@style/TextViewSubhead"
android:textSize="18sp"
android:textColor="@color/white"
tools:text="马薇薇不算是昵称吧马薇薇不算"
android:background="@color/white"
/>
</RelativeLayout>
<com.astuetz.PagerSlidingTabStrip
android:id="@+id/tabs"
android:layout_below="@id/toolbar"
android:layout_width="match_parent"
android:layout_height="@dimen/tab_strip_height"
android:background="@color/white"
psts:pstsShouldExpand="true"
psts:pstsIndicatorColor="@color/white"
android:textColor="@color/white"
psts:pstsTextColorSelected="@color/white"
/>
<ImageView
android:id="@+id/fab_button"
android:layout_width="@dimen/fab_size"
android:layout_height="@dimen/fab_size"
android:layout_marginTop="-116dp"
android:background="@drawable/fab_button_teal"
android:elevation="@dimen/elevation_normal"
android:scaleType="centerInside"
android:visibility="visible"
android:layout_gravity="right"
android:layout_marginRight="@dimen/spacing_normal"
/>
</LinearLayout>
<android.support.v4.view.ViewPager
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="@dimen/tab_strip_height"
android:id="@+id/view_pager"/>
</ru.noties.scrollable.ScrollableLayout>
<android.support.v7.widget.Toolbar
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/fab_material_deep_purple_900"
/>
</FrameLayout>
from scrollable.
Hi!
The reason is behind the theme you are using Theme.AppCompat.Light.NoActionBar
. It obviously states that theme does not have an action bar (aka toolbar). Why won't you use simple Theme.AppCompat.Light
?
from scrollable.
Plus,
include Toobar into your header (it's the @+id/layout_profile_header
ViewGroup) and implement your sticky behavior in ScrollableLayout.setOnScrollChangedListener()
. Please refer to the sample app for the concrete implementation.
from scrollable.
ping
Is your problem solved?
from scrollable.
Related Issues (20)
- View Pager not taking the complete height even on using "match parent" HOT 1
- Not able to get all library views HOT 1
- HeaderView Issue HOT 5
- when Scrolling the page,the headerview can scroll also HOT 1
- What should I do if there are ups and drop refresh ui in viewpager? HOT 1
- dependencies problem HOT 1
- nested two page bug HOT 1
- How to use FragmentStatePager Adapter HOT 1
- ScrollHeader is not smoothly HOT 2
- dude HOT 2
- Change viewpager item size dynamically with listview scroll HOT 5
- Header reappears on top when returning to fragment that has been scrolled down. HOT 8
- Long press slide up RecycleView item before headview scoll up HOT 2
- Scrollable tab scrolls under title bar HOT 1
- add RecyclerView on the head, slide very slowly, there is inertia slow sliding HOT 1
- bottom part of the fragment in the viewpager is clipped or cut of how to fix this HOT 6
- when topView height is changed , tabLayout below will be covered HOT 5
- not use SwipeBackLayoutTouTiao HOT 4
- Cannot collapsed header view programmatically HOT 2
- scrollable scrollview in fragment not scrolled
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 scrollable.