From 22bd94cd188923084e2baea8b69fcd96616df3eb Mon Sep 17 00:00:00 2001 From: Akash Yadav Date: Sun, 6 Nov 2022 20:37:37 +0530 Subject: [PATCH] Implemented ButtonAttrAdapter --- .../internal/adapters/ButtonAttrAdapter.kt | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 xml-inflater/src/main/java/com/itsaky/androidide/inflater/internal/adapters/ButtonAttrAdapter.kt diff --git a/xml-inflater/src/main/java/com/itsaky/androidide/inflater/internal/adapters/ButtonAttrAdapter.kt b/xml-inflater/src/main/java/com/itsaky/androidide/inflater/internal/adapters/ButtonAttrAdapter.kt new file mode 100644 index 000000000..87150716f --- /dev/null +++ b/xml-inflater/src/main/java/com/itsaky/androidide/inflater/internal/adapters/ButtonAttrAdapter.kt @@ -0,0 +1,29 @@ +/* + * This file is part of AndroidIDE. + * + * AndroidIDE is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * AndroidIDE is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with AndroidIDE. If not, see . + */ + +package com.itsaky.androidide.inflater.internal.adapters + +import android.widget.Button +import com.itsaky.androidide.annotations.inflater.AttributeAdapter + +/** + * Attribute adapter for button. + * + * @author Akash Yadav + */ +@AttributeAdapter(Button::class) +class ButtonAttrAdapter : TextViewAttrAdapter() \ No newline at end of file