Code Monkey home page Code Monkey logo

views-widgets-samples's Introduction

Warning We are in the process of migrating these samples into the new platform-samples repository.

You can find the list of migrated samples here

Android Views and Widgets Samples Repository

This repository contains a set of individual Android Studio projects to help you get started writing/understanding Android views and widgets features.

views-widgets-samples's People

Contributors

aquagray avatar camaelon avatar chrisbanes avatar codingjeremy avatar gcoleman799 avatar ggfan avatar grcoleman avatar jafu888 avatar jfresen avatar joshcurtis avatar kisty avatar magicalmeghan avatar nfischer avatar nic0lette avatar objcode avatar thagikura avatar tiembo avatar yaraki avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

views-widgets-samples's Issues

Group problem?

When i set the android.support.constraint.Group GONE, then set the reference view VISIBLE, it does not work, the version is 1.1.0

Glitch while swiping up with Top Image

There is a glitch in YoutubeDemoActivity swipe gestures. Here is the image for reference.
Steps to reproduce :

  • Swipe up on cat image (top cat image)
  • The adapter will become invisible.
    and after that scrolling bottom and top will produce glitches.

device-2019-01-30-123152

Possibility of having more that 2 (resting) states

Is it currently possible to have states in addition to start and end?

If no please consider supporting it by for example adding support for resting keyframes.

A nice use case for such a capability would be a long scrollView with states that are transitioned when user scrolls up and down.

ConstraintSetExampleActivity activity crashes when changing minSdk to 9/14/17

According to the documentation ConstraintLayout should be compatible with Android 9 but it is not.

The main problem is within the populateConstraint method. This method gets called when you call the load(Context context, int resourceId) method. It seems some of the properties are not available in old versions.

For example startMargin, translationZ, etc.

Focus dismiss

Why focus dismiss when I add item by add the lastest item of recyclerview which be used to add item for recyclerview itself? Hurry!!!!

Use the problem ConstraintLayout 1.1.2

When using this method of constraintset.clone (Context,LayoutId), I cannot switch to the Layout page I specified. I use the place in Dialog, I don't know why?

ConstraintSet - not working properly with Start/End constrains

Looks like ConstraintSet is finding hard to cope up with Start/End constrains.

When you replace Left & Right constrains with Start & End, ConstraintSet - not working properly, It's working with Left/Right constrains only.
For example replace layout_constraintStart_toStartOf with layout_constraintLeft_toLeftOf & replace layout_constraintEnd_toEndOf with layout_constraintRight_toRightOf

in following files:
constraintset_example_main.xml
constraintset_example_big.xml
It's not working.

Refer for more details:

https://stackoverflow.com/questions/49232559/constrainlayout-constraintset-not-working-properly-with-start-end-constrains

Dependences

The dependences in this are really old that the android studio show error multiple times regarding 'compile' in gradle and refractoring....

android8.0,8.1 java.lang.IndexOutOfBoundsException:

java.lang.IndexOutOfBoundsException:
at android.text.TextLine.handleRun (TextLine.java:989)
at android.text.TextLine.drawRun (TextLine.java:481)
at android.text.TextLine.draw (TextLine.java:253)
at android.text.Layout.drawText (Layout.java:545)
at android.text.Layout.draw (Layout.java:292)
at android.widget.TextView.onDraw (TextView.java:7765)
at android.view.View.draw (View.java:20369)
at android.view.View.updateDisplayListIfDirty (View.java:19314)
at android.view.View.draw (View.java:20092)
at android.view.ViewGroup.drawChild (ViewGroup.java:4421)
at android.view.ViewGroup.dispatchDraw (ViewGroup.java:4207)
at android.support.constraint.ConstraintLayout.dispatchDraw (ConstraintLayout.java:2023)
at android.view.View.updateDisplayListIfDirty (View.java:19305)
at android.view.View.draw (View.java:20092)
at android.view.ViewGroup.drawChild (ViewGroup.java:4421)
at android.widget.ListView.drawChild (ListView.java:3766)
at android.view.ViewGroup.dispatchDraw (ViewGroup.java:4207)
at android.widget.AbsListView.dispatchDraw (AbsListView.java:3501)
at android.widget.ListView.dispatchDraw (ListView.java:3749)
at android.view.View.draw (View.java:20372)
at android.widget.AbsListView.draw (AbsListView.java:7068)
at android.view.View.updateDisplayListIfDirty (View.java:19314)
at android.view.View.draw (View.java:20092)
at android.view.ViewGroup.drawChild (ViewGroup.java:4421)
at android.view.ViewGroup.dispatchDraw (ViewGroup.java:4207)
at android.support.constraint.ConstraintLayout.dispatchDraw (ConstraintLayout.java:2023)
at android.view.View.draw (View.java:20372)
at android.view.View.updateDisplayListIfDirty (View.java:19314)
at android.view.View.draw (View.java:20092)
at android.view.ViewGroup.drawChild (ViewGroup.java:4421)
at android.view.ViewGroup.dispatchDraw (ViewGroup.java:4207)
at android.view.View.updateDisplayListIfDirty (View.java:19305)
at android.view.View.draw (View.java:20092)
at android.view.ViewGroup.drawChild (ViewGroup.java:4421)
at android.view.ViewGroup.dispatchDraw (ViewGroup.java:4207)
at android.view.View.updateDisplayListIfDirty (View.java:19305)
at android.view.View.draw (View.java:20092)
at android.view.ViewGroup.drawChild (ViewGroup.java:4421)
at android.view.ViewGroup.dispatchDraw (ViewGroup.java:4207)
at android.view.View.updateDisplayListIfDirty (View.java:19305)
at android.view.View.draw (View.java:20092)
at android.view.ViewGroup.drawChild (ViewGroup.java:4421)
at android.view.ViewGroup.dispatchDraw (ViewGroup.java:4207)
at android.view.View.updateDisplayListIfDirty (View.java:19305)
at android.view.View.draw (View.java:20092)
at android.view.ViewGroup.drawChild (ViewGroup.java:4421)
at android.view.ViewGroup.dispatchDraw (ViewGroup.java:4207)
at android.view.View.updateDisplayListIfDirty (View.java:19305)
at android.view.View.draw (View.java:20092)
at android.view.ViewGroup.drawChild (ViewGroup.java:4421)
at android.view.ViewGroup.dispatchDraw (ViewGroup.java:4207)
at android.view.View.draw (View.java:20372)
at com.android.internal.policy.DecorView.draw (DecorView.java:974)
at android.view.View.updateDisplayListIfDirty (View.java:19314)
at android.view.ThreadedRenderer.updateViewTreeDisplayList (ThreadedRenderer.java:686)
at android.view.ThreadedRenderer.updateRootDisplayList (ThreadedRenderer.java:692)
at android.view.ThreadedRenderer.draw (ThreadedRenderer.java:800)
at android.view.ViewRootImpl.draw (ViewRootImpl.java:3501)
at android.view.ViewRootImpl.performDraw (ViewRootImpl.java:3288)
at android.view.ViewRootImpl.performTraversals (ViewRootImpl.java:2823)
at android.view.ViewRootImpl.doTraversal (ViewRootImpl.java:1785)
at android.view.ViewRootImpl$TraversalRunnable.run (ViewRootImpl.java:7833)
at android.view.Choreographer$CallbackRecord.run (Choreographer.java:911)
at android.view.Choreographer.doCallbacks (Choreographer.java:723)
at android.view.Choreographer.doFrame (Choreographer.java:658)
at android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:897)
at android.os.Handler.handleCallback (Handler.java:789)
at android.os.Handler.dispatchMessage (Handler.java:98)
at android.os.Looper.loop (Looper.java:164)
at android.app.ActivityThread.main (ActivityThread.java:6942)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run (Zygote.java:327)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1374)

Constraint Layout Guidelines problem?

When making a layout with constraint layout I found that if we take guidelines, we cannot take layout within it as it does not make any constraint to the guidelines it would only make constraints to adjacent view or to screen's proportional.

Could you help with this?

java.lang.IllegalStateException

HI . I have 2 question

2018-09-18 1 11 59

2018-09-18 1 11 41

how can I fix it

and had another one about view . but I dont know where can I post it.
2018-09-18 1 10 42
but I didnt call it.

Shadow rendering issue if CardView added in programmatically created ViewGroup

I have found a weird issue in CardView. When I try to add a programmatically created CardView to an xml inflated View, shadow is rendered on Lollipop devices. However if I add this cardView inside a programmatically created ViewGroup Eg. RelativeLayout, & then add this relativeLayout in xml inflated Viewgroup the shadow isn't rendered on lollipop. I don't know if I have to set a property that OS sets automatically while inflating xml views & that is mandatory to set if we are creating ViewGroups programmatically in order to draw shadows. Please note that on pre lollipop devices shadows are rendered no matter in which ViewGroup do I add the cardView. How can I resolve this issue?

Code Here:
https://gist.github.com/wingoku/eee1e95bea313f8a0206

Scrolling recyclerView with multiple view types causing strange overlapping of views

Hi,
The scenario I have is a recycler view containing items with different view types, i.e. i audio, video, image files all in a single adapter, in order to show media files as in other gallery apps.

