libdenx

By @denzcoskun6/5/2018utopian-io

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

17

comments