xml http://li2.me/2016/08/make-a-reusable-ui-in-android-app-development.html
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了xml http://li2.me/2016/08/make-a-reusable-ui-in-android-app-development.html相关的知识,希望对你有一定的参考价值。
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.AppBarLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/topActionbarLayout"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:elevation="@dimen/elevation_header">
<android.support.v7.widget.Toolbar
android:id="@+id/topActionbar"
android:layout_width="match_parent"
android:layout_height="@dimen/headerBarHeight"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/topActionBack"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:gravity="center"
android:background="?selectableItemBackground"/>
<TextView
android:id="@+id/topActionTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:gravity="center"
android:text="title"/>
<Button
android:id="@+id/topActionClose"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:background="?selectableItemBackground"
android:text="Close"/>
</RelativeLayout>
</android.support.v7.widget.Toolbar>
</android.support.design.widget.AppBarLayout>
以上是关于xml http://li2.me/2016/08/make-a-reusable-ui-in-android-app-development.html的主要内容,如果未能解决你的问题,请参考以下文章
java http://li2.me/2016/08/make-a-reusable-ui-in-android-app-development.html
java http://li2.me/2016/08/make-a-reusable-ui-in-android-app-development.html
java http://li2.me/2016/08/make-a-reusable-ui-in-android-app-development.html
java http://li2.me/2016/08/make-a-reusable-ui-in-android-app-development.html
XML——初识XML
XML——初识XML