Now, coming at the issue:
Whenever there are huge number of files present inside the recycler view, and I scroll through the items very fast (top-to-down and vice versa), some of the video thumbnails(of the video files) get overlapped over the audio files placeholder. Again, this happens only when the number of files is large and when scrolled quickly.

Just an FYI:
The getItemViewType() is returning the type of item in order to set appropriate views(for audio, video ,image).

Can anyone confirm if they have experienced a similar issue in the past ?
Or, any idea why this might be happening ?

Example of adding subheaders

Subheaders (aka section headers) in lists and grids very common and indeed part of the material design spec (http://www.google.fr/design/spec/components/subheaders.html).

On the implementation side, there appear to be two primary strategies for rendering the headers in the recycler view. One is to use an ItemDecorator and the other is to use two different ViewHolder types. This library https://github.com/timehop/sticky-headers-recyclerview appears to be leading the way on the decorator pattern, while this tidy example https://gist.github.com/gabrielemariotti/4c189fb1124df4556058 (which is apparently a port of some older google code) uses the view holder types and a wrapper adapter.

It would be great to see an example of the pattern the Inbox app uses, where the headers are dynamically generated based on the content of the items. It seems to be such a common pattern it could nearly be accommodated in the support library. Failing that the source code of the Inbox app would suffice ;)

On Scroll Recycleview misbehaves

I have a recyclerview which has some textview and a edittext in a single row..when i enter data in the edittext and scroll the list...the data from that edittext gets automatically shifted/copied to other textviews in other rows... Please provide a solution.. It will be of great help .

MotionLayout: Fragment Transition Example (1/2) bug

Hello,
I have investigated MotionLayout examples and I have found bug in example called:
Fragment Transition Example (1/2)

Motion scene

@xml/scene_21_second_fragment

that is set to SecondFragment

R.layout.motion_21_second_fragment

is not fired at all. This motion scene is responsible for resize @id/imageView but end scene is never showed, @id/imageView has start scene properties for all the time.

NPE in JNI in motionlayout example

On my device (Samsung SM-J200H Android 5.1.1, API 22) after scrolling on any screen app crashes with this error:

JNI DETECTED ERROR IN APPLICATION: can't call void android.view.View.setElevation(float) on null object

