2 FrameLayout之间的交互

时间:2012-06-04 07:13:48

标签: android navigation android-framelayout

在2个FrameLayout或父级按钮列表和FrameLayout之间进行交互的任何Android代码示例?

  1. 将子活动添加到底部(主要)FrameLayout
  2. 在添加新的子活动时显示类似推送动画的iOS
  3. ==============

    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:orientation="vertical"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent">
        <LinearLayout 
        android:layout_width="fill_parent" 
        android:layout_height="100dp"
        android:orientation="horizontal" ><Button
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="B1" />
    
        <Button
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="B2" />
    
        <Button
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="B3" />
    
        <Button
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="B4" />
    
    <Button
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="B5" />
    
    </LinearLayout>
    
        <FrameLayout 
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"><TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="placeholder" />
    
    </FrameLayout>
    
    </LinearLayout>
    

0 个答案:

没有答案
相关问题