This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Web extends AppCompatActivity { | |
WebView mWebView; | |
SwipeRefreshLayout swipeRefreshLayout; | |
final Activity activity = this; | |
public void onCreate(Bundle bundle) { | |
super.onCreate(bundle); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new CuteDialog.withIcon(this) | |
.setIcon(R.mipmap.ic_launcher) | |
.setTitle("Simple Dialog") | |
.setDescription("This is a simple Dialog") | |
.setPositiveButtonText("Okay", v2 -> { | |
}) | |
.setNegativeButtonText("Cancel", v2 -> { | |
}) | |
.show(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
allprojects { | |
repositories { | |
... | |
maven { url "https://jitpack.io" } | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style name="AppTheme" parent="Theme.MaterialComponents.Light.DarkActionBar"> | |
<!-- Customize your theme here. --> | |
</style> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<androidx.cardview.widget.CardView | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
app:cardBackgroundColor="" | |
app:cardCornerRadius="" | |
app:cardElevation="" | |
app:cardMaxElevation="" | |
app:cardPreventCornerOverlap="" | |
app:cardUseCompatPadding="" | |
app:contentPadding="" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<com.google.android.material.card.MaterialCardView | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:checkable="" | |
android:clickable="" | |
android:focusable="" | |
app:cardBackgroundColor="" | |
app:cardCornerRadius="" | |
app:cardElevation="" | |
app:cardMaxElevation="" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_home); | |
//////////////// Your codes | |
SearchView searchView = findViewById(R.id.search_view); | |
int searchCloseButtonId = searchView.findViewById(androidx.appcompat.R.id.search_close_btn).getId(); |
OlderNewer