xml wapmass-Android的LinearLayout中,垂直orientation.xml

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了xml wapmass-Android的LinearLayout中,垂直orientation.xml相关的知识,希望对你有一定的参考价值。

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity"
    android:orientation="vertical" >

    <TextView
        android:gravity="center"
        android:background="#000"
        android:textColor="#fff"
        android:textSize="32sp"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="Oliver Mensah"/>

    <TextView
        android:gravity="center"
        android:layout_marginTop="10dp"
        android:background="#000"
        android:textColor="#fff"
        android:textSize="32sp"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="42 years"/>

    <TextView
        android:gravity="center"
        android:layout_marginTop="10dp"
        android:background="#000"
        android:textColor="#fff"
        android:textSize="32sp"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="Abbeam Senior High School"/>

    <Button
        android:padding="60sp"
        android:layout_marginTop="100dp"
        android:layout_gravity="center"
        android:background="@color/colorPrimaryDark"
        android:textSize="35sp"
        android:text="Add To Class"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:textColor="#fff"/>
</LinearLayout>


<!-- For creating a rounded button -->
    
 <?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="rectangle" android:padding="10dp">
    <solid android:color="#9cf"/>
    <corners android:radius="20dp"/>
</shape>  

以上是关于xml wapmass-Android的LinearLayout中,垂直orientation.xml的主要内容,如果未能解决你的问题,请参考以下文章

xml wapmass-Android的ListView控件,DetailsActivity.xml

xml wapmass-Android的LinearLayout中,垂直orientation.xml

xml wapmass-Android的LinearLayout中有水平orientation.xml

csharp Eliminar Linea Grid

csharp agrega linea可编辑GRID

sql Salto de linea SQLServer