thanks - just what i was looking for.
On Monday, December 24, 2012 2:27:48 AM UTC-5, Sourav Howlader wrote:
Just mention android:gravity=center to your Root LinearLayout
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this
change the linearlayout to warp_content and put it in a
RelativeLayout/Framelayout and use the proper centering field
(centerInParent/layout_gravity)
On Sunday, December 23, 2012 3:34:16 AM UTC+2, dashman wrote:
I've got 3 View elements that i'd like to display at the center
of the page -
Just mention android:gravity=center to your Root LinearLayout
On Sunday, 23 December 2012 07:04:16 UTC+5:30, dashman wrote:
I've got 3 View elements that i'd like to display at the center
of the page - centered vertically and horizontally.
for the life of me - i can't get it to work.
i've
Just mention android:gravity=center to your Root LinearLayout
--
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
http://developer.android.com/reference/android/widget/ImageView.html#attr_android:scaleType
set scale type to the fitXY
Or you can calculate width and height for your ImageView manualy by
ParentView (width, height) with correct aspect ration for your image.
On 19 Жов, 13:15, vani reddy
I have also encountered this problem i think 9 patch images take some
space on all four sides which makes the inner content to squeeze you
have to readjust your text view or just use png... :-) this is what i
did
--
You received this message because you are subscribed to the
thanks - that was the problem.
but this seems like a layout bug.
if i have a LinearLayout with 3 elements in them
with the 1st and 3rd with layout_width of wrap_content and then
middle one with fill_parent. it seems relatively clear what i
want done. the middle element will take all the space
on further researh, it was the stretchColumns inside the
tablelayout - causing the problem
TableLayout
android:layout_width=fill_parent
android:layout_height=wrap_content
android:stretchColumns=1
but again, that attribute should be subservient to the layout_width.
if i set the
hi,
your table layout as defined in your xml specifes to fill the parent
with its content.
that is why it is not showing up the second image button.
try to adjust the width of the table layout so that image button can
also be seen
TableLayout
android:layout_width=fill_parent /here
LinearLayout
android:orientation=horizontal
android:layout_width=fill_parent
android:layout_height=wrap_content
LinearLayout
android:orientation=vertical
!-- android:layout_width=fill_parent --
android:layout_height=wrap_content
android:layout_weight=3
I'll add an example of this sort of layout to my to-do list to add to
the book. As I mentioned to somebody else earlier today, it's a long
to-do list...
Sounds good.
One more thing wanted to ask, regarding Layouts and Themes.
I have my Application (in the AndroidManifest.xml) set to the theme
Every activity can have its own theme. Just use android:theme on the
activity / tag in your AndroidManifest.
On Sun, May 16, 2010 at 11:12 PM, Anthoni anthoni.gard...@gmail.com wrote:
I'll add an example of this sort of layout to my to-do list to add to
the book. As I mentioned to somebody else
On May 17, 7:16 am, Romain Guy romain...@android.com wrote:
Every activity can have its own theme. Just use android:theme on the
activity / tag in your AndroidManifest.
Hi Romain,
Thanks for that, but I am actually wanting to switch the theme off so
it's just normal. Would it be enough to just
Thanks for that, but I am actually wanting to switch the theme off so
it's just normal. Would it be enough to just tell it to render the
default android theme but I do not know how to do that.
Found it, I just set my theme in the activity to @android:style/
Theme.NoTitleBar.Fullscreen and that
On May 16, 11:04 am, Mark Murphy mmur...@commonsware.com wrote:
You do not have any layout rules to force the two widgets not to overlap.
Move your ListView after the TableLayout the RelativeLayout definition
in the XML, and add to it:
android:layout_above=...
where ... is
Anthoni wrote:
Funny thing is I know about the layout_above tag from reading your
books, but it never occurred to me to try and use that LOL.
I'll add an example of this sort of layout to my to-do list to add to
the book. As I mentioned to somebody else earlier today, it's a long
to-do list...
Thanks Mark!!
I'm going to have 1 of my favorite beers while coding just for you :)
On Aug 14, 6:35 pm, Mark Murphy mmur...@commonsware.com wrote:
Boxy wrote:
It looks like underestimated the difficulty of this question.
I tried to post a much simpler version of the question in the
It looks like underestimated the difficulty of this question.
I tried to post a much simpler version of the question in the beginner
group but its been hours and it still has not showed up. I think they
have a problem with new topics over there.
I'll post the question here. I apologize for
Boxy wrote:
It looks like underestimated the difficulty of this question.
I tried to post a much simpler version of the question in the beginner
group but its been hours and it still has not showed up. I think they
have a problem with new topics over there.
I'll post the question
Hmm it looks like my diagrams didn't post quite right to the message
board.
Just use your imagination to picture nicely drawn boxes that borders
the text :)
On Aug 13, 12:19 pm, Boxy par...@gmail.com wrote:
First let me say that this problem is probably real easy to solve.
But I've been
20 matches
Mail list logo