libdenx

View this thread on: d.buzz | hive.blog | peakd.com | ecency.com
·@denzcoskun·
0.000 HBD
libdenx
![libdenx](https://user-images.githubusercontent.com/15522554/40986568-37d32b00-68ef-11e8-809a-d5497bb1b430.png)

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**.
```java
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:
```java
addBackButton();
```
#### Volley Object Request:
```java
getJsonObject("Your Url", YourModel.class, result -> {
     //result is your response model. You can use here.       
});
 ```
#### Volley Array Request:
```java
getJsonArray("Your Url", result -> {
    // result is your response array. You can use here.
 });
 ```
 #### Check Internet Connection:
 ```java
  isNetworkConnected();
 ```
#### Show Toast Message:
```java
showMessage(int Message);
//or
showMessage(String Message);
 ```
#### Libraries used:
```gradle
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**.
```gradle
git submodule add https://github.com/denzcoskun/libdenx.git
```

#### Add libdenx to **Setting.gradle** file
```gradle
include ':app', ':libdenx'
```

#### Implement libdenx to **Build.gradle** file
```gradle
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
👍 , , , , , , , , , , , , , , , , ,