On Sun, Mar 25, 2012 at 05:04:56PM -0600, Justin Anderson wrote:
> Maybe post your XML so we can see what you are talking about?

I was hoping that the detailed description was enough, but at this point,
you're right....  Note that all resizing is done in Java.

---------------------------  CUT HERE  ---------------------------

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android";
   android:layout_width="match_parent"
   android:layout_height="fill_parent"
   android:padding="4dp"
   android:background="@drawable/camerabackground"
   android:orientation="horizontal" >

   <!-- Begin Camera Preview -->

   <RelativeLayout
      android:id="@+id/cameraViewLayout"
      android:layout_weight="0"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content">

      <SurfaceView
         android:id="@+id/cameraView"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"/>

      <ImageView 
         android:id="@+id/filterAImage"
         android:scaleType="fitXY"
         android:layout_width="fill_parent"
         android:layout_height="fill_parent"
      />
   </RelativeLayout> <!-- End Camera Preview -->


   <!-- Begin right side of display -->
   <LinearLayout
      android:orientation="vertical"
      android:layout_weight="0.5"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent">

      <ScrollView
      android:layout_width="fill_parent" 
      android:layout_height="wrap_content"
      android:orientation="vertical">

         <!-- Begin Settings Layout -->
         <!-- Gets 40% of the display width and 60% of the height -->
         <!-- Surrounded by a ScrollView -->

         <TableLayout
            android:id="@+id/settingsLayout"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent">

            <!-- Flash settings -->
            <TableRow android:layout_width="fill_parent" 
android:layout_height="wrap_content">
            <TextView android:layout_width="wrap_content" 
android:layout_height="wrap_content"
               android:textSize="24dp" android:textColor="#0FF"
               android:text="@string/flashLabel" />
            <Spinner
               android:id="@+id/flashSpinner"
               android:layout_width="fill_parent"
               android:layout_height="wrap_content"
               android:drawSelectorOnTop="true"
               android:prompt="@string/flashLabel" />
            </TableRow>

            <!-- Filter settings   -->

            <!-- com.jdgapps.lib.MultiSpinner android:id="@+id/filterSpinner" 
-->
            <TableRow android:layout_width="fill_parent" 
android:layout_height="wrap_content">
            <TextView android:layout_width="wrap_content" 
android:layout_height="wrap_content"
               android:textSize="24dp" android:textColor="#0FF"
               android:text="@string/filterLabel" />
            <Spinner android:id="@+id/filterSpinner"
               android:layout_width="fill_parent"
               android:layout_height="wrap_content" 
               android:prompt="@+id/filterLabel" />
            </TableRow>

            <!-- White Balance settings -->

            <TableRow android:layout_width="fill_parent" 
android:layout_height="wrap_content">
            <TextView android:layout_width="wrap_content" 
android:layout_height="wrap_content"
               android:textSize="24dp" android:textColor="#0FF"
               android:text="@string/wbLabel" />
            <Spinner
               android:id="@+id/wbSpinner"
               android:layout_width="fill_parent"
               android:layout_height="wrap_content"
               android:drawSelectorOnTop="true"
               android:prompt="@string/wbLabel" />
         </TableRow>

            <!-- Scene settings -->

            <TableRow android:layout_width="fill_parent" 
android:layout_height="wrap_content">
            <TextView android:layout_width="wrap_content" 
android:layout_height="wrap_content"
               android:textSize="24dp" android:textColor="#0FF"
               android:text="@string/scenesLabel" />
            <Spinner
               android:id="@+id/scenesSpinner"
               android:layout_width="fill_parent"
               android:layout_height="wrap_content"
               android:drawSelectorOnTop="true"
               android:prompt="@string/scenesLabel" />
         </TableRow>

            <!-- Effects settings -->

            <TableRow android:layout_width="fill_parent" 
android:layout_height="wrap_content">
            <TextView android:layout_width="wrap_content" 
android:layout_height="wrap_content"
               android:textSize="24dp" android:textColor="#0FF"
               android:text="@string/effectsLabel" />
            <Spinner
               android:id="@+id/effectsSpinner"
               android:layout_width="fill_parent"
               android:layout_height="wrap_content"
               android:drawSelectorOnTop="true"
               android:prompt="@string/effectsLabel" />
         </TableRow>

            <!-- Focus settings -->

            <TableRow android:layout_width="fill_parent" 
android:layout_height="wrap_content">
            <TextView android:layout_width="wrap_content" 
