1
私はFacebookのアプリケーションのように画面の右側からメニューを表示しようとしていますが、そうするカスタムビューグループを作成しようとしましたが、そのフォーラムで何度か説明したコンテンツがまだ見つかりませんでしたので、私は別の方法で試しています。別のメニューを表示しようとしています
私の新しいアイデアが水平直線レイアウト魔女は「fill_parent」に2つのものが含まれていることです。
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal" >
<LinearLayout
android:id="@+id/around_selection_content_linear_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/yellow"
android:orientation="vertical" >
</LinearLayout>
<LinearLayout
android:id="@+id/around_selection_menu_linear_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/gray"
android:orientation="vertical" >
</LinearLayout>
</LinearLayout>
をして、私は私がやりたい、私のメニューボタンをオーバーライドし、私は
を使用しようとしましたmyLinearLayout.scrollTo(200,0);
が、それは
(あなたはなぜ?私を説明できる)何もしませんし、私は
アニメーションを試してみましたTranslateAnimation translateAnimation = new TranslateAnimation(0, 200, 0, 0);
translateAnimation.setDuration(10000);
myLinearLayout.startAnimation(translateAnimation);
これは何もしません。私がよく思い出した場合、この場所でクリックすると実際には最初のレイアウトをクリックするので、この方法ではメニューのボタンはクリックできません。
しかし、標準のユーザーエクスペリエンスはAndroidではないため、推奨しません。デベロッパーデザインガイドラインに従ってアクションバーを使用してください。 –
非常にありがとう –
まあまあ私が探していたもの、私はそれを数日間働いている、10のトピックを投稿した、私はあなたを愛してどのくらい表現することはできません... –