Skip to content

Instantly share code, notes, and snippets.

View ahmmedrejowan's full-sized avatar
💀
Coding

K M Rejowan Ahmmed ahmmedrejowan

💀
Coding
View GitHub Profile
new CuteDialog.withIcon(this)
.setIcon(R.mipmap.ic_launcher)
.setTitle("Simple Dialog")
.setTitleTextSize(20)
.setTitleTextColor(Color.parseColor("#FF4081"))
.setTitleTextStyle(CuteDialog.STYLE_BOLD)
.setDescription("This is a simple Dialog")
.setDescriptionTextColor(Color.parseColor("#FF4081"))
.setDescriptionTextSize(16)
.setDescriptionTextStyle(CuteDialog.STYLE_NORMAL)
@ahmmedrejowan
ahmmedrejowan / 1. with Image
Last active October 25, 2022 22:01
CuteDialog
new CuteDialog.withImage(this)
.setImage(R.drawable.image_1)
.setTitle("Take a break")
.setDescription("Isn't it a great time to go for a walk?")
.show();
@ahmmedrejowan
ahmmedrejowan / Main.Java
Created January 12, 2022 18:59
WebView with SwipeRefreshLayout
public class Web extends AppCompatActivity {
WebView mWebView;
SwipeRefreshLayout swipeRefreshLayout;
final Activity activity = this;
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
@ahmmedrejowan
ahmmedrejowan / main.xml
Created January 12, 2022 18:23
Adview Not Overlapping MainViews
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_above="@+id/adView"