07-06 15:16:48.868 30735-30735/com.google.androidstudio.motionlayoutexample A/art: sart/runtime/check_jni.cc:65] JNI DETECTED ERROR IN APPLICATION: can't call void android.view.View.setElevation(float) on null object sart/runtime/check_jni.cc:65] in call to CallVoidMethodV sart/runtime/check_jni.cc:65] from void android.animation.PropertyValuesHolder.nCallFloatMethod(java.lang.Object, long, float) sart/runtime/check_jni.cc:65] "main" prio=5 tid=1 Runnable sart/runtime/check_jni.cc:65] | group="main" sCount=0 dsCount=0 obj=0x7561b000 self=0xb4827800 sart/runtime/check_jni.cc:65] | sysTid=30735 nice=0 cgrp=default sched=0/0 handle=0xb6fbfbec sart/runtime/check_jni.cc:65] | state=R schedstat=( 0 0 0 ) utm=3194 stm=417 core=1 HZ=100 sart/runtime/check_jni.cc:65] | stack=0xbe1cf000-0xbe1d1000 stackSize=8MB sart/runtime/check_jni.cc:65] | held mutexes= "mutator lock"(shared held) sart/runtime/check_jni.cc:65] native: #00 pc 00004dfc /system/lib/libbacktrace_libc++.so (_ZN13UnwindCurrent6UnwindEjP8ucontext+23) sart/runtime/check_jni.cc:65] native: android/android-ConstraintLayoutExamples#1 pc 00003631 /system/lib/libbacktrace_libc++.so (_ZN9Backtrace6UnwindEjP8ucontext+8) sart/runtime/check_jni.cc:65] native: android/android-ConstraintLayoutExamples#2 pc 0024b4e9 /system/lib/libart.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiPKcPNS_6mirror9ArtMethodE+68) sart/runtime/check_jni.cc:65] native: android/android-ConstraintLayoutExamples#3 pc 0022f3df /system/lib/libart.so (_ZNK3art6Thread4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+146) sart/runtime/check_jni.cc:65] native: android/android-ConstraintLayoutExamples#4 pc 000b2957 /system/lib/libart.so (_ZN3artL8JniAbortEPKcS1_+582) sart/runtime/check_jni.cc:65] native: android/android-ConstraintLayoutExamples#5 pc 000b3087 /system/lib/libart.so (_ZN3art9JniAbortFEPKcS1_z+58) sart/runtime/check_jni.cc:65] native: android/android-ConstraintLayoutExamples#6 pc 000b3a91 /system/lib/libart.so (_ZN3art11ScopedCheck18CheckVirtualMethodEP8_jobjectP10_jmethodID+396) sart/runtime/check_jni.cc:65] native: android/android-ConstraintLayoutExamples#7 pc 000bd44b /system/lib/libart.so (_ZN3art8CheckJNI15CallVoidMethodVEP7_JNIEnvP8_jobjectP10_jmethodIDSt9__va_list+70) sart/runtime/check_jni.cc:65] native: android/android-ConstraintLayoutExamples#8 pc 000681df /system/lib/libandroid_runtime.so (???) sart/runtime/check_jni.cc:65] native: android/android-ConstraintLayoutExamples#9 pc 00074fc9 /system/framework/arm/boot.oat (Java_android_animation_PropertyValuesHolder_nCallFloatMethod__Ljava_lang_Object_2JF+132) sart/runtime/check_jni.cc:65] at android.animation.PropertyValuesHolder.nCallFloatMethod(Native method) sart/runtime/check_jni.cc:65] at android.animation.PropertyValuesHolder.access$400(PropertyValuesHolder.java:39) sart/runtime/check_jni.cc:65] at android.animation.PropertyValuesHolder$FloatPropertyValuesHolder.setAnimatedValue(PropertyValuesHolder.java:1298) sart/runtime/check_jni.cc:65] at android.animation.ObjectAnimator.animateValue(ObjectAnimator.java:956) sart/runtime/check_jni.cc:65] at android.animation.ValueAnimator.animationFrame(ValueAnimator.java:1298) sart/runtime/check_jni.cc:65] at android.animation.ValueAnimator.doAnimationFrame(ValueAnimator.java:1339) sart/runtime/check_jni.cc:65] at android.animation.ValueAnimator$AnimationHandler.doAnimationFrame(ValueAnimator.java:715) sart/runtime/check_jni.cc:65] at android.animation.ValueAnimator$AnimationHandler.run(ValueAnimator.java:738) sart/runtime/check_jni.cc:65] at android.view.Choreographer$CallbackRecord.run(Choreographer.java:767) sart/runtime/check_jni.cc:65] at android.view.Choreographer.doCallbacks(Choreographer.java:580) sart/runtime/check_jni.cc:65] at android.view.Choreographer.doFrame(Choreographer.java:549) sart/runtime/check_jni.cc:65] at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753) sart/runtime/check_jni.cc:65] at android.os.Handler.handleCallback(Handler.java:739) sart/runtime/check_jni.cc:65] at android.os.Handler.dispatchMessage(Handler.java:95) sart/runtime/check_jni.cc:65] at android.os.Looper.loop(Looper.java:135) sart/runtime/check_jni.cc:65] at android.app.ActivityThread.main(ActivityThread.java:5912) sart/runtime/check_jni.cc:65] at java.lang.reflect.Method.invoke!(Native method) sart/runtime/check_jni.cc:65] at java.lang.reflect.Method.invoke(Method.java:372) sart/runtime/check_jni.cc:65] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1405) sart/runtime/check_jni.cc:65] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1200) sart/runtime/check_jni.cc:65] 07-06 15:16:49.178 30735-30735/com.google.androidstudio.motionlayoutexample A/art: sart/runtime/runtime.cc:292] Runtime aborting... sart/runtime/runtime.cc:292] Aborting thread: sart/runtime/runtime.cc:292] "main" prio=5 tid=1 Native sart/runtime/runtime.cc:292] | group="" sCount=0 dsCount=0 obj=0x7561b000 self=0xb4827800 sart/runtime/runtime.cc:292] | sysTid=30735 nice=0 cgrp=default sched=0/0 handle=0xb6fbfbec sart/runtime/runtime.cc:292] | state=R schedstat=( 0 0 0 ) utm=3195 stm=419 core=1 HZ=100 sart/runtime/runtime.cc:292] | stack=0xbe1cf000-0xbe1d1000 stackSize=8MB sart/runtime/runtime.cc:292] | held mutexes= "abort lock" "mutator lock"(shared held) sart/runtime/runtime.cc:292] native: #00 pc 00004dfc /system/lib/libbacktrace_libc++.so (_ZN13UnwindCurrent6UnwindEjP8ucontext+23) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#1 pc 00003631 /system/lib/libbacktrace_libc++.so (_ZN9Backtrace6UnwindEjP8ucontext+8) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#2 pc 0024b4e9 /system/lib/libart.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiPKcPNS_6mirror9ArtMethodE+68) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#3 pc 0022f3df /system/lib/libart.so (_ZNK3art6Thread4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+146) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#4 pc 0021dc0f /system/lib/libart.so (_ZN3art10AbortState10DumpThreadERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEPNS_6ThreadE+22) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#5 pc 0021e66b /system/lib/libart.so (_ZN3art10AbortState4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+386) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#6 pc 0021e819 /system/lib/libart.so (_ZN3art7Runtime5AbortEv+72) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#7 pc 000a8dc5 /system/lib/libart.so (_ZN3art10LogMessageD1Ev+1312) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#8 pc 000b2b3d /system/lib/libart.so (_ZN3artL8JniAbortEPKcS1_+1068) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#9 pc 000b3087 /system/lib/libart.so (_ZN3art9JniAbortFEPKcS1_z+58) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#10 pc 000b3a91 /system/lib/libart.so (_ZN3art11ScopedCheck18CheckVirtualMethodEP8_jobjectP10_jmethodID+396) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#11 pc 000bd44b /system/lib/libart.so (_ZN3art8CheckJNI15CallVoidMethodVEP7_JNIEnvP8_jobjectP10_jmethodIDSt9__va_list+70) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#12 pc 000681df /system/lib/libandroid_runtime.so (???) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#13 pc 00074fc9 /system/framework/arm/boot.oat (Java_android_animation_PropertyValuesHolder_nCallFloatMethod__Ljava_lang_Object_2JF+132) sart/runtime/runtime.cc:292] at android.animation.PropertyValuesHolder.nCallFloatMethod(Native method) sart/runtime/runtime.cc:292] at android.animation.PropertyValuesHolder.access$400(PropertyValuesHolder.java:39) sart/runtime/runtime.cc:292] at android.animation.PropertyValuesHolder$FloatPropertyValuesHolder.setAnimatedValue(PropertyValuesHolder.java:1298) sart/runtime/runtime.cc:292] at android.animation.ObjectAnimator.animateValue(ObjectAnimator.java:956) sart/runtime/runtime.cc:292] at android.animation.ValueAnimator.animationFrame(ValueAnimator.java:1298) sart/runtime/runtime.cc:292] at android.animation.ValueAnimator.doAnimationFrame(ValueAnimator.java:1339) sart/runtime/runtime.cc:292] at android.animation.ValueAnimator$AnimationHandler.doAnimationFrame(ValueAnimator.java:715) sart/runtime/runtime.cc:292] at android.animation.ValueAnimator$AnimationHandler.run(ValueAnimator.java:738) sart/runtime/runtime.cc:292] at android.view.Choreographer$CallbackRecord.run(Choreographer.java:767) sart/runtime/runtime.cc:292] at android.view.Choreographer.doCallbacks(Choreographer.java:580) sart/runtime/runtime.cc:292] at android.view.Choreographer.doFrame(Choreographer.java:549) sart/runtime/runtime.cc:292] at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753) sart/runtime/runtime.cc:292] at android.os.Handler.handleCallback(Handler.java:739) sart/runtime/runtime.cc:292] at android.os.Handler.dispatchMessage(Handler.java:95) sart/runtime/runtime.cc:292] at android.os.Looper.loop(Looper.java:135) sart/runtime/runtime.cc:292] at android.app.ActivityThread.main(ActivityThread.java:5912) sart/runtime/runtime.cc:292] at java.lang.reflect.Method.invoke!(Native method) sart/runtime/runtime.cc:292] at java.lang.reflect.Method.invoke(Method.java:372) sart/runtime/runtime.cc:292] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1405) sart/runtime/runtime.cc:292] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1200) sart/runtime/runtime.cc:292] Dumping all threads without appropriate locks held: thread list lock mutator lock sart/runtime/runtime.cc:292] All threads: sart/runtime/runtime.cc:292] DALVIK THREADS (17): sart/runtime/runtime.cc:292] "main" prio=5 tid=1 Native sart/runtime/runtime.cc:292] | group="" sCount=0 dsCount=0 obj=0x7561b000 self=0xb4827800 sart/runtime/runtime.cc:292] | sysTid=30735 nice=0 cgrp=default sched=0/0 handle=0xb6fbfbec sart/runtime/runtime.cc:292] | state=R schedstat=( 0 0 0 ) utm=3197 stm=419 core=1 HZ=100 sart/runtime/runtime.cc:292] | stack=0xbe1cf000-0xbe1d1000 stackSize=8MB sart/runtime/runtime.cc:292] | held mutexes= "abort lock" sart/runtime/runtime.cc:292] native: #00 pc 00004dfc /system/lib/libbacktrace_libc++.so (_ZN13UnwindCurrent6UnwindEjP8ucontext+23) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#1 pc 00003631 /system/lib/libbacktrace_libc++.so (_ZN9Backtrace6UnwindEjP8ucontext+8) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#2 pc 0024b4e9 /system/lib/libart.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiPKcPNS_6mirror9ArtMethodE+68) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#3 pc 0022f3df /system/lib/libart.so (_ZNK3art6Thread4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+146) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#4 pc 002384f9 /system/lib/libart.so (_ZN3art10ThreadList10DumpLockedERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+104) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#5 pc 0021e5d7 /system/lib/libart.so (_ZN3art10AbortState4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+238) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#6 pc 0021e819 /system/lib/libart.so (_ZN3art7Runtime5AbortEv+72) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#7 pc 000a8dc5 /system/lib/libart.so (_ZN3art10LogMessageD1Ev+1312) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#8 pc 000b2b3d /system/lib/libart.so (_ZN3artL8JniAbortEPKcS1_+1068) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#9 pc 000b3087 /system/lib/libart.so (_ZN3art9JniAbortFEPKcS1_z+58) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#10 pc 000b3a91 /system/lib/libart.so (_ZN3art11ScopedCheck18CheckVirtualMethodEP8_jobjectP10_jmethodID+396) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#11 pc 000bd44b /system/lib/libart.so (_ZN3art8CheckJNI15CallVoidMethodVEP7_JNIEnvP8_jobjectP10_jmethodIDSt9__va_list+70) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#12 pc 000681df /system/lib/libandroid_runtime.so (???) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#13 pc 00074fc9 /system/framework/arm/boot.oat (Java_android_animation_PropertyValuesHolder_nCallFloatMethod__Ljava_lang_Object_2JF+132) sart/runtime/runtime.cc:292] at android.animation.PropertyValuesHolder.nCallFloatMethod(Native method) sart/runtime/runtime.cc:292] at android.animation.PropertyValuesHolder.access$400(PropertyValuesHolder.java:39) sart/runtime/runtime.cc:292] at android.animation.PropertyValuesHolder$FloatPropertyValuesHolder.setAnimatedValue(PropertyValuesHolder.java:1298) sart/runtime/runtime.cc:292] at android.animation.ObjectAnimator.animateValue(ObjectAnimator.java:956) sart/runtime/runtime.cc:292] at android.animation.ValueAnimator.animationFrame(ValueAnimator.java:1298) sart/runtime/runtime.cc:292] at android.animation.ValueAnimator.doAnimationFrame(ValueAnimator.java:1339) sart/runtime/runtime.cc:292] at android.animation.ValueAnimator$AnimationHandler.doAnimationFrame(ValueAnimator.java:715) sart/runtime/runtime.cc:292] at android.animation.ValueAnimator$AnimationHandler.run(ValueAnimator.java:738) sart/runtime/runtime.cc:292] at android.view.Choreographer$CallbackRecord.run(Choreographer.java:767) sart/runtime/runtime.cc:292] at android.view.Choreographer.doCallbacks(Choreographer.java:580) sart/runtime/runtime.cc:292] at android.view.Choreographer.doFrame(Choreographer.java:549) sart/runtime/runtime.cc:292] at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753) sart/runtime/runtime.cc:292] at android.os.Handler.handleCallback(Handler.java:739) sart/runtime/runtime.cc:292] at android.os.Handler.dispatchMessage(Handler.java:95) sart/runtime/runtime.cc:292] at android.os.Looper.loop(Looper.java:135) sart/runtime/runtime.cc:292] at android.app.ActivityThread.main(ActivityThread.java:5912) sart/runtime/runtime.cc:292] at java.lang.reflect.Method.invoke!(Native method) sart/runtime/runtime.cc:292] at java.lang.reflect.Method.invoke(Method.java:372) sart/runtime/runtime.cc:292] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1405) sart/runtime/runtime.cc:292] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1200) sart/runtime/runtime.cc:292] sart/runtime/runtime.cc:292] "Signal Catcher" prio=5 tid=2 WaitingInMainSignalCatcherLoop sart/runtime/runtime.cc:292] | group="" sCount=0 dsCount=0 obj=0x12c180a0 self=0xafcba800 sart/runtime/runtime.cc:292] | sysTid=30742 nice=0 cgrp=default sched=0/0 handle=0xb491e080 sart/runtime/runtime.cc:292] | state=S schedstat=( 0 0 0 ) utm=0 stm=0 core=1 HZ=100 sart/runtime/runtime.cc:292] | stack=0xb402e000-0xb4030000 stackSize=1012KB sart/runtime/runtime.cc:292] | held mutexes= sart/runtime/runtime.cc:292] native: #00 pc 0003a22c /system/lib/libc.so (__rt_sigtimedwait+12) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#1 pc 0001869d /system/lib/libc.so (sigwait+24) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#2 pc 00222907 /system/lib/libart.so (_ZN3art13SignalCatcher13WaitForSignalEPNS_6ThreadERNS_9SignalSetE+66) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#3 pc 002243cb /system/lib/libart.so (_ZN3art13SignalCatcher3RunEPv+194) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#4 pc 00016f0f /system/lib/libc.so (_ZL15__pthread_startPv+30) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#5 pc 00014f43 /system/lib/libc.so (__start_thread+6) sart/runtime/runtime.cc:292] (no managed stack frames) sart/runtime/runtime.cc:292] sart/runtime/runtime.cc:292] "JDWP" prio=5 tid=3 WaitingInMainDebuggerLoop sart/runtime/runtime.cc:292] | group="" sCount=0 dsCount=0 obj=0x12c18100 self=0xb4827400 sart/runtime/runtime.cc:292] | sysTid=30743 nice=0 cgrp=default sched=0/0 handle=0xb491e300 sart/runtime/runtime.cc:292] | state=S schedstat=( 0 0 0 ) utm=0 stm=0 core=1 HZ=100 sart/runtime/runtime.cc:292] | stack=0xb3f30000-0xb3f32000 stackSize=1012KB sart/runtime/runtime.cc:292] | held mutexes= sart/runtime/runtime.cc:292] native: #00 pc 0003b718 /system/lib/libc.so (__pselect6+20) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#1 pc 000166a7 /system/lib/libc.so (select+60) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#2 pc 0028ac83 /system/lib/libart.so (_ZN3art4JDWP12JdwpAdbState15ProcessIncomingEv+182) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#3 pc 0019596b /system/lib/libart.so (_ZN3art4JDWP9JdwpState3RunEv+346) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#4 pc 00196e73 /system/lib/libart.so (_ZN3art4JDWPL15StartJdwpThreadEPv+10) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#5 pc 00016f0f /system/lib/libc.so (_ZL15__pthread_startPv+30) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#6 pc 00014f43 /system/lib/libc.so (__start_thread+6) sart/runtime/runtime.cc:292] (no managed stack frames) sart/runtime/runtime.cc:292] sart/runtime/runtime.cc:292] "Binder_1" prio=5 tid=4 Native sart/runtime/runtime.cc:292] | group="" sCount=0 dsCount=0 obj=0x12c18160 self=0xafcc3400 sart/runtime/runtime.cc:292] | sysTid=30745 nice=0 cgrp=default sched=0/0 handle=0xb491e800 sart/runtime/runtime.cc:292] | state=S schedstat=( 0 0 0 ) utm=20 stm=15 core=1 HZ=100 sart/runtime/runtime.cc:292] | stack=0xb3c30000-0xb3c32000 stackSize=1012KB sart/runtime/runtime.cc:292] | held mutexes= sart/runtime/runtime.cc:292] native: #00 pc 0003baa8 /system/lib/libc.so (__ioctl+8) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#1 pc 000526b1 /system/lib/libc.so (ioctl+14) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#2 pc 0001f687 /system/lib/libbinder.so (_ZN7android14IPCThreadState14talkWithDriverEb+138) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#3 pc 0001fbad /system/lib/libbinder.so (_ZN7android14IPCThreadState20getAndExecuteCommandEv+44) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#4 pc 0001fc6b /system/lib/libbinder.so (_ZN7android14IPCThreadState14joinThreadPoolEb+94) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#5 pc 00023e73 /system/lib/libbinder.so (???) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#6 pc 000106d1 /system/lib/libutils.so (_ZN7android6Thread11_threadLoopEPv+112) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#7 pc 00065329 /system/lib/libandroid_runtime.so (_ZN7android14AndroidRuntime15javaThreadShellEPv+72) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#8 pc 0001016d /system/lib/libutils.so (???) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#9 pc 00016f0f /system/lib/libc.so (_ZL15__pthread_startPv+30) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#10 pc 00014f43 /system/lib/libc.so (__start_thread+6) sart/runtime/runtime.cc:292] (no managed stack frames) sart/runtime/runtime.cc:292] sart/runtime/runtime.cc:292] "Binder_2" prio=5 tid=5 Native sart/runtime/runtime.cc:292] | group="" sCount=0 dsCount=0 obj=0x12c181c0 self=0xb4828000 sart/runtime/runtime.cc:292] | sysTid=30746 nice=0 cgrp=default sched=0/0 handle=0xafcab080 sart/runtime/runtime.cc:292] | state=S schedstat=( 0 0 0 ) utm=17 stm=17 core=0 HZ=100 sart/runtime/runtime.cc:292] | stack=0xb3b32000-0xb3b34000 stackSize=1012KB sart/runtime/runtime.cc:292] | held mutexes= sart/runtime/runtime.cc:292] native: #00 pc 0003baa8 /system/lib/libc.so (__ioctl+8) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#1 pc 000526b1 /system/lib/libc.so (ioctl+14) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#2 pc 0001f687 /system/lib/libbinder.so (_ZN7android14IPCThreadState14talkWithDriverEb+138) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#3 pc 0001fbad /system/lib/libbinder.so (_ZN7android14IPCThreadState20getAndExecuteCommandEv+44) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#4 pc 0001fc6b /system/lib/libbinder.so (_ZN7android14IPCThreadState14joinThreadPoolEb+94) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#5 pc 00023e73 /system/lib/libbinder.so (???) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#6 pc 000106d1 /system/lib/libutils.so (_ZN7android6Thread11_threadLoopEPv+112) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#7 pc 00065329 /system/lib/libandroid_runtime.so (_ZN7android14AndroidRuntime15javaThreadShellEPv+72) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#8 pc 0001016d /system/lib/libutils.so (???) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#9 pc 00016f0f /system/lib/libc.so (_ZL15__pthread_startPv+30) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#10 pc 00014f43 /system/lib/libc.so (__start_thread+6) sart/runtime/runtime.cc:292] (no managed stack frames) sart/runtime/runtime.cc:292] sart/runtime/runtime.cc:292] "FinalizerDaemon" prio=5 tid=6 Waiting sart/runtime/runtime.cc:292] | group="" sCount=0 dsCount=0 obj=0x12c18220 self=0xb4829800 sart/runtime/runtime.cc:292] | sysTid=30748 nice=0 cgrp=default sched=0/0 handle=0xb491ed00 sart/runtime/runtime.cc:292] | state=S schedstat=( 0 0 0 ) utm=7 stm=0 core=0 HZ=100 sart/runtime/runtime.cc:292] | stack=0xaf6fe000-0xaf700000 stackSize=1036KB sart/runtime/runtime.cc:292] | held mutexes= sart/runtime/runtime.cc:292] native: #00 pc 000133dc /system/lib/libc.so (syscall+28) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#1 pc 000ab89b /system/lib/libart.so (_ZN3art17ConditionVariable4WaitEPNS_6ThreadE+82) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#2 pc 001ee9e5 /system/lib/libart.so (_ZN3art7Monitor4WaitEPNS_6ThreadExibNS_11ThreadStateE+956) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#3 pc 001efdf9 /system/lib/libart.so (_ZN3art7Monitor4WaitEPNS_6ThreadEPNS_6mirror6ObjectExibNS_11ThreadStateE+120) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#4 pc 001feb5d /system/lib/libart.so (_ZN3artL13Object_waitJIEP7_JNIEnvP8_jobjectxi+36) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#5 pc 0000061b /system/framework/arm/boot.oat (Java_java_lang_Object_wait__JI+102) sart/runtime/runtime.cc:292] at java.lang.Object.wait!(Native method) sart/runtime/runtime.cc:292] - waiting on <0x185b5397> (a java.lang.ref.ReferenceQueue) sart/runtime/runtime.cc:292] at java.lang.Object.wait(Object.java:422) sart/runtime/runtime.cc:292] at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:101) sart/runtime/runtime.cc:292] - locked <0x185b5397> (a java.lang.ref.ReferenceQueue) sart/runtime/runtime.cc:292] at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:72) sart/runtime/runtime.cc:292] at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:177) sart/runtime/runtime.cc:292] at java.lang.Thread.run(Thread.java:818) sart/runtime/runtime.cc:292] sart/runtime/runtime.cc:292] "HeapTrimmerDaemon" prio=5 tid=7 Waiting sart/runtime/runtime.cc:292] | group="" sCount=0 dsCount=0 obj=0x12c18280 self=0xb482bc00 sart/runtime/runtime.cc:292] | sysTid=30750 nice=0 cgrp=default sched=0/0 handle=0xb491f200 sart/runtime/runtime.cc:292] | state=S schedstat=( 0 0 0 ) utm=10 stm=1 core=0 HZ=100 sart/runtime/runtime.cc:292] | stack=0xa3e61000-0xa3e63000 stackSize=1036KB sart/runtime/runtime.cc:292] | held mutexes= sart/runtime/runtime.cc:292] native: #00 pc 000133dc /system/lib/libc.so (syscall+28) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#1 pc 000ab89b /system/lib/libart.so (_ZN3art17ConditionVariable4WaitEPNS_6ThreadE+82) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#2 pc 001ee9e5 /system/lib/libart.so (_ZN3art7Monitor4WaitEPNS_6ThreadExibNS_11ThreadStateE+956) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#3 pc 001efdf9 /system/lib/libart.so (_ZN3art7Monitor4WaitEPNS_6ThreadEPNS_6mirror6ObjectExibNS_11ThreadStateE+120) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#4 pc 001feb85 /system/lib/libart.so (_ZN3artL11Object_waitEP7_JNIEnvP8_jobject+32) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#5 pc 000003ef /system/framework/arm/boot.oat (Java_java_lang_Object_wait__+82) sart/runtime/runtime.cc:292] at java.lang.Object.wait!(Native method) sart/runtime/runtime.cc:292] - waiting on <0x3024c984> (a java.lang.Daemons$HeapTrimmerDaemon) sart/runtime/runtime.cc:292] at java.lang.Daemons$HeapTrimmerDaemon.run(Daemons.java:314) sart/runtime/runtime.cc:292] - locked <0x3024c984> (a java.lang.Daemons$HeapTrimmerDaemon) sart/runtime/runtime.cc:292] at java.lang.Thread.run(Thread.java:818) sart/runtime/runtime.cc:292] sart/runtime/runtime.cc:292] "ReferenceQueueDaemon" prio=5 tid=8 Waiting sart/runtime/runtime.cc:292] | group="" sCount=0 dsCount=0 obj=0x12c182e0 self=0xb4829400 sart/runtime/runtime.cc:292] | sysTid=30747 nice=0 cgrp=default sched=0/0 handle=0xb491ea80 sart/runtime/runtime.cc:292] | state=S schedstat=( 0 0 0 ) utm=1 stm=0 core=0 HZ=100 sart/runtime/runtime.cc:292] | stack=0xb00bf000-0xb00c1000 stackSize=1036KB sart/runtime/runtime.cc:292] | held mutexes= sart/runtime/runtime.cc:292] native: #00 pc 000133dc /system/lib/libc.so (syscall+28) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#1 pc 000ab89b /system/lib/libart.so (_ZN3art17ConditionVariable4WaitEPNS_6ThreadE+82) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#2 pc 001ee9e5 /system/lib/libart.so (_ZN3art7Monitor4WaitEPNS_6ThreadExibNS_11ThreadStateE+956) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#3 pc 001efdf9 /system/lib/libart.so (_ZN3art7Monitor4WaitEPNS_6ThreadEPNS_6mirror6ObjectExibNS_11ThreadStateE+120) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#4 pc 001feb85 /system/lib/libart.so (_ZN3artL11Object_waitEP7_JNIEnvP8_jobject+32) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#5 pc 000003ef /system/framework/arm/boot.oat (Java_java_lang_Object_wait__+82) sart/runtime/runtime.cc:292] at java.lang.Object.wait!(Native method) sart/runtime/runtime.cc:292] - waiting on <0x1528356d> (a java.lang.Class<java.lang.ref.ReferenceQueue>) sart/runtime/runtime.cc:292] at java.lang.Daemons$ReferenceQueueDaemon.run(Daemons.java:137) sart/runtime/runtime.cc:292] - locked <0x1528356d> (a java.lang.Class<java.lang.ref.ReferenceQueue>) sart/runtime/runtime.cc:292] at java.lang.Thread.run(Thread.java:818) sart/runtime/runtime.cc:292] sart/runtime/runtime.cc:292] "FinalizerWatchdogDaemon" prio=5 tid=9 Sleeping sart/runtime/runtime.cc:292] | group="" sCount=0 dsCount=0 obj=0x12c18340 self=0xb482ac00 sart/runtime/runtime.cc:292] | sysTid=30749 nice=0 cgrp=default sched=0/0 handle=0xb491ef80 sart/runtime/runtime.cc:292] | state=S schedstat=( 0 0 0 ) utm=0 stm=0 core=1 HZ=100 sart/runtime/runtime.cc:292] | stack=0xaf5fa000-0xaf5fc000 stackSize=1036KB sart/runtime/runtime.cc:292] | held mutexes= sart/runtime/runtime.cc:292] native: #00 pc 000133e0 /system/lib/libc.so (syscall+32) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#1 pc 000ab643 /system/lib/libart.so (_ZN3art17ConditionVariable9TimedWaitEPNS_6ThreadExi+102) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#2 pc 001ee7eb /system/lib/libart.so (_ZN3art7Monitor4WaitEPNS_6ThreadExibNS_11ThreadStateE+450) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#3 pc 001efdf9 /system/lib/libart.so (_ZN3art7Monitor4WaitEPNS_6ThreadEPNS_6mirror6ObjectExibNS_11ThreadStateE+120) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#4 pc 00074fc9 /system/framework/arm/boot.oat (Java_java_lang_Thread_sleep__Ljava_lang_Object_2JI+132) sart/runtime/runtime.cc:292] at java.lang.Thread.sleep!(Native method) sart/runtime/runtime.cc:292] - sleeping on <0x01b425a2> (a java.lang.Object) sart/runtime/runtime.cc:292] at java.lang.Thread.sleep(Thread.java:1031) sart/runtime/runtime.cc:292] - locked <0x01b425a2> (a java.lang.Object) sart/runtime/runtime.cc:292] at java.lang.Thread.sleep(Thread.java:985) sart/runtime/runtime.cc:292] at java.lang.Daemons$FinalizerWatchdogDaemon.sleepFor(Daemons.java:261) sart/runtime/runtime.cc:292] at java.lang.Daemons$FinalizerWatchdogDaemon.waitForFinalization(Daemons.java:272) sart/runtime/runtime.cc:292] at java.lang.Daemons$FinalizerWatchdogDaemon.run(Daemons.java:220) sart/runtime/runtime.cc:292] at java.lang.Thread.run(Thread.java:818) sart/runtime/runtime.cc:292] sart/runtime/runtime.cc:292] "GCDaemon" prio=5 tid=10 Waiting sart/runtime/runtime.cc:292] | group="" sCount=0 dsCount=0 obj=0x12c183a0 self=0xb482c000 sart/runtime/runtime.cc:292] | sysTid=30751 nice=0 cgrp=default sched=0/0 handle=0xb491f480 sart/runtime/runtime.cc:292] | state=S schedstat=( 0 0 0 ) utm=22 stm=5 core=1 HZ=100 sart/runtime/runtime.cc:292] | stack=0xa3d5d000-0xa3d5f000 stackSize=1036KB sart/runtime/runtime.cc:292] | held mutexes= sart/runtime/runtime.cc:292] native: #00 pc 000133dc /system/lib/libc.so (syscall+28) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#1 pc 000ab89b /system/lib/libart.so (_ZN3art17ConditionVariable4WaitEPNS_6ThreadE+82) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#2 pc 001ee9e5 /system/lib/libart.so (_ZN3art7Monitor4WaitEPNS_6ThreadExibNS_11ThreadStateE+956) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#3 pc 001efdf9 /system/lib/libart.so (_ZN3art7Monitor4WaitEPNS_6ThreadEPNS_6mirror6ObjectExibNS_11ThreadStateE+120) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#4 pc 001feb85 /system/lib/libart.so (_ZN3artL11Object_waitEP7_JNIEnvP8_jobject+32) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#5 pc 000003ef /system/framework/arm/boot.oat (Java_java_lang_Object_wait__+82) sart/runtime/runtime.cc:292] at java.lang.Object.wait!(Native method) sart/runtime/runtime.cc:292] - waiting on <0x1a779233> (a java.lang.Daemons$GCDaemon) sart/runtime/runtime.cc:292] at java.lang.Daemons$GCDaemon.run(Daemons.java:347) sart/runtime/runtime.cc:292] - locked <0x1a779233> (a java.lang.Daemons$GCDaemon) sart/runtime/runtime.cc:292] at java.lang.Thread.run(Thread.java:818) sart/runtime/runtime.cc:292] sart/runtime/runtime.cc:292] "Thread-1733" prio=5 tid=11 Native sart/runtime/runtime.cc:292] | group="" sCount=0 dsCount=0 obj=0x12c18400 self=0xb4828400 sart/runtime/runtime.cc:292] | sysTid=30757 nice=0 cgrp=default sched=0/0 handle=0xb491e580 sart/runtime/runtime.cc:292] | state=S schedstat=( 0 0 0 ) utm=0 stm=0 core=0 HZ=100 sart/runtime/runtime.cc:292] | stack=0xa3814000-0xa3816000 stackSize=1036KB sart/runtime/runtime.cc:292] | held mutexes= sart/runtime/runtime.cc:292] native: #00 pc 0003a2b4 /system/lib/libc.so (__accept4+8) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#1 pc 00000a4b /system/lib/libnetd_client.so (???) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#2 pc 00014c21 /system/lib/libc.so (accept4+8) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#3 pc 0008a341 /system/lib/libandroid_runtime.so (???) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#4 pc 0028611f /system/framework/arm/boot.oat (Java_android_net_LocalSocketImpl_accept__Ljava_io_FileDescriptor_2Landroid_net_LocalSocketImpl_2+122) sart/runtime/runtime.cc:292] at android.net.LocalSocketImpl.accept(Native method) sart/runtime/runtime.cc:292] at android.net.LocalSocketImpl.accept(LocalSocketImpl.java:331) sart/runtime/runtime.cc:292] at android.net.LocalServerSocket.accept(LocalServerSocket.java:90) sart/runtime/runtime.cc:292] at com.android.tools.ir.server.Server$SocketServerThread.run(Server.java:165) sart/runtime/runtime.cc:292] at java.lang.Thread.run(Thread.java:818) sart/runtime/runtime.cc:292] sart/runtime/runtime.cc:292] "RenderThread" prio=5 tid=12 Native sart/runtime/runtime.cc:292] | group="" sCount=0 dsCount=0 obj=0x12c184c0 self=0xafcc5400 sart/runtime/runtime.cc:292] | sysTid=30758 nice=-4 cgrp=default sched=0/0 handle=0xb491fc00 sart/runtime/runtime.cc:292] | state=S schedstat=( 0 0 0 ) utm=1659 stm=508 core=0 HZ=100 sart/runtime/runtime.cc:292] | stack=0xa3163000-0xa3165000 stackSize=1012KB sart/runtime/runtime.cc:292] | held mutexes= sart/runtime/runtime.cc:292] native: #00 pc 0003a274 /system/lib/libc.so (__epoll_pwait+20) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#1 pc 000151df /system/lib/libc.so (epoll_pwait+26) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#2 pc 000151ed /system/lib/libc.so (epoll_wait+6) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#3 pc 00012713 /system/lib/libutils.so (_ZN7android6Looper9pollInnerEi+98) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#4 pc 0001293d /system/lib/libutils.so (_ZN7android6Looper8pollOnceEiPiS1_PPv+92) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#5 pc 0003ed9d /system/lib/libhwui.so (_ZN7android10uirenderer12renderthread12RenderThread10threadLoopEv+44) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#6 pc 000106d1 /system/lib/libutils.so (_ZN7android6Thread11_threadLoopEPv+112) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#7 pc 00065329 /system/lib/libandroid_runtime.so (_ZN7android14AndroidRuntime15javaThreadShellEPv+72) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#8 pc 0001016d /system/lib/libutils.so (???) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#9 pc 00016f0f /system/lib/libc.so (_ZL15__pthread_startPv+30) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#10 pc 00014f43 /system/lib/libc.so (__start_thread+6) sart/runtime/runtime.cc:292] (no managed stack frames) sart/runtime/runtime.cc:292] sart/runtime/runtime.cc:292] "AsyncTask android/android-ConstraintLayoutExamples#1" prio=5 tid=14 Waiting sart/runtime/runtime.cc:292] | group="" sCount=0 dsCount=0 obj=0x12c18520 self=0xb4831000 sart/runtime/runtime.cc:292] | sysTid=30841 nice=10 cgrp=bg_non_interactive sched=0/0 handle=0xb4922400 sart/runtime/runtime.cc:292] | state=S schedstat=( 0 0 0 ) utm=20 stm=1 core=1 HZ=100 sart/runtime/runtime.cc:292] | stack=0xa228f000-0xa2291000 stackSize=1036KB sart/runtime/runtime.cc:292] | held mutexes= sart/runtime/runtime.cc:292] native: #00 pc 000133dc /system/lib/libc.so (syscall+28) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#1 pc 000ab89b /system/lib/libart.so (_ZN3art17ConditionVariable4WaitEPNS_6ThreadE+82) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#2 pc 001ee9e5 /system/lib/libart.so (_ZN3art7Monitor4WaitEPNS_6ThreadExibNS_11ThreadStateE+956) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#3 pc 001efdf9 /system/lib/libart.so (_ZN3art7Monitor4WaitEPNS_6ThreadEPNS_6mirror6ObjectExibNS_11ThreadStateE+120) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#4 pc 001feb5d /system/lib/libart.so (_ZN3artL13Object_waitJIEP7_JNIEnvP8_jobjectxi+36) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#5 pc 0000061b /system/framework/arm/boot.oat (Java_java_lang_Object_wait__JI+102) sart/runtime/runtime.cc:292] at java.lang.Object.wait!(Native method) sart/runtime/runtime.cc:292] - waiting on <0x39e6f9f0> (a java.lang.Object) sart/runtime/runtime.cc:292] at java.lang.Thread.parkFor(Thread.java:1220) sart/runtime/runtime.cc:292] - locked <0x39e6f9f0> (a java.lang.Object) sart/runtime/runtime.cc:292] at sun.misc.Unsafe.park(Unsafe.java:299) sart/runtime/runtime.cc:292] at java.util.concurrent.locks.LockSupport.park(LockSupport.java:157) sart/runtime/runtime.cc:292] at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2016) sart/runtime/runtime.cc:292] at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:410) sart/runtime/runtime.cc:292] at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1035) sart/runtime/runtime.cc:292] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1097) sart/runtime/runtime.cc:292] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) sart/runtime/runtime.cc:292] at java.lang.Thread.run(Thread.java:818) sart/runtime/runtime.cc:292] sart/runtime/runtime.cc:292] "Binder_3" prio=5 tid=15 Native sart/runtime/runtime.cc:292] | group="" sCount=0 dsCount=0 obj=0x12c18580 self=0xafea5c00 sart/runtime/runtime.cc:292] | sysTid=31409 nice=0 cgrp=default sched=0/0 handle=0xafcab580 sart/runtime/runtime.cc:292] | state=S schedstat=( 0 0 0 ) utm=11 stm=16 core=1 HZ=100 sart/runtime/runtime.cc:292] | stack=0xa2e69000-0xa2e6b000 stackSize=1012KB sart/runtime/runtime.cc:292] | held mutexes= sart/runtime/runtime.cc:292] native: #00 pc 0003baa8 /system/lib/libc.so (__ioctl+8) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#1 pc 000526b1 /system/lib/libc.so (ioctl+14) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#2 pc 0001f687 /system/lib/libbinder.so (_ZN7android14IPCThreadState14talkWithDriverEb+138) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#3 pc 0001fbad /system/lib/libbinder.so (_ZN7android14IPCThreadState20getAndExecuteCommandEv+44) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#4 pc 0001fc6b /system/lib/libbinder.so (_ZN7android14IPCThreadState14joinThreadPoolEb+94) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#5 pc 00023e73 /system/lib/libbinder.so (???) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#6 pc 000106d1 /system/lib/libutils.so (_ZN7android6Thread11_threadLoopEPv+112) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#7 pc 00065329 /system/lib/libandroid_runtime.so (_ZN7android14AndroidRuntime15javaThreadShellEPv+72) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#8 pc 0001016d /system/lib/libutils.so (???) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#9 pc 00016f0f /system/lib/libc.so (_ZL15__pthread_startPv+30) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#10 pc 00014f43 /system/lib/libc.so (__start_thread+6) sart/runtime/runtime.cc:292] (no managed stack frames) sart/runtime/runtime.cc:292] sart/runtime/runtime.cc:292] "AsyncTask android/android-ConstraintLayoutExamples#2" prio=5 tid=16 Waiting sart/runtime/runtime.cc:292] | group="" sCount=0 dsCount=0 obj=0x12c185e0 self=0xa357a400 sart/runtime/runtime.cc:292] | sysTid=32217 nice=10 cgrp=bg_non_interactive sched=0/0 handle=0xb4924c00 sart/runtime/runtime.cc:292] | state=S schedstat=( 0 0 0 ) utm=12 stm=0 core=1 HZ=100 sart/runtime/runtime.cc:292] | stack=0xa1fff000-0xa2001000 stackSize=1036KB sart/runtime/runtime.cc:292] | held mutexes= sart/runtime/runtime.cc:292] native: #00 pc 000133dc /system/lib/libc.so (syscall+28) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#1 pc 000ab89b /system/lib/libart.so (_ZN3art17ConditionVariable4WaitEPNS_6ThreadE+82) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#2 pc 001ee9e5 /system/lib/libart.so (_ZN3art7Monitor4WaitEPNS_6ThreadExibNS_11ThreadStateE+956) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#3 pc 001efdf9 /system/lib/libart.so (_ZN3art7Monitor4WaitEPNS_6ThreadEPNS_6mirror6ObjectExibNS_11ThreadStateE+120) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#4 pc 001feb5d /system/lib/libart.so (_ZN3artL13Object_waitJIEP7_JNIEnvP8_jobjectxi+36) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#5 pc 0000061b /system/framework/arm/boot.oat (Java_java_lang_Object_wait__JI+102) 07-06 15:16:49.188 30735-30735/com.google.androidstudio.motionlayoutexample A/art: sart/runtime/runtime.cc:292] at java.lang.Object.wait!(Native method) sart/runtime/runtime.cc:292] - waiting on <0x071fbb69> (a java.lang.Object) sart/runtime/runtime.cc:292] at java.lang.Thread.parkFor(Thread.java:1220) sart/runtime/runtime.cc:292] - locked <0x071fbb69> (a java.lang.Object) sart/runtime/runtime.cc:292] at sun.misc.Unsafe.park(Unsafe.java:299) sart/runtime/runtime.cc:292] at java.util.concurrent.locks.LockSupport.park(LockSupport.java:157) sart/runtime/runtime.cc:292] at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2016) sart/runtime/runtime.cc:292] at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:410) sart/runtime/runtime.cc:292] at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1035) sart/runtime/runtime.cc:292] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1097) sart/runtime/runtime.cc:292] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) sart/runtime/runtime.cc:292] at java.lang.Thread.run(Thread.java:818) sart/runtime/runtime.cc:292] sart/runtime/runtime.cc:292] "hwuiTask2" prio=5 tid=13 Native sart/runtime/runtime.cc:292] | group="" sCount=0 dsCount=0 obj=0x12e980a0 self=0xafea4400 sart/runtime/runtime.cc:292] | sysTid=5053 nice=-2 cgrp=default sched=0/0 handle=0xafcb0a80 sart/runtime/runtime.cc:292] | state=S schedstat=( 0 0 0 ) utm=0 stm=0 core=0 HZ=100 sart/runtime/runtime.cc:292] | stack=0xa0c13000-0xa0c15000 stackSize=1012KB sart/runtime/runtime.cc:292] | held mutexes= sart/runtime/runtime.cc:292] native: #00 pc 000133dc /system/lib/libc.so (syscall+28) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#1 pc 00016de1 /system/lib/libc.so (_Z33__pthread_cond_timedwait_relativeP14pthread_cond_tP15pthread_mutex_tPK8timespec+56) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#2 pc 00015125 /system/lib/libhwui.so (???) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#3 pc 000106d1 /system/lib/libutils.so (_ZN7android6Thread11_threadLoopEPv+112) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#4 pc 00065329 /system/lib/libandroid_runtime.so (_ZN7android14AndroidRuntime15javaThreadShellEPv+72) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#5 pc 0001016d /system/lib/libutils.so (???) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#6 pc 00016f0f /system/lib/libc.so (_ZL15__pthread_startPv+30) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#7 pc 00014f43 /system/lib/libc.so (__start_thread+6) sart/runtime/runtime.cc:292] (no managed stack frames) sart/runtime/runtime.cc:292] sart/runtime/runtime.cc:292] "hwuiTask1" prio=5 tid=17 Native sart/runtime/runtime.cc:292] | group="" sCount=0 dsCount=0 obj=0x12eac0a0 self=0xafeaac00 sart/runtime/runtime.cc:292] | sysTid=5052 nice=-2 cgrp=default sched=0/0 handle=0xafcb0800 sart/runtime/runtime.cc:292] | state=S schedstat=( 0 0 0 ) utm=1 stm=0 core=0 HZ=100 sart/runtime/runtime.cc:292] | stack=0xa23f1000-0xa23f3000 stackSize=1012KB sart/runtime/runtime.cc:292] | held mutexes= sart/runtime/runtime.cc:292] native: #00 pc 000133dc /system/lib/libc.so (syscall+28) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#1 pc 00016de1 /system/lib/libc.so (_Z33__pthread_cond_timedwait_relativeP14pthread_cond_tP15pthread_mutex_tPK8timespec+56) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#2 pc 00015125 /system/lib/libhwui.so (???) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#3 pc 000106d1 /system/lib/libutils.so (_ZN7android6Thread11_threadLoopEPv+112) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#4 pc 00065329 /system/lib/libandroid_runtime.so (_ZN7android14AndroidRuntime15javaThreadShellEPv+72) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#5 pc 0001016d /system/lib/libutils.so (???) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#6 pc 00016f0f /system/lib/libc.so (_ZL15__pthread_startPv+30) sart/runtime/runtime.cc:292] native: android/android-ConstraintLayoutExamples#7 pc 00014f43 /system/lib/libc.so (__start_thread+6) sart/runtime/runtime.cc:292] (no managed stack frames) sart/runtime/runtime.cc:292] sart/runtime/runtime.cc:292] 07-06 15:16:49.188 30735-30735/com.google.androidstudio.motionlayoutexample A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 30735 (onlayoutexample)

