Please click the image below to enlarge.

allProjects{
repositories {
...
maven { url "https://jitpack.io" }
}
}
Add this to your module's `build.gradle` file (make sure the version matches the JitPack badge above):
``` gradle
dependencies {
...
implementation 'com.github.SibaniKrishnaChoudhury-255:StaticPage:1.0.0'
}
```
-
<com.example.StaticPage.staticpage android:id="@+id/page" android:layout_width="match_parent" android:layout_height="match_parent"/>
-
staticpage staticpage1=findViewById(R.id.page); staticpage1.setHeaderTitle("Cart") .setHeaderTitleColor("#FF9800") .setIcon(R.drawable.bag) .setFooterTitle("YOUR CART IS EMPTY!") .setFooterMessage("Move to the Home page to shop more") .setButtonTitle("SHOP MORE") .setButtonColor("#FF9800").setButtonTextColor("#ffffff") .onButtonClick(new clickListner() { @Override public void onClick() { Toast.makeText(MainActivity.this, "Internet Connected", Toast.LENGTH_SHORT).show(); } });
- setHeaderTitle(String) : Header Text
- setHeaderTitleColor(String) : Header TextColor
- setFooterTitle(String) : Footer Text
- setFooterTitleColor(String) : Footer TextColor
- setFooterMessage(String) : Footer Message
- setFooterMessageColor(String) : Footer MessageColor
- setButtonColor(String) : Button BackGroundColor
- setButtonTextColor(String) :Button TextColor
- setButtonTitle(String) : Button Text
- setIcon(int) : Middle Image
- onButtonClick(clickListner) : Button ClickEvent Handling
Please fork this repository and contribute back using pull requests.
Any contributions (large or small/ major or minor/ new features/ bug fixes) are welcomed and appreciated but will be thoroughly reviewed.
-
Copyright 2020 Sibanikrishna Choudhury Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.