Thursday, August 15, 2013

Re: [android-developers] Re: How to animate a bar which grows in height

I'm not sure if that really works properly with animations, since I'm not sure how and if they trigger re-layouts. But in theory you could try android:gravity="bottom" in your RelativeLayout or use  android:alignParentBottom="true" in your bar child views.

If this doesn't work, you may have to bite the bullet and create a custom view that just renders your bars the way you need it. But maybe someone else has a better idea.

On Thursday, August 15, 2013 11:23:29 AM UTC-5, Daniel Rindt wrote:
2013/8/15 Nobu Games <dev.nob...@gmail.com>
Hi Daniel,

can you post the layout in which these bars are embedded? You may be able to solve it with some "bottom gravity" setting in the parent container layout

Hey,

cool thats what i haven't played with. Here is the layout:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical" >

    <View
        android:id="@+id/reference_height"
        android:layout_width="50dp"
        android:layout_height="200dp"
        android:layout_alignParentBottom="true"
        android:layout_alignParentLeft="true"
        android:layout_marginBottom="75dp"
        android:layout_marginLeft="20dp"
        android:background="@android:color/black" />

    <View
        android:id="@+id/q1"
        android:layout_width="150dp"
        android:layout_height="200dp"
        android:layout_alignParentBottom="true"
        android:layout_alignParentLeft="true"
        android:layout_marginBottom="75dp"
        android:layout_marginLeft="84dp"
        android:background="@android:color/darker_gray" />

</RelativeLayout>

Thanks for your friendly support.
Daniel

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate