xml, хотелось бы подобное поведение применить к Card в Compose.
                  
                  
                  Как я понимаю, нужно копать в сторону interactionSource?
                  
                  
                  <selector xmlns:android="http://schemas.android.com/apk/res/android">
                  
                  
                      <item
                  
                  
                          android:state_enabled="true"
                  
                  
                          android:state_pressed="true">
                  
                  
                          <objectAnimator
                  
                  
                              android:duration="@android:integer/config_shortAnimTime"
                  
                  
                              android:propertyName="translationZ"
                  
                  
                              android:valueTo="8dp"
                  
                  
                              android:valueType="floatType" />
                  
                  
                      </item>
                  
                  
                      <item>
                  
                  
                          <objectAnimator
                  
                  
                              android:duration="@android:integer/config_shortAnimTime"
                  
                  
                              android:propertyName="translationZ"
                  
                  
                              android:valueTo="0dp"
                  
                  
                              android:valueType="floatType" />
                  
                  
                      </item>
                  
                  
                  </selector>
                  
                  
                
animateFloatAsState(...) ?
Обсуждают сегодня