"Start activity with launch bounds" launches activity in same task

The "Start activity with launch bounds" button, which uses ActivityOptions.setLaunchBounds(), does not launch the activity in a new task. Because the activity launches in the same task as the activity it was launched from, it cannot apply new boundaries to itself.

This can be fixed by adding intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); to the intent object at MainActivity.java:96.

RecyclerView Causing NullPointer on CardView Item

I am using a RecylerView to populate CardView items. I am noticing that the RecyclerView is generating a NullPointer here, as for some reason the RecyclerView references the parent view and not the individual CardView.

I believe the error is occurring here:

  public ViewHolder(View v) {
            super(v);
            userAvatar = (ImageView) findViewById(R.id.profile_image);
            userID = (TextView) findViewById(R.id.user_ID);
            userComment = (TextView) findViewById(R.id.user_comment_textview);
        }

Here is my individual CardView XML (individual_comment.xml):

<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/tools"
xmlns:card_view="http://schemas.android.com/apk/res-auto"
android:id="@+id/card_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="5dp"
card_view:cardCornerRadius="4dp">


<LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="@color/comment_backgroud_grey"
    android:orientation="horizontal"
    android:padding="@dimen/individual_comment_padding">

    <de.hdodenhof.circleimageview.CircleImageView
        android:id="@+id/profile_image"
        android:layout_width="@dimen/avatar_image_dimension"
        android:layout_height="@dimen/avatar_image_dimension"
        android:layout_gravity="center_vertical"
        android:layout_marginLeft="8dp"
        android:layout_marginStart="8dp"
        android:src="@drawable/empty_avatar_256x256"
        app:civ_border_color="#FF000000"
        app:civ_border_width="@dimen/circle_image_border_width" />

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical">

        <TextView
            android:id="@+id/user_ID"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginEnd="16dp"
            android:layout_marginLeft="8dp"
            android:layout_marginRight="16dp"
            android:layout_marginStart="8dp"
            android:layout_marginTop="8dp"
            android:text="Name"
            android:textColor="@color/black"
            android:textSize="@dimen/individual_comment_userID_textsize"
            android:textStyle="bold" />

        <TextView
            android:id="@+id/user_comment_textview"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginEnd="16dp"
            android:layout_marginLeft="8dp"
            android:layout_marginRight="16dp"
            android:layout_marginStart="8dp"
            android:hint="This text should be the comment that I Type, not the default text I set in the XML."
            android:paddingBottom="1dp"
            android:textColor="@color/black"
            android:textSize="@dimen/individual_comment_userComment_textsize" />

    </LinearLayout>
