All Questions
Tagged with android-studio xml
3,012
questions
-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 ...
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 ...
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 ...
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....
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....
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 ...
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 ...
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 ...
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<...
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?
...
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"
...
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&...
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 ...
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 ...
-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 ...