2012-05-31 3 views
-5

검색 상자를 안드로이드의 기본 브라우저와 같이 상단에 위치 시키려면 어떻게합니까? 검색 위젯을 의미하는 것은 아니며, 활동 상단에 지속적으로 나타나는 검색 대화 상자를 의미합니다.브라우저 상단의 검색 상자

답변

0

당신은 다른 레이아웃을 설정할 수 있습니다 상단 하나에 당신은 android:height="wrap_content"android:width="fill_parent" 와의 LinearLayout을 설정하고 android:weight="1" (9)의 무게로 될 두 번째 레이아웃을 것 weightsum (10)과 검색 창있는 LinearLayout과 부모의 LinearLayout을 설정할 수 있습니다

그래서 예 :

Linearlayout (weightsum=10) 
LinearLayout (with searchbar) weight=1 
LinearLayout (with the other content) weight = 9