</LinearLayout>

</android.support.v7.widget.CardView>

I am receiving a NullPointer for this line:

 @Override
        public void onBindViewHolder(ViewHolder holder, int position) {
//nullponter, I believe it is not recognizing "user Comment"                holder.userComment.setText(mDataSet.get(position).getUserComment());
                String x = mDataSet.get(position).getUserComment();
                Log.v("ON_BIND_VIEW", "THE STRING IS " + x);
                Log.v("THE_POSITION", "THE POSITION IS " + position);
            }

onCreateViewHolder:

  @Override
    public MyAdapter.ViewHolder onCreateViewHolder(ViewGroup parent,
                                                   int viewType) {
        // create a new view
        View v = LayoutInflater.from(parent.getContext())
                .inflate(R.layout.individual_comment, parent, false);
        // set the view's size, margins, paddings and layout parameters
        return new ViewHolder(v);
    }

constraintlayout 1.1.1 not work well in listview

i recently update the constraintlayout from 1.0.2 to 1.1.1,i found that when you scroll the listview(also expandablelistview) it run very slowly, once you change the constraintlayout to 1.0.2, the listview runs very good,i don't know how to convert this problem to the develper of ConstraintLayout,so i write it here.....

CustomAttribute TextSize extremely large

If you try to set text size with custom attribute the end result is an extremely large text:

