Android Horizontal orientation while rotation some parts missing
<p>I am currently working on a application .when i installed my_app in android mobile while rotating in horizontal view my buttons are missing,please help!! Thanks in advance
My java coding is:</p>

<pre><code>public class Draw extends Activity {
     ImageView iv1;
    @Override   
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        final DrawView drawView = new DrawView(this);
        setContentView(R.layout.draw);
        FrameLayout frm_layout=(FrameLayout) findViewById(R.id.main_frame);
        iv1=(ImageView) findViewById(R.id.imageView1);
        frm_layout.addView(drawView);

        Intent myIntent = getIntent(); // this is just for example purpose
        String test=myIntent.getExtras().getString("guided");
        if(test.equals("1"))
        {
            iv1.setImageResource(R.drawable.untitled);

            iv1.setAlpha(100);
        }
        else
        {
            //iv1.setImageResource(null);
        }
        //Toast.makeText(getApplicationContext(), test.toString(), 2000).show();


        Button btn_undo=(Button) findViewById(R.id.button1);
        btn_undo.setOnClickListener(new OnClickListener() {

            @Override
            public void onClick(View v) {
                // TODO Auto-generated method stub
                drawView.onClickUndo();
            }
        });

        Button btn_redo=(Button) findViewById(R.id.button2);
        btn_redo.setOnClickListener(new OnClickListener() {

            @Override
            public void onClick(View v) {
                // TODO Auto-generated method stub
                drawView.onClickRedo();
            }
        });
    }

}
</code></pre>

<p>My XML coding is below:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical"
    android:background="@android:color/white" &gt;
 &lt;FrameLayout
     android:id="@+id/main_frame"
     android:layout_width="fill_parent"
     android:layout_height="472dp"
     android:background="@android:color/white" &gt;

    &lt;ImageView
         android:id="@+id/imageView1"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
          /&gt; 

 &lt;/FrameLayout&gt;
 &lt;RelativeLayout
     android:id="@+id/relativeLayout1"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
       &gt;
     &lt;Button
         android:id="@+id/button2"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:layout_alignParentBottom="true"
         android:layout_alignParentTop="true"
         android:layout_centerHorizontal="true"
         android:text="Redo" /&gt;
     &lt;Button
         android:id="@+id/button1"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:layout_alignParentBottom="true"
         android:layout_alignParentLeft="true"
         android:layout_alignParentTop="true"
         android:text="Undo" /&gt;
     &lt;Button
         android:id="@+id/button3"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:layout_alignParentBottom="true"
         android:layout_alignParentRight="true"
         android:layout_alignParentTop="true"
         android:text="Save" /&gt;
 &lt;/RelativeLayout&gt;
&lt;/LinearLayout&gt;
</code></pre>
