2011-02-26 2 views
3

질문이 있습니다. 이런 종류의 메뉴를 개발하는 방법 (아래 그림 참조).이 메뉴를 개발하는 방법 (그림에서)

The picture

나는 기술에 관심이 있어요. IOW 아이디어, 클래스, dodgy 물건. 작업 코드는 얻고 싶지 않지만 어떻게 개발할 것인지 생각하고 있습니다.

는 ... 사전에 그것에게 그림자와 풍선 포인트를 제공하는 멋진 배경과 함께있는 LinearLayout이처럼 보이는

답변

0

을 주셔서 감사합니다. 그런 다음 선형 레이아웃의 배경 이미지 위에 앉아서 ImageButton 만 있습니다. 실제 선형 레이아웃은 배경 이미지가 컨테이너의 모양을 정의하고보다 사용자 정의하게 보이게하는 배경 이미지보다 약간 큽니다. - 멋진 기술 ...

어려운 부분을 구현하고 있습니다. 그것을 올바른 지점의 활동에 오버레이합니다. 이를 위해 AbsoluteLayout으로 랩핑하고 코드에서 AbsoluteLayout을 사용하여 올바른 위치에 오버레이 할 수 있습니다.

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
      android:layout_width="300px" 
      android:id="@+id/parent_one" 
      android:layout_height="80px" 
        android:src="@drawable/NICE_BACLKGROUND"> 

        <ImageButton 
         android:layout_width="75px" 
         android:layout_height="47px" 
         android:layout_marginLeft="10px" 
         android:src="@drawable/button1"> 
         </ImageButton> 

        <ImageButton 
         android:id="@+id/btnGoTo" 
         android:layout_width="75px" 
         android:layout_height="47px" 
         android:src="@drawable/button2"> 
        </ImageButton> 

        <ImageButton 
         android:id="@+id/btnSaveAn" 
         android:layout_width="75px" 
         android:layout_height="47px" 
         android:src="@drawable/save_to_dash"> 
        </ImageButton> 
        <ImageButton 
         android:id="@+id/btnClear" 
         android:layout_width="75px" 
         android:layout_height="47px" 
         android:src="@drawable/clear"> 
        </ImageButton> 
            <ImageButton 
         android:id="@+id/btnSaveAnd" 
         android:layout_width="75px" 
         android:layout_height="47px" 
         android:src="@drawable/save_to"> 
        </ImageButton> 
        <ImageButton 
         android:id="@+id/btnClear" 
         android:layout_width="75px" 
         android:layout_height="47px" 
         android:src="@drawable/clear"> 
        </ImageButton> 

      </LinearLayout> 
관련 문제