<CustomAttribute
                motion:attributeName="textSize"
                motion:customDimension="14sp"/>

Example is Full of Errors and Won't Even Run

Have the developers of this sample actually tried to "git clone" it and then run it on Android Studio 3.0 +?

I know I'm actually supposed to specify the errors but this sample just won't work straight up. LOL

Do we need a special setup?

Memory growing issue

just install sample project. Run on an emulator. Open Memory Monitor. Scroll up and down with several times. Memory is growing. Sometimes GC start, but cannot release more memory. Always call GC.

Any idea on this issue?

Optimal way to use it with ContentProvider, Loaders, etc...

There are many solutions out there that are very expensive, so... is there an optimal way to load data from a ContentProvider or directly from SQLite when using a RecyclerView? Something similar to the SimpleCursorAdapter for ListView? Thanks!

Bug: Bad integration with CoordinateLayout

If I scroll a really tiny bit yet also fast, it works like a spring, going up&down and then up.

See attached video.

2018-10-19_10-13-22.zip

This happens even if I update everything to latest version, including conversion to android-x.

This issue might have existed way before MotionLayout, though.

androidx.core.widget.NestedScrollView is not scrolling

<androidx.core.widget.NestedScrollView
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/background_screens"
    android:fillViewport="true">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical">

            <LinearLayout
                android:id="@+id/appbarlayout"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="@color/colorSearchBackground"
                android:orientation="vertical">

                <RelativeLayout
                    android:id="@+id/activity_main"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginBottom="@dimen/margin_10"
                    android:background="@color/colorSearchBackground">

                    <bike.grup.riderapp.utils.CutLayout
                        android:id="@+id/diagonalLayout"
                        android:layout_width="match_parent"
                        android:layout_height="@dimen/_215sdp"
                        android:layout_alignParentStart="true"
                        android:layout_alignParentTop="true">

                        <ImageView
                            android:layout_width="match_parent"
                            android:layout_height="match_parent"
                            android:background="#d4b6b6b6"
                            android:scaleType="centerCrop"
                            app:srcCompat="@drawable/placeholder" />

                    </bike.grup.riderapp.utils.CutLayout>

                    <de.hdodenhof.circleimageview.CircleImageView
                        android:id="@+id/avatar2"
                        android:layout_width="@dimen/_90sdp"
                        android:layout_height="@dimen/_90sdp"
                        android:layout_centerHorizontal="true"
                        android:layout_marginTop="@dimen/_130sdp"
                        android:layout_marginEnd="10dp"
                        android:layout_marginBottom="15dp"
                        android:padding="10dp"
                        android:src="@drawable/feed_profile_image" />

                    <TextView
                        android:id="@+id/title"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_below="@id/avatar2"
                        android:layout_centerHorizontal="true"
                        android:layout_gravity="center|center_vertical"
                        android:layout_marginStart="@dimen/margin_20"
                        android:layout_marginTop="-10dp"
                        android:layout_marginEnd="@dimen/margin_20"
                        android:fontFamily="@font/montserrat_semibold"
                        android:gravity="center_vertical|center"
                        android:padding="5dp"
                        android:text="HOG Baharien Chapter"
                        android:textAllCaps="false"
                        android:textColor="@color/colorPrimary"
                        android:textSize="15sp"
                        android:textStyle="bold" />

                    <TextView
                        android:id="@+id/subtitle"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_below="@id/title"
                        android:layout_centerHorizontal="true"
                        android:layout_gravity="center|center_vertical"
                        android:layout_marginStart="@dimen/margin_20"
                        android:layout_marginTop="3dp"
                        android:layout_marginEnd="@dimen/margin_20"
                        android:fontFamily="@font/montserrat_regular"
                        android:gravity="center_vertical|center"
                        android:text="Bahrains Official Harley Davision Riding Club"
                        android:textAllCaps="false"
                        android:textColor="#767676"
                        android:textSize="13sp" />

                </RelativeLayout>

            </LinearLayout>

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical">

            <com.google.android.material.tabs.TabLayout
                android:id="@+id/tabs"
                android:layout_width="match_parent"
                android:layout_height="@dimen/_40sdp"
                android:background="@color/colorSearchBackground"
                app:tabGravity="fill"
                app:tabIndicatorColor="#000000"
                app:tabMode="fixed"
                app:tabTextAppearance="@style/MineCustomTabText"
                app:tabTextColor="#000000" />

            <bike.grup.riderapp.utils.NonSwipeableViewPager
                android:id="@+id/viewpager"
                android:layout_width="match_parent"
                android:layout_height="wrap_content" />

        </LinearLayout>

    </LinearLayout>

