Issue I have this code val today = Calendar.getInstance().get(Calendar.DAY_OF_YEAR) val dueDay = Calendar.getInstance() dueDay.timeInMillis = 1708395041 val dueDate = dueDay.get(Calendar.DAY_OF_YEAR) val dateFormat = SimpleDateFormat("hh:mm a", Locale.getDefault()) val fullDateFormat = SimpleDateFormat("MMM dd, hh:mm a", Locale.getDefault()) Log.d("t","date ${fullDateFormat.format(Date(1708395041))) Why in logs I
Continue readingTag: kotlin
how to create a hexagon shape with curved endsin Jetpack composeH
Issue I’ve attempted to create a hexagon shape in jetpack compose but could only achieve pointed ends, tried several methods with quadraticBezierTo and arcs but couldn’t achieve a result with curved ends. I’ve tried to look on the web but
Continue readingHow to remove bottom padding from bottom sheet in Jetpack Compose
Issue Screenshot Of Problem I am using Material 2 bottomsheet scaffold and while expanding bottom sheet i facing this issue, I haven’t apply any padding for bottom yet it appears and i tried many things but i was unable to
Continue readingGradle Kotlin DSL Files – Separate Config Files
Issue I’m currently in the process of migrating my groovy gradle files to kotlin. I have jacoco and sonarcloud integrated into my application. I have separate groovy gradle files for jacoco and sonar config and apply them to my build.gradle(:app)
Continue readingRefresh Fragment view when RecyclerView.Adapter is changed
Issue I am following Shrine example application which is implemented in Kotlin part of Google official codelabs for developers. The application and codelab The last step, We are asked to Modify your Shrine application to change the product images shown
Continue readinghow to check whether a given string is between particular time range
Issue Given start string like “09:00” and end string like “10:00” how do i check whether current time is between this range or not. I have searched a lot but most of them requires a higher API level and my
Continue readingHow to reference color resources from ViewModel in Jetpack Compose?
Issue I’m new to Android development with Jetpack Compose. In my @Composable function, I have the following code to create a background gradient color list: val backgroundColors = if (uiState.redGradient) { listOf(colorResource(R.color.customLightRed), colorResource(R.color.customPink)) } else { listOf(colorResource(R.color.customBlue), colorResource(R.color.customGreen)) } My
Continue readingImageView setOnClickListener Not Work (Java/Android)
Issue Im having some problem with Click Listener on Image View I try to log some text if I click on the button But it not work at all Here is my code, Hope u can help me: ChatHeadService.java ImageView
Continue readinghow can i draw a border between DropdownMenuItems in jet pack compose?
Issue how can i draw a border between DropdownMenuItems in jet pack compose? I want to draw a bottom border or a border between the diferent items in a DropDownMenu in jetpack compose in my Topbar Menu. I try to
Continue readingMethods of facebookCallback are not being called while trying to login with facebook
Issue I am trying to login with facebook on click of my button I am able to open facebook custom tab and able to use "Continue as user" but after that I am navigating back to my app and nothing
Continue reading