乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

      Android Layout XML屬性研究

       lifei_szdz 2013-04-18

      Android Layout XML屬性研究--android:layout_marginBottom

      分類: android 2060人閱讀 評論(1) 收藏 舉報

      在如下的xml配置文件中,起初對于android:layout_marginBottom,即需要控制imagebutton對于向下的間距,則不能working。

       

      <RelativeLayout
              android:id="@+id/bar"
              android:layout_width="wrap_content"
              android:layout_height="fill_parent"
              android:background="@drawable/ic_bar_bg"
              android:layout_alignParentRight="true"
              android:orientation="horizontal" >

      <ImageButton
                  android:id="@+id/gallery"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_centerHorizontal="true"
                  android:layout_marginBottom="10dp"
                  android:background="@drawable/ic_frame"/> 

      </RelativeLayout>

       

      查看很多的blog,對于releated layout的設置有一定的了解,后續(xù)測試中,添加了如下的設置android:layout_alignParentBottom="true",則能夠使用layout_marginBottom這個特性,因此認為默認的設置,alignParantBottom肯定是false,因此layout_marginBottom不起作用。

      <RelativeLayout
              android:id="@+id/bar"
              android:layout_width="wrap_content"
              android:layout_height="fill_parent"
              android:background="@drawable/ic_bar_bg"
              android:layout_alignParentRight="true"
              android:orientation="horizontal" >

      <ImageButton
                  android:id="@+id/gallery"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_centerHorizontal="true"
                  android:layout_alignParentBottom="true"
                  android:layout_marginBottom="10dp"
                  android:background="@drawable/ic_frame"/> 

      </RelativeLayout>

        本站是提供個人知識管理的網絡存儲空間,所有內容均由用戶發(fā)布,不代表本站觀點。請注意甄別內容中的聯系方式、誘導購買等信息,謹防詐騙。如發(fā)現有害或侵權內容,請點擊一鍵舉報。
        轉藏 分享 獻花(0

        0條評論

        發(fā)表

        請遵守用戶 評論公約