Я хочу сделать меню смахивания в Android, но я не могу выдвинуть свой макет из экрана
Я пробовал анимацию и перевод X, но ничего не получалось.
![This is what I want to make 1](https://i.stack.imgur.com/TdwnU.jpg)
![This is what I want to make 2](https://i.stack.imgur.com/UwwsU.png)
это все меню, которое я написал для меню, но когда я анимирую, кнопки, кажется, работают в том месте, где были раньше, а не там, где они анимированы, я исправил это с помощью поля, но когда я использую это, оно обрезает оставшиеся макета.
<LinearLayout
android:orientation="horizontal"
android:id="@+id/menu"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:id="@+id/menu_BTNs"
android:layout_marginRight="-2dp"
android:layout_width="70dp"
android:layout_height="190dp"
android:layout_marginTop="75dp"
android:orientation="vertical">
<Button
android:id="@+id/menu_coinPLusBTN"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@drawable/coin_plus" />
<Button
android:id="@+id/menu_pointsBTN"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:layout_weight="1"
android:background="@drawable/points" />
<Button
android:id="@+id/menu_settingsBTN"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:layout_weight="1"
android:background="@drawable/settings" />
</LinearLayout>
<LinearLayout
android:background="@drawable/menu"
android:layout_width="342dp"
android:layout_height="match_parent"/>
</LinearLayout>