Merged PR 259833: Demo: UI Fabric version is shown in the subtitle of toolbar on the main screen
- Demo: now shows UI Fabric version in the subtitle of toolbar on the main screen Related work items: #713614
This commit is contained in:
Родитель
7cb8377c20
Коммит
0adcda7893
|
@ -39,6 +39,7 @@ class DemoListActivity : AppCompatActivity() {
|
|||
|
||||
setSupportActionBar(toolbar)
|
||||
toolbar.title = title
|
||||
toolbar.subtitle = com.microsoft.officeuifabric.BuildConfig.VERSION_NAME
|
||||
|
||||
demo_list.adapter = DemoListAdapter()
|
||||
addDemoListDivider()
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
android:id="@+id/toolbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?attr/actionBarSize"
|
||||
app:subtitleTextAppearance="@style/TextAppearance.Toolbar.Subtitle"
|
||||
app:popupTheme="@style/AppTheme.PopupOverlay" />
|
||||
|
||||
</android.support.design.widget.AppBarLayout>
|
||||
|
|
|
@ -28,6 +28,9 @@
|
|||
</style>
|
||||
|
||||
<!--Demo-->
|
||||
<style name="TextAppearance.Toolbar.Subtitle" parent="TextAppearance.UIFabric.Caption">
|
||||
<item name="android:textColor">@color/uifabric_white</item>
|
||||
</style>
|
||||
<style name="TextAppearance.DemoListItem" parent="@style/TextAppearance.UIFabric.SubHeading">
|
||||
<item name="android:textColor">@color/uifabric_black</item>
|
||||
</style>
|
||||
|
|
Загрузка…
Ссылка в новой задаче