Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I design a layout bigger than phone's screen?

I'm developing an Android application and I want to design, in eclipse, a layout bigger than screen height.

I have a layout for a fragment and this fragment will be inside a ScrollView on FragmentActivity.

This is my fragment's layout:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/user_pro_main_view"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical" >

    <TextView
        android:id="@+id/text_state"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:text="@string/layout_state"
        android:textAppearance="?android:attr/textAppearanceLarge" />

</LinearLayout>

Do I have to change android:layout_height="match_parent" to make it bigger on eclipse's designer?

What do I have to do if I want to see the layout bigger on eclipse designer?

like image 903
VansFannel Avatar asked Oct 21 '22 08:10

VansFannel


1 Answers

Answer is pretty simple: you can't view layout which is biggern then screen on Eclipse Editor.

Possible workarounds:
1. Comment part of top views (visible) to see bottom (which are invisible), then uncomment when ready to launch.
2. Change Device Preview to bigger resolution (Nexus 10), this will give you some extra space.

like image 167
Dmytro Danylyk Avatar answered Oct 31 '22 15:10

Dmytro Danylyk