2015-01-29 2 views
2

안드로이드에서 새로운 응용 프로그램을 만들 때 선형 레이아웃 대신 상대 레이아웃으로 만들었습니다. ... 새 응용 프로그램을 만들 때 어떻게 선형 레이아웃을 만들 수 있습니까? 상대 대신 기본적으로? 기본적으로 안드로이드 선형 레이아웃을 만들 때 상대 대신 새로운 응용 프로그램을 만들 때

enter code here 
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 
xmlns:tools="http://schemas.android.com/tools" 
android:layout_width="match_parent" 
android:layout_height="match_parent" 
tools:context="${relativePackage}.${activityClass}" > 

<TextView 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content" 
    android:text="@string/hello_world" /> 

+0

무엇을 사용하고 계십니까? –

+0

eclipse 및 jdk-8u25-windows-x64 – predactor

+0

[Android 레이아웃을 상대에서 선형으로 변경] (http://stackoverflow.com/questions/11859073/change-android-layout-from-relative-to-linear) –

답변

0

확인이 단계에 따라 당신은 그것을 할 수 있습니다하지만 난 99 % 확신 만입니다. >파일 편집 템플릿 옵션 - 당신이
이동을 만들려는 파일의 형식
이동 레이아웃 폴더하고 마우스 오른쪽 버튼을 클릭하고 당신이 요청하는 사이드를 얻을 수> RES-합니다.

사이드> Sidebar

당신이 대화 상자가 열리고 있습니다. 당신은 이러한 옵션이 LayoutResourceFile 모두에 LayoutResourceFile.xmlLayoutResourceFile_vertical.xml

Dialog where you have to make change

변경 $ {ROOT_TAG}의 LinearLayout에 있습니다 기타 탭 내부 거기 두 옵션을 모두 참조 .xmlLayoutResourceFile_vertical.xml 그리고 앞으로 LinearLayout을 부모로 사용할 수 있습니다.

enter image description here

관련 문제