This file contains 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
import androidx.compose.foundation.ExperimentalFoundationApi | |
import androidx.compose.foundation.layout.Box | |
import androidx.compose.foundation.layout.Column | |
import androidx.compose.foundation.layout.fillMaxSize | |
import androidx.compose.foundation.layout.fillMaxWidth | |
import androidx.compose.foundation.layout.padding | |
import androidx.compose.foundation.pager.HorizontalPager | |
import androidx.compose.foundation.pager.rememberPagerState | |
import androidx.compose.material.icons.Icons | |
import androidx.compose.material.icons.filled.Favorite |
This file contains 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
FullScreenDialog dialog = new FullScreenDialog(); | |
FragmentTransaction ft = getSupportFragmentManager().beginTransaction(); | |
dialog.show(ft, FullScreenDialog.TAG); |
This file contains 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
val index = "Kotlin".indexOf('K').takeIf { it > 0 } ?: 0 |
This file contains 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
if (Build.VERSION.SDK_INT >= 14) { | |
Intent intent = new Intent(Intent.ACTION_INSERT) | |
.setData(Events.CONTENT_URI) | |
.putExtra(CalendarContract.EXTRA_EVENT_BEGIN_TIME, beginTime.getTimeInMillis()) | |
.putExtra(CalendarContract.EXTRA_EVENT_END_TIME, endTime.getTimeInMillis()) | |
.putExtra(Events.TITLE, "Yoga") | |
.putExtra(Events.DESCRIPTION, "Group class") | |
.putExtra(Events.EVENT_LOCATION, "The gym") | |
.putExtra(Events.AVAILABILITY, Events.AVAILABILITY_BUSY) | |
.putExtra(Intent.EXTRA_EMAIL, "[email protected],[email protected]"); |