TextView
TextView主要用于在界面上显示一段文本信息
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/textview"
android:id="@+id/text_view"
android:textColor="@color/red"
android:textSize="@dimen/textsize"
android:autoLink="phone"/>
layout_width和layout_height表示定义该文本的宽和高
text表示该文本显示的内容,可以再values中的string下边定义
id表示该文本的地址,以便之后再代码中方便调用
textcolor表示显示文本文字的颜色
textsize表示文本的大小,也是在values下定义
autolink表示自动链接为,这里设置为phone,点击文本中的内容可以自动连接到电话的界面。
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_alignParentBottom="true"
android:weightSum="4"
>
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:gravity="center"
android:text="联系人"
android:drawableTop="@mipmap/a_mall_04_select"
android:layout_weight="1"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:text="应用程序"
android:drawableTop="@mipmap/a_mall_02_select"
android:layout_weight="1"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity=