Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
-1 votes
0 answers
8 views

Android TextView.setText(R.string.text_from_string.xml_file); does not show font colors which were used to decorate strings and in string.xml file

I put some strings in string.xml file as follows. <string name="text1749">The <font color="#DE0010">book</font> was written by Mr. Martin Vikramasinghe.\n<font ...
Isuru Thiwanka's user avatar
0 votes
0 answers
9 views

How to use Switch GM3 in Android with XML, not Compose

I see here is new design for Android Switch https://developer.android.com/develop/ui/compose/components/switch I like this, but how to use? Relative article we need Compose for this? Can I use this ...
Dyno Cris's user avatar
  • 2,176
0 votes
0 answers
20 views

Why my projects has suddenly stopped running after adding the Material design library?

After adding the implementation 'com.google.android.material:material:1.13.0-alpha03' dependency to include the material design library for a show password button in my EditText, the project ...
Hafee Imran's user avatar
1 vote
1 answer
40 views

I can't open app after installing it Android

I'm working on my first Android app for work time tracking. MainActivity.java: package com.example; import com.example.work.R; import android.os.Bundle; import android.view.View; import android.widget....
codproe's user avatar
  • 99
0 votes
1 answer
33 views

Code is executing but in mobile white screen appears in android studio in log cat it showing some errors please check it and please give solutions

FATAL EXCEPTION: main Process: com.example.myapplication, PID: 149 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.myapplication/com.example.myapplication.Otp}: java....
Aravind Pindiproli's user avatar
0 votes
1 answer
64 views

The App crashes when I click on any Button on bottom sheet dialog fragment

I created an app on Android Sudio using Kotlin as backend language, I have added a Bottom sheet dialog fragment that contains a simple calculator, but when I click on any button on that calculator in ...
Mahdi Azimi's user avatar
0 votes
0 answers
12 views

Combining both Navigation Drawer and Bottom Navigation templates in Android Studio

I know it should be easy but i do not know what i am doing wrong, bottom navigation fragments are not showing up when clicked but Navigation drawer does. I basically just copy paste the code on the ...
esencia's user avatar
  • 23
0 votes
0 answers
8 views

Ellipsis attributes name in Attributes Window in Android Studio

I'm building a project in android studio but suddenly the attributes name became ellipsis even though I have big screen. the attributes name before was not ellipsis I'm expecting the full attributes ...
Sero's user avatar
  • 1
1 vote
1 answer
21 views

How can I fix a library add syntax error?

I am getting error like this Error Message: Unresolved reference. None of the following candidates is applicable because of receiver type mismatch:public val NamedDomainObjectContainer<...
MN Dijital's user avatar
0 votes
0 answers
10 views

How can I make DrawerLayour Activity scrollable in Android Studio?

I have a DrawerLayout activity which is the part of a navigation drawer. And I have to put a lot of buttons in it, but it seems it doesn't scroll. So I want to make it scrollable. How can I make it? ...
Ернұр Демесін's user avatar
0 votes
0 answers
101 views

Errors in all of xml files of the project "Cannot resolve class RelativeLayout", "Cannot resolve class TextView", "Cannot resolve class ImageView" [duplicate]

After invalidate caches in my project in android studio i broke all my activity files, and get the errors "Cannot resolve class TextView", "Cannot resolve class RelativeLayout" ...
mr_Baiel's user avatar
0 votes
2 answers
24 views

White Space Under the bottom navbar

I don't know I have tried changing the icon, changing the layout almost everything but cannot get rid of the white space under the bottom navbar. <?xml version="1.0" encoding="utf-8&...
Ahsan Riaz's user avatar
0 votes
1 answer
36 views

How can i make hint text normal and input text bold?

I want to make hint text normal style and input text bold but when I change input text style bold it effects hint and hint became bold too. how can I solve that? I want to change just input text. I've ...
biipek's user avatar
  • 1
0 votes
1 answer
31 views

bottom navigation bar only show HomeFragment and does not another fragments

i have a bottom navigation bar to switch between fragments , my function in MainActivity is working but when i click on the buttons of bottom nav the screen stays on HomeFragment does not change to ...
Ammar Momani's user avatar
-1 votes
1 answer
38 views

Android studio mirrored in physical device

I am using Android Studio when I start the app at the emulator everything works well when I start the program on a physical device everything suddenly flips[this is from the emulatorthis is from ...
shaharfx's user avatar

15 30 50 per page
1
2 3 4 5
201