1,182 questions
0
votes
0
answers
77
views
Alternative orientation of android:screenOrientation="portrait"
android:screenOrientation="portrait" is deprecated in Android Java and i am trying to use <item name="android:screenOrientation">portrait</item> in app theme and also ...
1
vote
2
answers
2k
views
What is the alternative way for android development without android studio?
I want to be an Android developer. As Android Studio is hungry for memory, I don't have enough memory for Android Studio on my computer. But I want to continue android development without Android ...
0
votes
1
answer
39
views
I can`t scroll to the end of the page. Android studio
I can`t scroll to the end of the page.
Here`s my xml code:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/...
1
vote
1
answer
403
views
Inserting data to a Room database
When it comes to inserting data on a RoomDB, what is the best method to handle the conflict strategy?
As i have tried.
@Insert(onConflict = @Insert(onConflict = OnConflictStrategy.REPLACE))
But it ...
1
vote
1
answer
453
views
How to set BottomNavigationView selected item text to normal, not bold
I have BottomNavigationView in my app. When I select one item, the text is bold. But I want that text stays normal, not bold. How to achieve this? Here is my code
<com.google.android.material....
0
votes
2
answers
590
views
why i getting a error "Unresolved reference: fillMaxSize" with modifier = Modifier.fillMaxSize?
i am trying to use the jetpack compose but it giving so much errors, one of them is that -
package com.example.imagecardcompose
import android.os.Bundle
import androidx.activity.ComponentActivity
...
0
votes
0
answers
86
views
difference between wrapping EditText with TextInputLayout Vs wrapping TextInputEditText with TextInputLayout?
Want to know difference between
wrapping EditText with TextInputLayout Vs wrapping TextInputEditText with TextInputLayout ?. I tried using both, they worked same.
So which to use when ?
Searched on ...
1
vote
0
answers
2k
views
Customize the Material 3's Switch component in Jetpack Compose
Switch example Is there a way to customize Material 3's Switch appearance and behavior?
I have seen some examples of customized components in the Now in Android Case Study Figma file, I wonder if ...
0
votes
1
answer
44
views
Inside DrawerLayout, I cannot put anything like toolbar or constraintLayout
This is my code for main_activity.xml
<?xml version="1.0" encoding="utf-8"?>
<androidx.drawerlayout.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/...
3
votes
2
answers
2k
views
Render Problems with TabLayout and ViewHolder
I am currently unable to render am activity with just a TabLayout and ViewPager. I am getting this error:
Style ResourceReference{namespace=apk/res-auto, type=attr, name=textAppearanceButton} is not ...
0
votes
2
answers
46
views
How to change my scroll view to scrollable constraint layout or how to use scrollview
I want to add more options like add product and etc. but i cant because of scroll view not working properly. the following is my design code:
<?xml version="1.0" encoding="utf-8"...
0
votes
1
answer
177
views
Custom EditText Design with boxes number
does someone know how to make an EditText with the design below (or similar)?
I appreciate any help you can provide.
0
votes
1
answer
47
views
How to create following types of layout in android
I have tried using ProgressBar or SeekBar but how to add left cut on one side and right side also
2
votes
2
answers
763
views
how to set progress bar with rounded starting point in android layout?
I am trying to create a progress bar using default progress bar given in android , I achieved 80% of that required design but i cannot find a code to finish the required design.
this is a required ...
2
votes
3
answers
2k
views
Android Studio XML doesn't show anything in Design View. (empty screen)
I checked other questions, but they all are about blank screen(white screen or theme). But in my case, it shows literally nothing.
I tried 'Force Refresh Layout'. But It didn't work. And only reboot ...
3
votes
1
answer
178
views
CardBackgroundColor cannot work while give cardElevation="0dp"
When I'm giving CardView to app:CardBackgroudColor="@color/black" it's work
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width=&...
1
vote
1
answer
603
views
CardView cardCornerRadius is not displayed on real device
I have a little problem with displaying cardCornerRadius in my CardView. Everything works fine on the emulator, but as soon as I test the app on my real device, I no longer see a corner radius around ...
1
vote
2
answers
200
views
Display Multiple chips/tags in single line in android using autocomplete text view
i want to display multiple chips may two or more in single line and rest in the subsequent lines. Please see the attached image, i want the same as displayed in the image.enter image description here
1
vote
0
answers
111
views
To develop a side menù bar like Gmail Android App
Which is the component used to develop the side bar on Gmail Android App ? It seems a Navigation rail but animated like a Navigation drawer.
I have tried to put the two component in the same layout, ...
2
votes
1
answer
2k
views
How to mute/unmute Video using Exoplayer control view with Imagebutton icon
Hi Im developing one video application
Here I am using exoplayerview for playing video.In this videoview Im using exoplayer control view.In this control I change custom icon such as Mute/Unmute Icon....
2
votes
3
answers
2k
views
How to let two TextViews aligned to each other be "wrap_content" but within the constraints of ConstraintLayout without overflowing into each other?
I have two textViews aligned next to each other as such:
My current layout works fine if I try to increase the text for the first text view, it remains within the constraint as it should.
and this ...
1
vote
1
answer
614
views
Androidx problem with 'com.android.support:design:28.0.0
How can I make the last line to work with androidx` implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'com.google.android.material:material:1.3.0'
implementation 'com.android....
0
votes
1
answer
185
views
ListView not displaying in Navigation Menu
I'm trying to display a ListView from an ArrayList of strings in my Navigation Menu and its just coming up blank, no data is being passed to the ListView.
To access a new layout file other than ...
1
vote
1
answer
827
views
Keyboard doesn't open with Tap on TextInputLayout
I have this xml inside a Fragment, which is opened by a NavHostFragment:
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/content_title_input"
...
5
votes
2
answers
10k
views
customize bottom navigation bar item layout
I want create following customized bottom navigation bar. How I can set custom layout for menu item? or is there exists ready library for creating this type bottom bar easily?
0
votes
1
answer
2k
views
In Android button background in not changing [duplicate]
Recently i updated my android studio and i am facing lots of problems such as its not showing the particular error. In previous version if did any thing wrong in coding it shows red line under the ...
-1
votes
2
answers
1k
views
Android AppCompatEditText,AppCompatTextView, setText without ID
I have simple Login page with some textview and edittex and i set static text to textview and hint to edittext from string.xml working fine.
But Now
i am receiving that strings(which i set form stirng....
2
votes
3
answers
1k
views
How to create s curve layout in android
How can create layout or view like attached image,
shape that can be used for ImageView, Slider etc.
0
votes
1
answer
922
views
com.android.support:design:27.0.2 what is the last update?
i'm using com.android.support:design:27.0.2 for my old project. now i want to update my project. but i'm not understanding what is the support:design library for androidx? all dependency is updated, ...
1
vote
1
answer
112
views
Design of JAW with click on each tooth
I want to create and view as shown in the image for one of my apps to store the information of each tooth run time. So is there any library available to achieve this or any trick to achieve this. ...
2
votes
1
answer
327
views
How to proper align custom font in an android app
I was trying google fonts to use in my android mobile application. I've noticed that when I used custom font, the center alignment to element (EditText, Button) has bigger space at the bottom. Tried ...
0
votes
1
answer
149
views
Floating Action Button - Rendering issue at design and runtime
Have observation while working with a simple design for Login Screen with two EditText and a Floating Action Button.
Observation: Views rendered incorrectly; take a look at below XML code for layout ...
0
votes
1
answer
166
views
How Can i get rid of this large lib files
Please anyone help me in my project this files got entered with large size so how to get rid of this. and in other project this file aren't their
1
vote
1
answer
315
views
Constraint layout setting runtime constraintStart_toEndOf
I have a constraint
app:layout_constraintStart_toStartOf="parent". Runtime I need to change this constraint to app:layout_constraintStart_toEndOf="@+id\myid" .
From my research i found only ...
1
vote
0
answers
128
views
Android layout design for different screen sizes
I am developing an android app but problem is, it's design doesn't remain consistent on different devices.
I studied about it on internet but finally I am stuck on the same problem.
I Created layout ...
1
vote
1
answer
1k
views
Convert ARGB color string to int ARGB int format Color in android
I am required to pass ARGB color from 1 Activity to other activity as String. Now I am required to convert the same color string in other activity to be converted to int to pass into an argument in ...
4
votes
1
answer
2k
views
How to drag bottomsheet from anywhere in the screen?
I am trying to implement youtube like experience and allow the user to drag the bottom sheet from anywhere in the screen. I tried many solutions nothing helped.
4
votes
0
answers
1k
views
How to get the number of chips left outside fixed size chipGroup
I use ChipGroup in fragment to put entries I picked up from the list
<com.google.android.material.chip.ChipGroup
android:id="@+id/cgGroup"
android:layout_width="...
1
vote
0
answers
126
views
Some device doesn't show toolbar back arrow + search view icon
I am stuck with a silly problem. I have created one activity as below:
You can see here back arrow and that search icon (below of toolbar)
Now some device is not displaying that as below:
Here is the ...
0
votes
1
answer
963
views
how to design Linear layout programmatically
how can I do something like this programmatically? There must be one Checkbox and two vertical textview in MaterialCardView.I tried using Linearlayout but I can't solve it.
LinearLayout.LayoutParams ...
0
votes
1
answer
104
views
How to implement design library to android app?
I wont to implement this design library to my project > https://developer.android.com/topic/libraries/support-library/packages.html#design (com.android.support:design:28.0.0). But when I'm syncing I ...
0
votes
2
answers
680
views
Resource compilation failed on updating material library to 1.1.0
I have updated my material library from com.google.android.material:material:1.0.0 to com.google.android.material:material:1.1.0
I am getting the following error after the update. The only solution ...
2
votes
1
answer
3k
views
Why i am not able to open file picker in android 10 and showing toast Failed to create image file
I am not able to open file picker in android 10 and showing toast Failed to create image file...but working fine in android 9.
0
votes
2
answers
2k
views
AndroidX GridView with CardView not viewing perfectly with custom background drawable
I have this layout as
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
...
3
votes
4
answers
5k
views
How to change color in Material Components PROGRAMMATICALLY on Android?
I'm looking for a solution to change the color of some Android Material Components layout objects. How can I change the color of text or borders in a Material Button programmatically? All functions ...
5
votes
2
answers
6k
views
BottomNavigationView + Save fragment states while navigating to different tabs
I am using BottomNavigationView for the bottom tabs.
1) Tab 1 - Gets data from a server and displays to RecyclerView
2) Tab 2 - Gets a URL from the server and loads Webview
3) Tab 3 - Gets data from ...
0
votes
2
answers
573
views
error: cannot access DrawerLayout when using AppCompatActivity
Using appcompat "com.android.support:appcompat-v7:28.0.0"
I am not using android.support.v4.widget.DrawerLayout in my activity. Even though i am getting the following error when run application on ...
6
votes
2
answers
5k
views
How to support multiple colors (more than two color) for Android Notification icon?
I am working on Android app (API level >23). And I have to
support Notification.
And my notification icon is supported more than two colors.
If I use that icon then icon displays in grey in ...
1
vote
1
answer
83
views
which library should i implement to use app:layout_behavior="@string/appbar_scrolling_view_behavior"
I want to add the app:layout_behavior attribute in xml file but it not supported. Which library should I add in gradle file?
compile 'com.android.support:design:22.2.0
when I add this compile ...
0
votes
2
answers
605
views
How to setup a layout with ScrollView?
I am learning Android and right now I have an issue with the ScrollView.
I am using ScrollView as the main container of the layout with a LinearLayout as a child because I would like my screens ...