Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A AndroidSlidingUpPanel
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 267
    • Issues 267
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 34
    • Merge requests 34
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Umano: News Read To You
  • AndroidSlidingUpPanel
  • Issues
  • #623
Closed
Open
Issue created Dec 17, 2015 by Administrator@rootContributor

"Height must have an exact value or MATCH_PARENT" exeption in android 6 only

Created by: ghost

Hi I'm using this library in my project and it works fine in all android version from 4.1 to 5.1, but in android 6, when i set the layout_height of slidingUpPanel to a exact dimention like '160dp', it throw an exeption and say 'Height must have an exact value or MATCH_PARENT' , and when i set the height to match_parent it was okay.

this is my layout :

    <RelativeLayout
        android:id="@+id/scoreContainer"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentTop="true"
        android:background="@drawable/purple_shadow_background">


        <LinearLayout
            android:id="@+id/matchActivity_timer_progress_guess"
            android:layout_width="match_parent"
            android:layout_height="2dp"
            android:background="@color/app_green1"
            android:orientation="horizontal" />

        <RelativeLayout
            android:id="@+id/activity_userInfoContainer"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentLeft="true"
            android:layout_centerVertical="true"
            android:layout_marginBottom="@dimen/global_large_margin"
            android:layout_marginLeft="@dimen/global_small_margin">

            <ir.idek.drawandplay.ui.customui.PicHolder
                android:id="@+id/activity_userPic"
                android:layout_width="@dimen/match_userProfile_size"
                android:layout_height="@dimen/match_userProfile_size"
                android:layout_centerVertical="true" />

            <LinearLayout
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_centerVertical="true"
                android:layout_marginLeft="@dimen/global_small_margin"
                android:layout_toRightOf="@+id/activity_userPic"
                android:orientation="vertical">

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:ellipsize="end"
                    android:singleLine="true"
                    android:textColor="@color/app_white"
                    android:textSize="@dimen/global_small_txtSize" />

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:ellipsize="end"
                    android:singleLine="true"
                    android:textColor="@color/app_white_light"
                    android:textSize="9dp" />

            </LinearLayout>
        </RelativeLayout>

        <RelativeLayout
            android:id="@+id/activity_enemyInfoContainer"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentRight="true"
            android:layout_centerVertical="true"
            android:layout_marginBottom="@dimen/user_info_container_margin"
            android:layout_marginRight="@dimen/global_small_margin">

            <LinearLayout
                android:id="@+id/activity_enemyNameInfo"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_centerVertical="true"
                android:layout_marginRight="@dimen/global_small_margin"
                android:gravity="right"
                android:orientation="vertical">

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:ellipsize="end"
                    android:singleLine="true"
                    android:textColor="@color/app_white"
                    android:textSize="@dimen/global_small_txtSize" />

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:ellipsize="end"
                    android:singleLine="true"
                    android:textColor="@color/app_white_light"
                    android:textSize="9dp" />
            </LinearLayout>

            <ir.idek.drawandplay.ui.customui.PicHolder
                android:id="@+id/activity_enemyPic"
                android:layout_width="@dimen/match_userProfile_size"
                android:layout_height="@dimen/match_userProfile_size"
                android:layout_centerVertical="true"
                android:layout_toRightOf="@+id/activity_enemyNameInfo" />

        </RelativeLayout>

        <ir.idek.drawandplay.ui.customui.Timer
            android:id="@+id/matchActivity_timer"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerInParent="true"
            android:paddingTop="10dp" />


    </RelativeLayout>

    <!-- Drawing View -->
    <ir.idek.drawandplay.ui.customui.GuessView
        android:id="@+id/guess_view"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_below="@+id/scoreContainer"
        android:background="@android:color/white" />

    <!--guess slider layout-->
    <com.sothree.slidinguppanel.SlidingUpPanelLayout
        android:id="@+id/guessWordSlider"
        android:layout_width="match_parent"
        android:layout_height="162dp"
        android:gravity="bottom"
        sothree:dragView="@+id/dragView">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent" />

        <!--bottom fragment container-->
        <LinearLayout
            android:id="@+id/bottomBar"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:background="@drawable/match_footer_panel"
            android:gravity="center"
            android:orientation="vertical" />


    </com.sothree.slidinguppanel.SlidingUpPanelLayout>


</RelativeLayout>
Assignee
Assign to
Time tracking