{"action":"closed","issue":{"url":"https://api.github.com/repos/AAkira/ExpandableLayout/issues/88","repository_url":"https://api.github.com/repos/AAkira/ExpandableLayout","labels_url":"https://api.github.com/repos/AAkira/ExpandableLayout/issues/88/labels{/name}","comments_url":"https://api.github.com/repos/AAkira/ExpandableLayout/issues/88/comments","events_url":"https://api.github.com/repos/AAkira/ExpandableLayout/issues/88/events","html_url":"https://github.com/AAkira/ExpandableLayout/issues/88","id":172439491,"number":88,"title":"ExpandableLayout not expanding fully","user":{"login":"suku-h","id":17564687,"avatar_url":"https://avatars.githubusercontent.com/u/17564687?v=3","gravatar_id":"","url":"https://api.github.com/users/suku-h","html_url":"https://github.com/suku-h","followers_url":"https://api.github.com/users/suku-h/followers","following_url":"https://api.github.com/users/suku-h/following{/other_user}","gists_url":"https://api.github.com/users/suku-h/gists{/gist_id}","starred_url":"https://api.github.com/users/suku-h/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suku-h/subscriptions","organizations_url":"https://api.github.com/users/suku-h/orgs","repos_url":"https://api.github.com/users/suku-h/repos","events_url":"https://api.github.com/users/suku-h/events{/privacy}","received_events_url":"https://api.github.com/users/suku-h/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-22T12:25:10Z","updated_at":"2016-11-13T06:53:21Z","closed_at":"2016-11-13T06:53:21Z","body":"I have an animation inside the expandable layout. Once the animation is complete, it stays that size and pushes the textview (also in the expandable layout below). All this works fine, but the textview is not completely displayed. You can notice the top of the line of text (that is not displayed properly) in the image \n\n![expandablelayout](https://cloud.githubusercontent.com/assets/17564687/17854551/2aa540b8-6891-11e6-9618-3be4600afd7e.PNG)\n\nHere is the code. I have used the method used in readmoreexpandablelayout example:\n\n```\n   ` playImageView = (ImageView) findViewById(R.id.scale_anim);\n    elIV = (ExpandableRelativeLayout) findViewById(R.id.rarticle_el_iv);\n    final ImageView ivPlay = (ImageView) findViewById(R.id.scale_play);\n\n    globalLayoutListener = new ViewTreeObserver.OnGlobalLayoutListener() {\n        @Override\n        public void onGlobalLayout() {\n            elIV.move(playImageView.getHeight(), 0, null);\n\n           playImageView.getViewTreeObserver().removeOnGlobalLayoutListener(globalLayoutListener);\n        }\n    };\n   playImageView.getViewTreeObserver().addOnGlobalLayoutListener(globalLayoutListener);\n\n   playImageView.setOnClickListener(new View.OnClickListener() {\n\n        @Override\n        public void onClick(View v) {\n            ImageAnimation ia = new ImageAnimation(ivPlay, ivPlay.getWidth(), (int) (1.25 * ivPlay.getWidth()), ivPlay.getHeight(), (int) (2 * ivPlay.getHeight()));\n            ia.setDuration(2000);\n            ia.setFillEnabled(true);\n            ia.setFillAfter(true);\n            ivPlay.startAnimation(ia);\n\n            playImageView.setVisibility(View.GONE);\n            elIV.expand(10000, new FastOutSlowInInterpolator());\n        }\n    });\n}`\n```\n\nThis is the relevant xml code:\n\n```\n  <RelativeLayout\n    android:layout_width=\"wrap_content\"\n    android:layout_height=\"wrap_content\">\n\n    <ImageView\n        android:id=\"@+id/scale_anim\"\n        android:layout_width=\"60dp\"\n        android:layout_height=\"60dp\"\n        android:background=\"@drawable/play\" />\n\n    <com.github.aakira.expandablelayout.ExpandableRelativeLayout\n        android:id=\"@+id/rarticle_el_iv\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\">\n\n        <ImageView\n            android:id=\"@+id/scale_play\"\n            android:layout_width=\"60dp\"\n            android:layout_height=\"60dp\"\n            android:background=\"@drawable/play\" />\n\n        <TextView\n            android:id=\"@+id/rarticle_tv_article_iv\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"wrap_content\"\n            android:layout_below=\"@id/scale_play\"\n            android:text=\"There is an idea which generally people or in particular, the quacks have. They impart spirituality without any consideration of the receiver’s capacity. Even when the disciple is full of darkness, they start infusing Divine effulgence into him. The disciple, no doubt, improves by the force they impart, but the already existing darkness also goes on developing. If you add power to an object, its own ingredients will also develop. If the process is continued, the darkness swells and goes on becoming more and more solid. On the contrary, if the correct method is followed, and the darkness removed first, very good results will be obtained.\" />\n\n    </com.github.aakira.expandablelayout.ExpandableRelativeLayout>\n\n</RelativeLayout>\n```\n\nHere's what I found: \nThe total height that the ExpandableLayout expands is 1080 px = width of my phone = max height of the imageView can be while maintaining aspect ratio\n"}}
{"actor":{"display_login":"suku-h"}}