libdenx

in #utopian-io6 years ago (edited)

libdenx

https://github.com/denzcoskun/libdenx

New Projects

  • What is the project about?

Android base structure project is usable submodule. With this library you can write less code and develop faster.

BaseActivity include onViewReady and getLayoutResourceId functions.

onViewReady works like onCreate. You can write your code here and you can use instead of onCreate.
getLayoutResourceId is used to link the class with the layout like setContentView. Actually BaseActivity uses setContentView in background.

You can use with ButterKnife.

public class MainActivity extends BaseActivity {
    @Override
    protected void onViewReady(Bundle savedInstanceState, Intent intent) {
        super.onViewReady(savedInstanceState, intent);
    }

    @Override
    protected int getLayoutResourceId() {
        return R.layout.activity_main;
    }
}

You can add back button:

addBackButton();

Volley Object Request:

getJsonObject("Your Url", YourModel.class, result -> {
     //result is your response model. You can use here.       
});

Volley Array Request:

getJsonArray("Your Url", result -> {
    // result is your response array. You can use here.
 });

Check Internet Connection:

 isNetworkConnected();

Show Toast Message:

showMessage(int Message);
//or
showMessage(String Message);

Libraries used:

implementation 'com.google.code.gson:gson:2.8.2'
implementation 'com.jakewharton:butterknife:8.8.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
implementation 'com.android.volley:volley:1.1.0'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.8.5'
implementation 'com.fasterxml.jackson.core:jackson-core:2.8.5'
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.8.5' 

How to use?

This is not use alone project. You must use it like submodule.

git submodule add https://github.com/denzcoskun/libdenx.git

Add libdenx to Setting.gradle file

include ':app', ':libdenx'

Implement libdenx to Build.gradle file

implementation project(path: ':libdenx')

You can use this project now.

  • Technology Stack

Java programming language was used.

  • Roadmap

The projects we use will develop in this project in line with our needs.

  • How to contribute?

Contributors can be in touch with me on these platforms.

https://github.com/denzcoskun

https://www.linkedin.com/in/deniz-co%C5%9Fkun-02180895

Sort:  

Congratulations @denzcoskun! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

Award for the number of upvotes received

Click on the badge to view your Board of Honor.
If you no longer want to receive notifications, reply to this comment with the word STOP

To support your work, I also upvoted your post!

Do you like SteemitBoard's project? Then Vote for its witness and get one more award!

Thank you for your contribution. As in a current state, we do not see any uniqueness in the project and also the feature added is quite less. Please try to add more features and make it unique for th next contribution.

Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.


Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]

Congratulations @denzcoskun! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 1 year!

Click here to view your Board

Support SteemitBoard's project! Vote for its witness and get one more award!

Congratulations @denzcoskun! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Do not miss the last post from @steemitboard:

SteemitBoard Ranking update - A better rich list comparator
Vote for @Steemitboard as a witness to get one more award and increased upvotes!

Coin Marketplace

STEEM 0.19
TRX 0.12
JST 0.029
BTC 60808.77
ETH 3368.54
USDT 1.00
SBD 2.47