</androidx.core.widget.NestedScrollView>

MotionLayout: Fragment Transition Example (2/2)

move the blue button open the ListFragment, after scroll the list and go back the MainFragment,happen crash.

the exception trace:
java.lang.NullPointerException: Attempt to invoke interface method 'void androidx.core.view.NestedScrollingParent2.onStopNestedScroll(android.view.View, int)' on a null object reference
at com.google.androidstudio.motionlayoutexample.utils.TouchFrameLayout.onStopNestedScroll(TouchFrameLayout.java:59)
at androidx.core.view.ViewParentCompat.onStopNestedScroll(ViewParentCompat.java:284)
at androidx.core.view.NestedScrollingChildHelper.stopNestedScroll(NestedScrollingChildHelper.java:188)
at androidx.recyclerview.widget.RecyclerView.stopNestedScroll(RecyclerView.java:11379)
at androidx.recyclerview.widget.RecyclerView$ViewFlinger.run(RecyclerView.java:5251)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:911)
at android.view.Choreographer.doCallbacks(Choreographer.java:686)
at android.view.Choreographer.doFrame(Choreographer.java:619)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:897)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:7331)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1321)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1211)

run demo,RuntimeException

03-09 11:49:36.746 19183-19183/? E/dalvikvm: >>>>> Normal User
03-09 11:49:36.746 19183-19183/? E/dalvikvm: >>>>> com.example.android.constraintlayoutexamples [ userId:0 | appId:10185 ]
03-09 11:49:36.907 19183-19183/com.example.android.constraintlayoutexamples E/dalvikvm: Could not find class 'android.graphics.drawable.RippleDrawable', referenced from method android.support.v7.widget.AppCompatImageHelper.hasOverlappingRendering
03-09 11:50:14.503 19183-19183/com.example.android.constraintlayoutexamples E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.android.constraintlayoutexamples, PID: 19183
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.android.constraintlayoutexamples/com.example.android.constraintlayoutexamples.ConstraintSetExampleActivity}: java.lang.NumberFormatException: Invalid float: "res/drawable-sw360dp-xxhdpi/tw_ic_menu_clipboard_holo_dark.png"
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2305)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2363)
at android.app.ActivityThread.access$900(ActivityThread.java:161)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1265)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:157)
at android.app.ActivityThread.main(ActivityThread.java:5356)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1265)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NumberFormatException: Invalid float: "res/drawable-sw360dp-xxhdpi/tw_ic_menu_clipboard_holo_dark.png"
at java.lang.StringToReal.invalidReal(StringToReal.java:63)
at java.lang.StringToReal.initialParse(StringToReal.java:114)
at java.lang.StringToReal.parseFloat(StringToReal.java:304)
at java.lang.Float.parseFloat(Float.java:300)
at android.content.res.TypedArray.getFloat(TypedArray.java:288)
at android.support.constraint.ConstraintSet.populateConstraint(ConstraintSet.java:2090)
at android.support.constraint.ConstraintSet.fillFromAttributeList(ConstraintSet.java:1901)
at android.support.constraint.ConstraintSet.load(ConstraintSet.java:1870)
at com.example.android.constraintlayoutexamples.ConstraintSetExampleActivity.onCreate(ConstraintSetExampleActivity.java:64)
at android.app.Activity.performCreate(Activity.java:5439)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2269)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2363) 
at android.app.ActivityThread.access$900(ActivityThread.java:161) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1265) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:157) 
at android.app.ActivityThread.main(ActivityThread.java:5356) 
at java.lang.reflect.Method.invokeNative(Native Method) 
at java.lang.reflect.Method.invoke(Method.java:515) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1265) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081) 
at dalvik.system.NativeStart.main(Native Method) 

