Merged PR 213584: Removed Button demo

Removed Button demo
This commit is contained in:
Vlad Filyakov 2018-12-17 23:44:59 +00:00
Родитель 621d9d178f
Коммит a64a9de77e
3 изменённых файлов: 0 добавлений и 42 удалений

Просмотреть файл

@ -6,7 +6,6 @@ import java.util.*
import kotlin.reflect.KClass
const val AVATAR = "Avatar"
const val BUTTON = "Button"
const val CALENDAR_VIEW = "CalendarView"
const val DATE_TIME_PICKER_DIALOG = "DateTimePickerDialog"
const val PEOPLE_PICKER = "PeoplePicker"
@ -18,7 +17,6 @@ const val TYPOGRAPHY = "Typography"
val DEMOS = arrayListOf(
Demo(AVATAR, AvatarFragment::class),
Demo(BUTTON, ButtonFragment::class),
Demo(CALENDAR_VIEW, CalendarViewFragment::class),
Demo(DATE_TIME_PICKER_DIALOG, DateTimePickerDialogFragment::class),
Demo(PEOPLE_PICKER, PeoplePickerFragment::class),

Просмотреть файл

@ -1,24 +0,0 @@
//
// Copyright © 2018 Microsoft Corporation. All rights reserved.
//
package com.microsoft.officeuifabricdemo.demos
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.microsoft.officeuifabricdemo.DemoFragment
import com.microsoft.officeuifabricdemo.R
import kotlinx.android.synthetic.main.fragment_button.*
class ButtonFragment : DemoFragment() {
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
return inflater.inflate(R.layout.fragment_button, container, false)
}
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
button.showBorder = true
}
}

Просмотреть файл

@ -1,16 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout 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"
android:padding="@dimen/default_layout_margin"
tools:context=".demos.ButtonFragment">
<com.microsoft.officeuifabric.view.Button
android:id="@+id/button"
android:layout_width="@dimen/button_width"
android:layout_height="wrap_content"
android:text="Button"
app:showBorder="false" />
</FrameLayout>