Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

当头部布局出现一个不固定高度的ImageView 时,高度不对, #49

Open
tulongchao opened this issue Nov 26, 2017 · 0 comments

Comments

@tulongchao
Copy link

<com.gxz.library.StickyNavLayout
    android:id="@+id/id_stick"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    stick:isStickNav="false">

    <LinearLayout
        android:id="@+id/id_stickynavlayout_topview"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="#fee"
        android:orientation="vertical">
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:id="@+id/child_view"
            android:orientation="vertical">
            <ImageView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:id="@+id/image"/>

            <TextView
                android:layout_width="match_parent"
                android:layout_height="100dp"
                android:background="@color/colorPrimary"
                android:textAllCaps="true"
                android:text="111"
                android:textSize="30sp" />
        </LinearLayout>

    </LinearLayout>

    <!--     <com.astuetz.PagerSlidingTabStrip
             android:id="@+id/id_stickynavlayout_indicator"
             android:layout_width="match_parent"
             android:layout_height="48dip"
             pst:pstsIndicatorColor="#2b5cb1"
             pst:pstsIndicatorHeight="3dp"
             pst:pstsTextAllCaps="true"
             pst:pstsUnderlineColor="#2b5cb1" />-->

    <com.gxz.PagerSlidingTabStrip
        android:id="@+id/id_stickynavlayout_indicator"
        android:layout_width="match_parent"
        android:layout_height="48dp"
        android:textSize="16sp"
        pst:pstsTextAllCaps="false"
        pst:pstsDividerColor="@color/colorPrimary"
        pst:pstsIndicatorColor="@color/colorPrimary"
        pst:pstsIndicatorHeight="5dp"
        pst:pstsScaleZoomMax="0"
        pst:pstsShouldExpand="false"
        pst:pstsTextSelectedColor="#303F9F"
        pst:pstsUnderlineColor="@color/colorPrimary" />

    <android.support.v4.view.ViewPager
        android:id="@+id/id_stickynavlayout_viewpager"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />

</com.gxz.library.StickyNavLayout>

<android.support.design.widget.FloatingActionButton
    android:id="@+id/fab"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignParentBottom="true"
    android:layout_alignParentRight="true"
    android:layout_margin="16dp"
    android:src="@android:drawable/ic_dialog_email" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant