溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

自定義樣式

發布時間:2020-07-06 00:29:40 來源:網絡 閱讀:257 作者:InProvence 欄目:移動開發

XML布局

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
 >

    <TextView
       
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:text="@string/title" />

  <TextView
      android:layout_width="fill_parent"
      android:layout_height="0dip"
      android:layout_weight="1"
      
      />
    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content" >

        <Button
            android:id="@+id/button1"
              android:background="@drawable/r1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textSize="18sp"
            android:text="@string/up" />

        <Button
            android:layout_alignParentRight="true"
            android:id="@+id/button2"
            android:background="@drawable/btn_bg"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textSize="18sp"
            android:text="@string/down" />

    </RelativeLayout>
</LinearLayout>

style樣式

<style   name="title">    
        <item   name="android:background">#6666ff00</item>
        <item   name="android:padding">10dip</item>
        <item   name="android:textSize">20sp</item>
        <item   name="android:gravity">center</item>      
    </style>


向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

亚洲午夜精品一区二区_中文无码日韩欧免_久久香蕉精品视频_欧美主播一区二区三区美女