[android-developers] Re: TextView visibility problem
I'm not at home right now so I can't test it, maybe tomorrow: swap the root linear layout for a relative layout. Move up the TextView, set its alignBottom to the root RelativeLayout and set its height to wrap_content. Then configure your inner RelativeLayout's alignBottom to the TextView. Its height should be set to fill_parent. I could post the code and some links tomorrow. On Oct 20, 4:07 pm, sisko adeod...@gmail.com wrote: I had began with the layout_width set to wrap_content but it did not have the desired effect. I'll admit I don't fully understand the layout concepts so I'm experienting alot. Any good material that can bring me up to speed is welcome, please! On 19 Oct, 15:50, letlite letl...@gmail.com wrote: The default orientation for LinearLayout is horizontal. It looks odd that the last TextView view has android:layout_width=fill_parent. On Oct 18, 2:43 pm,siskoadeod...@gmail.com wrote: Hi guys, the code I pasted below works great with the exception of the last view - the textView. The TextView does not display: LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:id=@+id/LinearLayout01 android:background=@drawable/bkgrnd android:layout_height=fill_parent android:layout_width=fill_parent RelativeLayout android:id=@+id/RelativeLayout01 android:layout_width=wrap_content android:layout_height=wrap_content ImageView android:id=@+id/ImageView01 android:layout_width=wrap_content android:layout_height=wrap_content android:background=@drawable/quizicon android:layout_alignParentLeft=true android:layout_alignParentTop=true /ImageView TextView android:id=@+id/TextView01 android:layout_width=wrap_content android:layout_height=wrap_content android:text=@string/help android:layout_alignParentTop=true android:layout_centerHorizontal=true android:textSize=@dimen/menuxmlTitleSize android:textColor=@color/menuxmlTitleColor /TextView ImageView android:id=@+id/ImageView02 android:layout_width=wrap_content android:layout_height=wrap_content android:background=@drawable/quizicon android:layout_alignParentRight=true android:layout_alignParentTop=true /ImageView /RelativeLayout TextView android:text=@+id/TextView02 android:id=@+id/TextView_HelpText android:layout_width=fill_parent android:layout_height=wrap_content /TextView /LinearLayout I had a similar problem which came down to an XML layout issue and I'm sure it's a similar issue here only I don't know how to resolve it. Can someone please help and tell me how I can get the TextView to display and perhaps more importantly, direct me to some good android xml layout material? Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: TextView visibility problem
You are right. When I move the TextView up it is squashed but visible. Can you advice on how I can make it visible beneath the relative layout On 20 Oct, 03:22, metal mikey coref...@gmail.com wrote: It might be because the TextView is positioned offscreen. Try putting it prior to the RelativeLayout, if you can see it then then it's likely the RelativeLayout is pushing it offscreen when the TextView is placed after the RelativeLayout. On Oct 20, 10:07 am,siskoadeod...@gmail.com wrote: The following code is causing me problems as the last view, the TextView, does not display : LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:id=@+id/LinearLayout01 android:background=@drawable/bkgrnd android:layout_height=fill_parent android:layout_width=fill_parent RelativeLayout android:id=@+id/RelativeLayout01 android:layout_width=wrap_content android:layout_height=wrap_content ImageView android:id=@+id/ImageView01 android:layout_width=wrap_content android:layout_height=wrap_content android:background=@drawable/quizicon android:layout_alignParentLeft=true android:layout_alignParentTop=true /ImageView TextView android:id=@+id/TextView01 android:layout_width=wrap_content android:layout_height=wrap_content android:text=@string/help android:layout_alignParentTop=true android:layout_centerHorizontal=true android:textSize=@dimen/menuxmlTitleSize android:textColor=@color/menuxmlTitleColor /TextView ImageView android:id=@+id/ImageView02 android:layout_width=wrap_content android:layout_height=wrap_content android:background=@drawable/quizicon android:layout_alignParentRight=true android:layout_alignParentTop=true /ImageView /RelativeLayout TextView android:text=@+id/TextView02 android:id=@+id/TextView_HelpText android:layout_width=fill_parent android:layout_height=wrap_content /TextView /LinearLayout Can anyone offer suggestions as to why the TextView does not showup in the present format? Also, please suggest good online resourse(s) that can help me learn good Android XML layout techniques, please. Thanks :-) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: TextView visibility problem
I had began with the layout_width set to wrap_content but it did not have the desired effect. I'll admit I don't fully understand the layout concepts so I'm experienting alot. Any good material that can bring me up to speed is welcome, please! On 19 Oct, 15:50, letlite letl...@gmail.com wrote: The default orientation for LinearLayout is horizontal. It looks odd that the last TextView view has android:layout_width=fill_parent. On Oct 18, 2:43 pm,siskoadeod...@gmail.com wrote: Hi guys, the code I pasted below works great with the exception of the last view - the textView. The TextView does not display: LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:id=@+id/LinearLayout01 android:background=@drawable/bkgrnd android:layout_height=fill_parent android:layout_width=fill_parent RelativeLayout android:id=@+id/RelativeLayout01 android:layout_width=wrap_content android:layout_height=wrap_content ImageView android:id=@+id/ImageView01 android:layout_width=wrap_content android:layout_height=wrap_content android:background=@drawable/quizicon android:layout_alignParentLeft=true android:layout_alignParentTop=true /ImageView TextView android:id=@+id/TextView01 android:layout_width=wrap_content android:layout_height=wrap_content android:text=@string/help android:layout_alignParentTop=true android:layout_centerHorizontal=true android:textSize=@dimen/menuxmlTitleSize android:textColor=@color/menuxmlTitleColor /TextView ImageView android:id=@+id/ImageView02 android:layout_width=wrap_content android:layout_height=wrap_content android:background=@drawable/quizicon android:layout_alignParentRight=true android:layout_alignParentTop=true /ImageView /RelativeLayout TextView android:text=@+id/TextView02 android:id=@+id/TextView_HelpText android:layout_width=fill_parent android:layout_height=wrap_content /TextView /LinearLayout I had a similar problem which came down to an XML layout issue and I'm sure it's a similar issue here only I don't know how to resolve it. Can someone please help and tell me how I can get the TextView to display and perhaps more importantly, direct me to some good android xml layout material? Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: TextView visibility problem
On Wed, Oct 20, 2010 at 6:37 PM, sisko adeod...@gmail.com wrote: I had began with the layout_width set to wrap_content but it did not have the desired effect. I'll admit I don't fully understand the layout concepts so I'm experienting alot. Any good material that can bring me up to speed is welcome, please! On 19 Oct, 15:50, letlite letl...@gmail.com wrote: The default orientation for LinearLayout is horizontal. It looks odd that the last TextView view has android:layout_width=fill_parent. On Oct 18, 2:43 pm,siskoadeod...@gmail.com wrote: Hi guys, the code I pasted below works great with the exception of the last view - the textView. The TextView does not display: LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:id=@+id/LinearLayout01 android:background=@drawable/bkgrnd android:layout_height=fill_parent android:layout_width=fill_parent RelativeLayout android:id=@+id/RelativeLayout01 android:layout_width=wrap_content android:layout_height=wrap_content ImageView android:id=@+id/ImageView01 android:layout_width=wrap_content android:layout_height=wrap_content android:background=@drawable/quizicon android:layout_alignParentLeft=true android:layout_alignParentTop=true /ImageView TextView android:id=@+id/TextView01 android:layout_width=wrap_content android:layout_height=wrap_content android:text=@string/help android:layout_alignParentTop=true android:layout_centerHorizontal=true android:textSize=@dimen/menuxmlTitleSize android:textColor=@color/menuxmlTitleColor /TextView ImageView android:id=@+id/ImageView02 android:layout_width=wrap_content android:layout_height=wrap_content android:background=@drawable/quizicon android:layout_alignParentRight=true android:layout_alignParentTop=true /ImageView /RelativeLayout TextView android:text=@+id/TextView02 android:id=@+id/TextView_HelpText android:layout_width=fill_parent android:layout_height=wrap_content /TextView /LinearLayout I had a similar problem which came down to an XML layout issue and I'm sure it's a similar issue here only I don't know how to resolve it. Can someone please help and tell me how I can get the TextView to display and perhaps more importantly, direct me to some good android xml layout material? Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Julie http://tradinglogically.blogspot.com http://tradinglogically.blogspot.com http://vikitionary.blogspot.com http://gandhi-the-man-of-millenium.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: TextView visibility problem
This group is so helpful On Wed, Oct 20, 2010 at 6:30 PM, sisko adeod...@gmail.com wrote: You are right. When I move the TextView up it is squashed but visible. Can you advice on how I can make it visible beneath the relative layout On 20 Oct, 03:22, metal mikey coref...@gmail.com wrote: It might be because the TextView is positioned offscreen. Try putting it prior to the RelativeLayout, if you can see it then then it's likely the RelativeLayout is pushing it offscreen when the TextView is placed after the RelativeLayout. On Oct 20, 10:07 am,siskoadeod...@gmail.com wrote: The following code is causing me problems as the last view, the TextView, does not display : LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:id=@+id/LinearLayout01 android:background=@drawable/bkgrnd android:layout_height=fill_parent android:layout_width=fill_parent RelativeLayout android:id=@+id/RelativeLayout01 android:layout_width=wrap_content android:layout_height=wrap_content ImageView android:id=@+id/ImageView01 android:layout_width=wrap_content android:layout_height=wrap_content android:background=@drawable/quizicon android:layout_alignParentLeft=true android:layout_alignParentTop=true /ImageView TextView android:id=@+id/TextView01 android:layout_width=wrap_content android:layout_height=wrap_content android:text=@string/help android:layout_alignParentTop=true android:layout_centerHorizontal=true android:textSize=@dimen/menuxmlTitleSize android:textColor=@color/menuxmlTitleColor /TextView ImageView android:id=@+id/ImageView02 android:layout_width=wrap_content android:layout_height=wrap_content android:background=@drawable/quizicon android:layout_alignParentRight=true android:layout_alignParentTop=true /ImageView /RelativeLayout TextView android:text=@+id/TextView02 android:id=@+id/TextView_HelpText android:layout_width=fill_parent android:layout_height=wrap_content /TextView /LinearLayout Can anyone offer suggestions as to why the TextView does not showup in the present format? Also, please suggest good online resourse(s) that can help me learn good Android XML layout techniques, please. Thanks :-) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Julie http://tradinglogically.blogspot.com http://tradinglogically.blogspot.com http://vikitionary.blogspot.com http://gandhi-the-man-of-millenium.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: TextView visibility problem
Ah, how do you handle a problem like Maria?? On Oct 20, 9:40 am, Julie Andrews julieonli...@gmail.com wrote: This group is so helpful On Wed, Oct 20, 2010 at 6:30 PM, sisko adeod...@gmail.com wrote: You are right. When I move the TextView up it is squashed but visible. Can you advice on how I can make it visible beneath the relative layout On 20 Oct, 03:22, metal mikey coref...@gmail.com wrote: It might be because the TextView is positioned offscreen. Try putting it prior to the RelativeLayout, if you can see it then then it's likely the RelativeLayout is pushing it offscreen when the TextView is placed after the RelativeLayout. On Oct 20, 10:07 am,siskoadeod...@gmail.com wrote: The following code is causing me problems as the last view, the TextView, does not display : LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:id=@+id/LinearLayout01 android:background=@drawable/bkgrnd android:layout_height=fill_parent android:layout_width=fill_parent RelativeLayout android:id=@+id/RelativeLayout01 android:layout_width=wrap_content android:layout_height=wrap_content ImageView android:id=@+id/ImageView01 android:layout_width=wrap_content android:layout_height=wrap_content android:background=@drawable/quizicon android:layout_alignParentLeft=true android:layout_alignParentTop=true /ImageView TextView android:id=@+id/TextView01 android:layout_width=wrap_content android:layout_height=wrap_content android:text=@string/help android:layout_alignParentTop=true android:layout_centerHorizontal=true android:textSize=@dimen/menuxmlTitleSize android:textColor=@color/menuxmlTitleColor /TextView ImageView android:id=@+id/ImageView02 android:layout_width=wrap_content android:layout_height=wrap_content android:background=@drawable/quizicon android:layout_alignParentRight=true android:layout_alignParentTop=true /ImageView /RelativeLayout TextView android:text=@+id/TextView02 android:id=@+id/TextView_HelpText android:layout_width=fill_parent android:layout_height=wrap_content /TextView /LinearLayout Can anyone offer suggestions as to why the TextView does not showup in the present format? Also, please suggest good online resourse(s) that can help me learn good Android XML layout techniques, please. Thanks :-) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Juliehttp://tradinglogically.blogspot.comhttp://tradinglogically.blogspot.comhttp://vikitionary.blogspot.comhttp://gandhi-the-man-of-millenium.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: TextView visibility problem
The default orientation for LinearLayout is horizontal. It looks odd that the last TextView view has android:layout_width=fill_parent. On Oct 18, 2:43 pm, sisko adeod...@gmail.com wrote: Hi guys, the code I pasted below works great with the exception of the last view - the textView. The TextView does not display: LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:id=@+id/LinearLayout01 android:background=@drawable/bkgrnd android:layout_height=fill_parent android:layout_width=fill_parent RelativeLayout android:id=@+id/RelativeLayout01 android:layout_width=wrap_content android:layout_height=wrap_content ImageView android:id=@+id/ImageView01 android:layout_width=wrap_content android:layout_height=wrap_content android:background=@drawable/quizicon android:layout_alignParentLeft=true android:layout_alignParentTop=true /ImageView TextView android:id=@+id/TextView01 android:layout_width=wrap_content android:layout_height=wrap_content android:text=@string/help android:layout_alignParentTop=true android:layout_centerHorizontal=true android:textSize=@dimen/menuxmlTitleSize android:textColor=@color/menuxmlTitleColor /TextView ImageView android:id=@+id/ImageView02 android:layout_width=wrap_content android:layout_height=wrap_content android:background=@drawable/quizicon android:layout_alignParentRight=true android:layout_alignParentTop=true /ImageView /RelativeLayout TextView android:text=@+id/TextView02 android:id=@+id/TextView_HelpText android:layout_width=fill_parent android:layout_height=wrap_content /TextView /LinearLayout I had a similar problem which came down to an XML layout issue and I'm sure it's a similar issue here only I don't know how to resolve it. Can someone please help and tell me how I can get the TextView to display and perhaps more importantly, direct me to some good android xml layout material? Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: TextView visibility problem
It might be because the TextView is positioned offscreen. Try putting it prior to the RelativeLayout, if you can see it then then it's likely the RelativeLayout is pushing it offscreen when the TextView is placed after the RelativeLayout. On Oct 20, 10:07 am, sisko adeod...@gmail.com wrote: The following code is causing me problems as the last view, the TextView, does not display : LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:id=@+id/LinearLayout01 android:background=@drawable/bkgrnd android:layout_height=fill_parent android:layout_width=fill_parent RelativeLayout android:id=@+id/RelativeLayout01 android:layout_width=wrap_content android:layout_height=wrap_content ImageView android:id=@+id/ImageView01 android:layout_width=wrap_content android:layout_height=wrap_content android:background=@drawable/quizicon android:layout_alignParentLeft=true android:layout_alignParentTop=true /ImageView TextView android:id=@+id/TextView01 android:layout_width=wrap_content android:layout_height=wrap_content android:text=@string/help android:layout_alignParentTop=true android:layout_centerHorizontal=true android:textSize=@dimen/menuxmlTitleSize android:textColor=@color/menuxmlTitleColor /TextView ImageView android:id=@+id/ImageView02 android:layout_width=wrap_content android:layout_height=wrap_content android:background=@drawable/quizicon android:layout_alignParentRight=true android:layout_alignParentTop=true /ImageView /RelativeLayout TextView android:text=@+id/TextView02 android:id=@+id/TextView_HelpText android:layout_width=fill_parent android:layout_height=wrap_content /TextView /LinearLayout Can anyone offer suggestions as to why the TextView does not showup in the present format? Also, please suggest good online resourse(s) that can help me learn good Android XML layout techniques, please. Thanks :-) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: TextView visibility problem
I just tried the hierarchyviewer and I'm getting the following exception as soon as I click Request Layout. I restarted the server and it didn't make any difference. Exception in thread AWT-EventQueue-0 java.lang.NullPointerException at com.android.hierarchyviewer.ui.Workspace.requestLayout(Workspace.java :1018) at com.android.hierarchyviewer.ui.action.RequestLayoutAction.actionPerfo rmed(RequestLayoutAction.java:40) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sour ce) at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en