android:layout_height="wrap_content"
               android:textSize="24dp" android:textColor="#0FF"
               android:text="@string/focusLabel" />
            <Spinner
               android:id="@+id/focusSpinner"
               android:layout_width="fill_parent"
               android:layout_height="wrap_content"
               android:drawSelectorOnTop="true"
               android:prompt="@string/focusLabel" />
         </TableRow>

            <!-- Camera settings -->

            <TableRow android:layout_width="fill_parent" 
android:layout_height="wrap_content">
            <TextView android:layout_width="wrap_content" 
android:layout_height="wrap_content"
               android:textSize="24dp" android:textColor="#0FF"
               android:text="@string/camsetLabel" />
            <Spinner
               android:id="@+id/camsetSpinner"
               android:layout_width="fill_parent"
               android:layout_height="wrap_content"
               android:drawSelectorOnTop="true"
               android:prompt="@string/camsetLabel" />
         </TableRow>

            <!-- Burst mode settings -->

            <TableRow android:layout_width="fill_parent" 
android:layout_height="wrap_content">
            <TextView android:layout_width="wrap_content" 
android:layout_height="wrap_content"
               android:textSize="24dp" android:textColor="#0FF"
               android:text="@string/burstLabel" />
            <Spinner
               android:id="@+id/burstSpinner"
               android:layout_width="fill_parent"
               android:layout_height="wrap_content"
               android:drawSelectorOnTop="true"
               android:prompt="@string/burstLabel" />
         </TableRow>

            <!-- Timer settings -->

            <TableRow android:layout_width="fill_parent" 
android:layout_height="wrap_content">
            <TextView android:layout_width="wrap_content" 
android:layout_height="wrap_content"
               android:textSize="24dp" android:textColor="#0FF"
               android:text="@string/timerLabel" />
            <Spinner
               android:id="@+id/timerSpinner"
               android:layout_width="fill_parent"
               android:layout_height="wrap_content"
               android:drawSelectorOnTop="true"
               android:prompt="@string/timerLabel" />
         </TableRow>

            <!-- Time-lapse settings -->

            <TableRow android:layout_width="fill_parent" 
android:layout_height="wrap_content">
            <TextView android:layout_width="wrap_content" 
android:layout_height="wrap_content"
               android:textSize="24dp" android:textColor="#0FF"
               android:text="@string/timelapseLabel" />
            <Spinner
               android:id="@+id/timelapseSpinner"
               android:layout_width="fill_parent"
               android:layout_height="wrap_content"
               android:drawSelectorOnTop="true"
               android:prompt="@string/timelapseLabel" />
         </TableRow>

            <!-- Antibanding settings -->

            <TableRow android:layout_width="fill_parent" 
android:layout_height="wrap_content">
            <TextView android:layout_width="wrap_content" 
android:layout_height="wrap_content"
               android:textSize="24dp" android:textColor="#0FF"
               android:text="@string/abandingLabel" />
            <Spinner
               android:id="@+id/abandingSpinner"
               android:layout_width="fill_parent"
               android:layout_height="wrap_content"
               android:drawSelectorOnTop="true"
               android:prompt="@string/abandingLabel" />
         </TableRow>
         </TableLayout> <!-- End Settings Layout -->
      </ScrollView>

      <!-- Shutter Release and Filter Descriptions -->
      <!-- Gets remaining 40% of the height -->
      <LinearLayout
         android:id="@+id/shutterLayout"
         android:orientation="horizontal"
         android:layout_weight="0.5"
         android:layout_marginLeft="6dp"
         android:layout_height="wrap_content"
         android:layout_width="fill_parent">

            <ScrollView
            android:layout_width="wrap_content" 
            android:layout_height="wrap_content"
            android:orientation="vertical">

            <TextView
               android:id="@+id/filterDescriptions"
               android:layout_weight="1"
               android:layout_width="wrap_content"
               android:layout_height="wrap_content"
               android:background="#000000">
            </TextView>
         </ScrollView>


         <ImageView
            android:id="@+id/buttonCapture"
            android:scaleType="fitXY"
            android:padding="0dp"
            android:layout_gravity="right"
            android:layout_weight="0"
            android:layout_height="wrap_content"
            android:layout_width="wrap_content">
         </ImageView>
      </LinearLayout> <!-- End of shutter release and filter descriptions -->
   </LinearLayout> <!-- End right side of display -->
</LinearLayout> <!-- End layout -->
---------------------------  CUT HERE  ---------------------------

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)            MiSTie #49997      < Running FreeBSD 7.0 >
[email protected]                    ICBM/Hurr.: 30.44406N 86.59909W

   "Now what *you* need is a proper pint of porter poured in a proper
   pewter porter pot.."     --Peter Dalgaard in alt.sysadmin.recovery

Android Apps Listing at http://www.jstrack.org/barcodes.html

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to