Now Your Friends Seem Animated
menu...though we will need to do a little work to toggle the menu item
from "show" to "hide" mode and back again.
First, modify Patchy/res/layout/main.xml to replace our TableLayout with
some LinearLayout containers:
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
>
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
>
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:singleLine="false"
android:gravity="top"
android:lines="5"
android:scrollHorizontally="false"
android:maxLines="5"
android:maxWidth="200sp"
/>
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Send"
/>
android:layout_width="fill_parent"
android:layout_height="fill_parent"
/>
Partially, we did this because we really were not using much of the
TableLayout functionality anymore. More importantly, though, we need to
isolate our collection of widgets we want to animate into a single container
– in this case, the innermost nested LinearLayout.
Next, add a statusRow View data member to Patchy:
264
Subscribe to updates at http://commonsware.com
Special Creative Commons BY-NC-SA 3.0 License Edition
menu...though we will need to do a little work to toggle the menu item
from "show" to "hide" mode and back again.
First, modify Patchy/res/layout/main.xml to replace our TableLayout with
some LinearLayout containers:
android:layout_width="fill_parent"
android:layout_height="wrap_content"
>
android:layout_width="fill_parent"
android:layout_height="wrap_content"
>
android:layout_height="wrap_content"
/>
android:layout_height="wrap_content"
android:singleLine="false"
android:gravity="top"
android:lines="5"
android:scrollHorizontally="false"
android:maxLines="5"
android:maxWidth="200sp"
/>
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Send"
/>
android:layout_height="fill_parent"
/>
Partially, we did this because we really were not using much of the
TableLayout functionality anymore. More importantly, though, we need to
isolate our collection of widgets we want to animate into a single container
– in this case, the innermost nested LinearLayout.
Next, add a statusRow View data member to Patchy:
264
Subscribe to updates at http://commonsware.com
Special Creative Commons BY-NC-SA 3.0 License Edition
