0
のLinearLayout私はアニメーションの可視性モード見える
<LinearLayout
android:id="@+id/pilihwaktu"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="125dp">
<com.testing.CustomLinearLayout
android:id="@+id/oneway"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:background="@drawable/field_background"
android:padding="5dp"
android:layout_weight=".50">
....
</com.testing.CustomLinearLayout>
<com.testing.CustomLinearLayout
android:id="@+id/roundtrip"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:background="@drawable/field_background"
android:padding="5dp"
android:layout_weight=".50">
....
</com.testing.CustomLinearLayout>
</LinearLayout>
以下のような直線的なレイアウトを持っているし、それは私が往復がデフォルトとして消え、いつされるようにしたい、この
+---------------+---------------+
| | |
| oneway | roundtrip |
| | |
+---------------+---------------+
ようなビューが表示されますときチェックボックスをオンにすると、私はラウンドトリップをアニメートして、上の状態に戻るようにします(そして、onewayセクションは、次のように滑らかに見えるようにアニメーションされます)。 ...チェックボックスは往復非表示にアニメーション化されます確認または
を行っていないときに、私はこの linkに従うことを試みたが、それは、アニメーションとObjectAnimatorはそれを行うための簡単な方法があるように見えていなかったこれを行う正しい方法は何ですか?
おかげで、
onCheckedChange
でこれを使用して...私は...聞いて素敵な – meeftah@meeftahを簡単な方法を選択してください:) –