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

Questions tagged [android-layout]

A layout defines the visual structure for a user interface, such as the UI for an activity, fragment or app widget.

0 votes
0 answers
12 views

Why does adding WindowCompat.setDecorFitsSystemWindows(window, false) in MainActivity cause TextView to disappear in Android?

I'm working on an Android application and encountered an issue when adding `WindowCompat.setDecorFitsSystemWindows(window, false)` in the `MainActivity`. **Problem**: When I add this line in `onCreate`...
Nitin Patil's user avatar
0 votes
1 answer
23 views

Android square screen how to use portrait layout?

I need to adapt a square screen(1200px * 1200px, 160dpi), use context.resources.configuration.orientation found out it's a landscape orientation. How do I force a portrait layout? I've already tried ...
Dylan Jin's user avatar
0 votes
1 answer
32 views

button.setOnClickListener() Crashes Android App, on Device Rotation

I'm working on a project that updates a textview with text when a button is pressed. For example, you press 0 and 0 displays on the textview. When the device changes orientation, such as when the user ...
myles's user avatar
  • 1
0 votes
0 answers
13 views

FlexboxLayout Not Recognized Despite Correct Dependencies

I have already imported the necessary dependencies for my project to use the flexbox layout. It shows an error that it does not work and cannot find the dependency in my project. Here i the code I'm ...
user26436559's user avatar
0 votes
1 answer
25 views

How to change the background color of LottieAnimationView in Android

I have used a LottieAnimationView in my andriod XML with a lottie animation file. The animation file itself has transparent background but the LottieAnimationView has a white background that I can't ...
Atul's user avatar
  • 153
1 vote
1 answer
42 views

How to add Different Padding Between Floating Hint and Input Text in Custom TextInputLayout?

I'm working on a custom TextInputLayout in my Android project. I need to differentiate the padding between the floating hint (label) and the input text. When the hint is floating (acting as a label), ...
Banyu Santoso's user avatar
0 votes
2 answers
41 views

layout doesn't appear in activity_main of my app

i've a problem with my app. Today i've upgrade my android studio to the last version. I've runned my app on my phone, but in the activity_main.xml the include layout (that contains a new ActionBar) ...
Massimo's user avatar
  • 33
0 votes
0 answers
9 views

Why can NOT display the content when the TableLayout tag has more children (added programmatically) at runtime in Android studio?

I confused with the issue Why can NOT display the content when the TableLayout tag has more children (added programmatically) at runtime in Android studio? as the title says. I'm sure that The ...
黃奕捷's user avatar
0 votes
1 answer
36 views

Flutter singlechildscrollview layout error

I coded simple screen like below. However singlechildscollview column hide upper +/- button. Why this symptoms occured? and how can I fix it? my development condition as follows android : 2024.1.1 ...
YeonSoo Jung's user avatar
0 votes
0 answers
14 views

Adding ImageView Dynamically Behind Transparent Areas in Multiple Frames in Android App kotlin

I am developing an app where each frame contains a transparent area where users can place their images. The size and position of this transparent area vary across more than 100 frames, some having 3 ...
Bashir Ali's user avatar
0 votes
1 answer
27 views

How to make a floating NavigationView in Android

I want to replicate the menu that Google has in its applications, but I don't know if there is a component like NavigationView and DrawerLayout that allows this menu to be made but that is not fixed ...
caflorezv's user avatar
0 votes
1 answer
37 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 ...
Ferdous Hasan's user avatar
0 votes
0 answers
13 views

Can not extract resource from com.android.aaptcompiler.ParsedResource@3d1b2c66 error in android studio

Can not extract resource from com.android.aaptcompiler.ParsedResource@3d1b2c66 this error is shown in android studio i was tring to run texttospeech app on android and at that time of running the app &...
Sudhanshu Kumar's user avatar
0 votes
0 answers
14 views

How to correctly inflate and convert this layout to bitmap, with correct dimensions

I'm having issues converting layout to Bitmap keeping the correct dimensions. This is what I have in my layout file: And this is what I get as the result: It creates the wrong dimensions, and seems ...
somerandomusername's user avatar
1 vote
0 answers
25 views

Empty space when creating an AlertDialog, only on Oppo phones

I was just trying to migrate my application from a Realme to an Oppo and everything looked fine until I noticed the displayed dialogs were not centered. Here is the example (I will only talk about the ...
DeadFrancis's user avatar

15 30 50 per page
1
2 3 4 5
3943