TableRow issue

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

TableRow issue

Postby pmskiran » Sat Aug 22, 2009 8:08 am

Hi
Everybody

In my xml file second Tablerow first button is exceeding its maximum Width, what might be the reason.

any help.....please
Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1. <?xml version="1.0" encoding="utf-8"?>
  2.  
  3. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4.  
  5.         android:orientation="vertical" android:layout_width="fill_parent"
  6.  
  7.         android:layout_height="fill_parent">
  8.  
  9.         <TableLayout android:layout_width="fill_parent"
  10.  
  11.                 android:layout_height="fill_parent">
  12.  
  13.                 <TableRow android:layout_width="fill_parent"
  14.  
  15.                         android:layout_height="wrap_content" android:gravity="center_horizontal">
  16.  
  17.                         <TextView android:id="@+id/textview1" android:layout_width="wrap_content"
  18.  
  19.                                 android:layout_height="wrap_content" android:text="select picture."
  20.  
  21.                                 android:textSize="25dp"></TextView>
  22.  
  23.  
  24.  
  25.                         >
  26.  
  27.                 </TableRow>
  28.  
  29.                 <TableRow android:layout_width="fill_parent"
  30.  
  31.                         android:layout_height="wrap_content" android:gravity="center_horizontal">
  32.  
  33.  
  34.  
  35.                         <Button android:id="@+id/button1" android:layout_width="wrap_content"
  36.  
  37.                                 android:layout_height="fill_parent" android:text="prev"
  38.  
  39.                                 android:maxWidth="40dp"></Button>
  40.  
  41.                         <ImageSwitcher android:id="@+id/imageswitcher"
  42.  
  43.                                 android:layout_width="100dp" android:layout_height="100dp"></ImageSwitcher>
  44.  
  45.                         <Button android:id="@+id/button2" android:layout_width="wrap_content"
  46.  
  47.                                 android:layout_height="fill_parent" android:text="next"
  48.  
  49.                                 android:maxWidth="40dp"></Button>
  50.  
  51.                         >
  52.  
  53.                 </TableRow>
  54.  
  55.         </TableLayout>
  56.  
  57.  
  58.  
  59. </LinearLayout>
  60.  
  61.  
Parsed in 0.005 seconds, using GeSHi 1.0.8.4
Kiran PMS
pmskiran
Junior Developer
Junior Developer
 
Posts: 12
Joined: Fri Jul 31, 2009 10:44 am
Location: India

Top

Postby gecu_121 » Thu Aug 27, 2009 6:35 pm

hello

try following

Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1. <Button android:id="@+id/button1" android:layout_width="wrap_content"
  2.  
  3.                    android:layout_height="wrap_content" android:text="prev"
  4.  
  5.                    android:maxWidth="40dp"></Button>
Parsed in 0.001 seconds, using GeSHi 1.0.8.4
gecu_121
Junior Developer
Junior Developer
 
Posts: 17
Joined: Thu Jul 30, 2009 2:39 pm

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 11 guests