How can i make my custom AppCompatActivity class for some function?

mujammil soft

I want to make a custom class AppCompatActivity there I can add my basic function and methods like hiding soft keyboard, hiding progress bar, and other methods that going to be used in the whole project constantly.

VanSuTuyDuyen

Normally those utilities functions don't need an Activity to hold them, instead they will be put on another file: utils/ActivityUtils.java.

Here is an example in an Android Java project: https://github.com/Blankj/AndroidUtilCode/blob/master/lib/utilcode/src/main/java/com/blankj/utilcode/util/ActivityUtils.java

And in Kotlin: https://github.com/inusedname/Todo-App/blob/master/app/src/main/java/com/vstd/todo/others/utilities/ActivityUtils.kt

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How can I make my custom onChanged in a function in flutter

Django2 How can i make some conditions in my Class based View

How can I make WPF instantiate a custom control in my view, using another custom control base class in my XAML?

Can I make my custom class to be assignable from number in TypeScript?

How can I make this refers to the class in the function?

How can I add some custom Text to my LocalizedStringKey?

How can I make my class more robust to operator/function overloading?

How do I make my custom class compatible with For Each?

How can I make typeahead fill in my searchbar with custom params?

How can I make my custom objects Parcelable?

How can I make my custom shell work with ssh?

How can I make my custom url helpers in rails?

How can I make my own custom desktop widgets?

How can i make my Custom Made ToggleButton smaller?

How can I make custom class HTML divisions using AsciiDoctor?

How can I have phpstan find my custom extension class?

How can I use my custom class in a view on Laravel 5

How can I convert to lambda with my Custom Class?

How do I make a protocol that my generic class can conform to?

How can I make my class pretty printable in Python?

How to make a super class I can call to handle my downloads

How can i make my Networking class generic in Swift?

How can I make class structures out of my Json request?

How can I make a separate class for a fire ball in my code?

How can I make my functions to be part of Class?

How can I make my class instance serializable for multiprocessing in Python?

How can I have a custom reduce function in my crossfilter groups?

How can I improve my custom function vectorization using numpy

How can I Get My Custom Function to Execute Correctly?