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

All Questions

Tagged with
0 votes
3 answers
28 views

Relative Layout In Android - Centerof

In a Relative View Group, we can place one view above or below another view: "layout_above" and "layout_below." etc... Now, the problem I have is that if I want to position one ...
Matin Baki's user avatar
0 votes
0 answers
22 views

Android MaterialButton backgroundTint will not turn white

Currently in android I am setting up some buttons. Ive gone to think that material buttons are the easiest to use as I have quite a lot of use cases where I need to set corner radius etc. ...
Tahulrik's user avatar
0 votes
0 answers
21 views

xml manifest property errors

so i have a video player app i was struggling with a few things so i got someone to help me. when i got the code back he had used github to sync different versions of the builds. now if i look at the ...
Karnage Gaming's user avatar
0 votes
0 answers
12 views

I am trying to build an android app that logs data from TV using AccessibiltyService and Foreground Service but it gives data only when i'ts visible

I want to make an Android app in Android Studio which keeps running in the background and collects all data from accessibilty service. It works when the app is visible but not when i press the home ...
ENG21CS0261 Naindeep Singh's user avatar
0 votes
0 answers
15 views

Which resource qualifiers should I use for devices having similar screen sizes but showing views in different sizes?

I am working with views in xml in Android development, and I noticed that some devices with similar screen sizes (both in terms of DPI and pixels) show the UI of the app differently. For example, a ...
Mike's user avatar
  • 165
-1 votes
0 answers
25 views

How to capture the entire screen, including Bottom Sheets and other overlays in android kotlin?

` fun captureScreen(){ val myActivity = activity ?: return val view = myActivity.window.decorView.rootView view.isDrawingCacheEnabled = true view.buildDrawingCache(true) val bitmap ...
Subash K's user avatar
0 votes
0 answers
22 views

Is there any way to optimize the loading of items (layout) in a RecyclerView?

I know that coroutines help with the data in the RecyclerView, but my problem is not the data, because the item inside the recycler don't use images or database, my problem is the layout i am using, I ...
Kircher 455's user avatar
0 votes
2 answers
37 views

animation transition from fragment to activity

i want to make animation transition between fragment and activity, there is no errors but the animation does not work, the intent work without animation. i tried this code // Start ChechoutActivity ...
Ammar Momani's user avatar
-1 votes
1 answer
37 views

My texts aren't visible, only the background image

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/background" android:layout_width="match_parent" android:...
Bear's user avatar
  • 87
0 votes
1 answer
39 views

Application cannot be installed because of multiple FileProviders

I have 2 product flavors defined in my build.gradle and i created 2 different fileproviders for each flavor. It seems to cause conflicts when i install another app flavor on the device. The error i ...
kpwn Apps's user avatar
  • 497
0 votes
0 answers
19 views

uneven raws in recyclerview using gridlayout manager Android kotlin

The problem is I am trying to design a layout with two columns and no rows or uneven rows this is my current design my current design and this is what I want to achieve expected design. This is my ...
Likkle Shadi's user avatar
0 votes
0 answers
36 views

How to change the order of displayed items in horizontal RecyclerView using GridLayoutManager with constructor?

I want to create a horizontal RecyclerView that displays the items in such form: Item1 Item2 Item3 Item4 Item5 | Item11 Item12 Item13 Item14 Item15 Item6 Item7 Item8 Item9 Item10 | Item16 Item17 ... ...
jasiu's user avatar
  • 53
-1 votes
1 answer
36 views

ALIGNING OBJECTS IN FLOW FROM TOP LEFT TO RIGHT (XML, Android Studio, Kotlin)

I'm considering Flow as a tool for a tag system, and it seems to be working fine, but I haven't found a way to align from top left to right. Is there a way to do this? I'm not using Jetpack Compose, I'...
randomuser's user avatar
0 votes
1 answer
29 views

kotlin android xml - overlapping shape, remove Border

there is an overlapping at the bottom right corner. It is a square lying under a rectangle. How to remove the overlapping and make it looks 1 complete object? cardview (it is my rectangle) <...
lucas lootan's user avatar
0 votes
1 answer
16 views

Unable to Implement Fragment Navigation in Android Application: Need Guidance

The issue I'm having is that I'm unable to get the bottom navigation to switch between fragments. This is de activity_main.xml: <?xml version="1.0" encoding="utf-8"?> <...
aidahoo's user avatar

15 30 50 per page
1
2 3 4 5
92