Assigned
Status Update
Comments
da...@gmail.com <da...@gmail.com> #2
Addition: the layout is being used in an AppCompatActivity.
ar...@google.com <ar...@google.com> #3
Thank you for reporting this issue. We are facing compilation error when using sample code given in comment #1 .
For us to further investigate this issue, please provide the following additional information:
Steps to reproduce
Please provide sample project or apk to reproduce the issue.
Also kindly mention the steps to be followed for reproducing the issue with the given sample project or apk.
Frequency
How frequently does this issue occur? (e.g 100% of the time, 10% of the time)
Expected output
Could you please explain the expected behavior.
Current output
Could you please explain the current behavior.
For us to further investigate this issue, please provide the following additional information:
Steps to reproduce
Please provide sample project or apk to reproduce the issue.
Also kindly mention the steps to be followed for reproducing the issue with the given sample project or apk.
Frequency
How frequently does this issue occur? (e.g 100% of the time, 10% of the time)
Expected output
Could you please explain the expected behavior.
Current output
Could you please explain the current behavior.
ar...@google.com <ar...@google.com> #4
Please provide the information requested in comment #3 to investigate further.
da...@gmail.com <da...@gmail.com> #5
Steps to reproduce:
Attached the sample project.
In ScrollingActivity you will find
findViewById(R.id.test).setVisibility(View.VISIBLE);
//findViewById(R.id.test).requestLayout();
Now press the button and you will see that nothing happens.
Eemove "//" from the second line an try again, you will see that now after pressing the button for the 2nd time the view gets visible.
Frequency: always
Expected output: view should change to visible inmediately on first call to setVisibility without need of calling something else.
Current output: view does not get visible
Attached the sample project.
In ScrollingActivity you will find
findViewById(R.id.test).setVisibility(View.VISIBLE);
//findViewById(R.id.test).requestLayout();
Now press the button and you will see that nothing happens.
Eemove "//" from the second line an try again, you will see that now after pressing the button for the 2nd time the view gets visible.
Frequency: always
Expected output: view should change to visible inmediately on first call to setVisibility without need of calling something else.
Current output: view does not get visible
ar...@google.com <ar...@google.com> #6
We have shared this with our engineering team and will update this issue with more information as it becomes available.
is...@google.com <is...@google.com>
ar...@google.com <ar...@google.com>
la...@gmail.com <la...@gmail.com> #7
A
sa...@google.com <sa...@google.com> #8
We will be closing this bug as Obsolete. If you still think this issue is reproducible and relevant in the latest Android release (Android Q), please attach a new bug report along with reproduction details. If a reply is not received within the next 14 days, this issue will be closed. Thank you for your understanding.
da...@gmail.com <da...@gmail.com> #9
ad...@google.com <ad...@google.com>
cc...@google.com <cc...@google.com>
cc...@google.com <cc...@google.com>
at...@google.com <at...@google.com> #10
Thank you for your feedback. We assure you that we are doing our best to address all issues reported. For now, we will be closing the issue as won't fix obsolete. If this issue currently still exists, we request that you log a new issue along with the bug report here
Description
Version used:27.0.2
Theme used: extension from Theme.AppCompat.Light.DarkActionBar
Devices/Android versions reproduced on: Nexus 6 Android 7.1.1
- Relevant code to trigger the issue.
<android.support.design.widget.CoordinatorLayout
android:id="@+id/activity_root"
xmlns:android="
xmlns:app="
xmlns:tools="
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true">
<LinearLayout
android:id="@+id/content"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipToPadding="false"
android:descendantFocusability="blocksDescendants"
android:orientation="vertical"
android:paddingTop="150dp"
android:visibility="gone"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:ignore="RtlSymmetry"
tools:visibility="visible">
</LinearLayout>
</android.support.design.widget.CoordinatorLayout>
Now e.g. add a listener to a button and when clicked setVisibility of "content" to Visible. Visibility won't change, only if after requestLayout() is called and then you press the button again, the visibility changes. Also removing app:layout_behavior solves the problem.