Android Studio – How to change the input font size in TextField of Android Jetpack Compose
I'd like to change the input font size in TextField of Android Jetpack Compose because it's very small now. Like this
I'd like to change the input font size in TextField of Android Jetpack Compose because it's very small now. Like this
I'm trying to put some data whose key: "isLoggedIn" and a value: true inside a shared preference file. I do it this way... sharedPreferences=getSharedPreferences(getString(R.string.preference_file_name), Context.MODE_PRIVATE) fun savePreferences(){ sharedPreferences.edit().putBoolean("isLoggedIn",true).apply() } and then if I want to retreive/store this key-value pair inside…
I use the Android Facebook SDK. I get the following message in Logcat: com.facebook.internal.NativeProtocol: Apps that target Android API 30+ (Android 11+) cannot call Facebook native apps unless the package visibility needs are declared. Please follow https://developers.facebook.com/docs/android/troubleshooting/#faq_267321845055988 to make the…
I have this home button in top bar: val activity: ImageButton =findViewById(R.id.activity) activity.setOnClickListener{ startActivity(Intent(this, ActivitySearch::class.java)) } Instead of going to a new page, I want to be able to just put a "to top" intent, I have tried to replace:…
I am new using Kotlin and have implemented a recyvclerview list and now I'm using putExtra() and getStringExtra() intents to open in the same activities to avoid creating too many activities. So far it is working fine but I'm noticing…
im triying to use an image picker so I can open the gallery and choose a pic for the user profile. Apparently the built-in image picker works only on Android 13 (API 33) so in order to add this feature…
This is the error I am getting : java.lang.RuntimeException: Canvas: trying to draw too large(115781908bytes) bitmap. Is there any way by which I can fix this without reducing the image quality?
I want to apply multiple text-style on textview programmatically in android. val myView : TextView = findViewById(R.id.date_title) // now I want to apply - Bold & italic style on myView at same time like we can do in XML file…
I had one learning project that require RecyclerView item to send his detailed data to another activity with getParcelableExtra, my problem is when I clicked the item, the data is null on detailsActivity then I check it with the log.d,…
I'm trying to use registerForActivityResult but the result of it is 0, which mean that it doesn't get the result from the activity. The code was working perfectly last month when i did it, but i don't know why it…