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
{ | |
"isPaid": true, | |
"isPaidFull": true | |
} |
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
[ | |
{ | |
"id": "bitcoin", | |
"symbol": "btc", | |
"name": "Bitcoin", | |
"image": "https://assets.coingecko.com/coins/images/1/large/bitcoin.png?1696501400", | |
"current_price": 66773, | |
"market_cap": 1314983236696, | |
"market_cap_rank": 1, | |
"fully_diluted_valuation": 1401729464877, |
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
[ | |
{ | |
"id": "1", | |
"title": "Big Buck Bunny", | |
"thumbnailUrl": "https://upload.wikimedia.org/wikipedia/commons/thumb/a/a7/Big_Buck_Bunny_thumbnail_vlc.png/1200px-Big_Buck_Bunny_thumbnail_vlc.png", | |
"duration": "8:18", | |
"uploadTime": "May 9, 2011", | |
"views": "24,969,123", | |
"author": "Vlc Media Player", | |
"videoUrl": "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4", |
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 | |
public boolean dispatchTouchEvent(MotionEvent event) { | |
if (event.getAction() == MotionEvent.ACTION_DOWN) { | |
View v = getCurrentFocus(); | |
if (v instanceof EditText) { | |
Rect outRect = new Rect(); | |
v.getGlobalVisibleRect(outRect); | |
if (!outRect.contains((int) event.getRawX(), (int) event.getRawY())) { | |
v.clearFocus(); | |
InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); |
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(); |
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
<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
<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
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
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(); |
NewerOlder