문제가 있습니다. 나는 안드로이드 응용 프로그램을 개발합니다.어떻게 포함 된 XML 레이아웃을 Java 코드의 다른 레이아웃으로 변경할 수 있습니까?
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="300dp"
android:layout_height="match_parent"
android:layout_gravity="clip_horizontal"
android:layout_alignParentLeft="true"
android:id="@+id/rlMenu"
>
<Button
android:id="@+id/bMusteriler"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Musteriler"
android:textSize="45dp"
android:layout_alignParentLeft="true"
/>
</RelativeLayout>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:layout_toRightOf="@id/rlEkranlar"
>
<include
android:id="@+id/include1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
layout="@layout/ikinci" />
</RelativeLayout>
</RelativeLayout>
문제점 (자바 코드) 버튼을 클릭 할 때 포함 레이아웃을 변경하는 방법이다
은이 같은 제 레이아웃 제 레이아웃을 포함?
영어로 죄송합니다. 감사합니다. .
새로운 XML 파일과 작업을 만들 의도을 통해 두 번째 전화 처음에 첫번째 레이아웃이 출력됩니다. –
질문을 수정하십시오. 명확하지 않습니다. –
@YugandharBabu 내가 = 레이아웃에 레이아웃 = "@ 레이아웃/ikinci"를 변경하려면 "@ 레이아웃/third_layout"버튼을 클릭하면. – UurYsr