Constraint Layout 2.0 alpha1 CustomAttribute has an error with attributeName="Alpha"

Hi,There:
CustomAttribute has an error ,attributeName="Alpha",when the Animation finished,the button return to the "start" state. I don't use this way:android:alpha="0.2"
my code looks like:

<Transition
    motion:constraintSetEnd="@+id/end"
    motion:constraintSetStart="@+id/start"
    motion:duration="1000"
    motion:interpolator="linear">
    <OnSwipe
        motion:dragDirection="dragRight"
        motion:touchAnchorId="@id/button"
        motion:touchAnchorSide="right" />
</Transition>

<ConstraintSet android:id="@+id/start">
    <Constraint
        android:id="@id/button"
        android:layout_width="64dp"
        android:layout_height="64dp"
        android:layout_marginStart="8dp"
        motion:layout_constraintBottom_toBottomOf="parent"
        motion:layout_constraintStart_toStartOf="parent"
        motion:layout_constraintTop_toTopOf="parent">
        <CustomAttribute
            motion:attributeName="Alpha"
            motion:customFloatValue="1.0" />
    </Constraint>
</ConstraintSet>

<ConstraintSet android:id="@+id/end">
    <Constraint
        android:id="@id/button"
        android:layout_width="64dp"
        android:layout_height="64dp"
        android:layout_marginEnd="8dp"
        motion:layout_constraintBottom_toBottomOf="parent"
        motion:layout_constraintEnd_toEndOf="parent"
        motion:layout_constraintTop_toTopOf="parent">
        <CustomAttribute
            motion:attributeName="Alpha"
            motion:customFloatValue="0.2" />
    </Constraint>
</ConstraintSet>

Thanks.

Found bug in measurement logic

    <!-- Root -->
    <android.support.constraint.ConstraintLayout
        android:id="@+id/fl_bottom_bar_container"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        >

        <!-- Toolbar area: 85% -->
        <android.support.constraint.Guideline
            android:id="@+id/guideline_top"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:orientation="horizontal"
            app:layout_constraintGuide_percent=".85"
            />

        <View
            android:layout_width="0dp"
            android:layout_height="0dp"
            android:background="@color/ep_pink"
            app:layout_constraintTop_toTopOf="@+id/guideline_top"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintDimensionRatio="w,1:1"
            app:layout_constraintLeft_toLeftOf="parent"
            app:layout_constraintRight_toRightOf="parent"
            />

    </android.support.constraint.ConstraintLayout>

Expected:

  • square size of the view
  • height of the view should be 25% of screen
  • view centered horizontally on the screen

Reality:

  • onMeasure view got wrong height value

Potentially there are several problems:

  • app:layout_constraintDimensionRatio="w,1:1" instead of width should be set height

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.