4,950 questions
0
votes
1
answer
71
views
Buttons layout to be rearrange after hiding any one so fill the first row first
I have six button in two Linear Layouts, three in each linear layout. But If I hide any button from any Linear layout they are rearranged accordingly in the same linear layout. But I required the If I ...
0
votes
1
answer
75
views
Android: Linear Layout: Setting text view value from code
I have a bunch of text views in a linear layout. The user's interaction with them is view-only: If the user guesses correctly (using voice), that guess will show in one of the text views. It looks ...
0
votes
1
answer
40
views
Row of TextViews not displaying on Samsung Galaxy 33 device
I have been working on an app for a while, which is in production on the store. At the last revision a problem appeared when running the app on a Samsung Galaxy 33A device. The problem does not show ...
0
votes
1
answer
64
views
Change Linear Layout Margin in a fragment at different time of the day in Android Kotlin
I am trying to change the margin of a linear layout in Kotlin programmatically as shown below. But the app crashes as soon I click on the page. There is no error during build.
I searched here and ...
0
votes
2
answers
49
views
How to add scrollview to only LinearLayout in main_activity not to the whole view?
I am simply trying to add scrollbar to my linearlayout one of many views I have in the main_activity.xml. However, every time I do that it destroys my whole main_activity setup. I looked up and down ...
1
vote
4
answers
233
views
How to prevent long text from wrapping to the next line in text view
I have a LinearLayout with multiple nested views. The main view is a CardView that contains both text and a progress bar. To ensure proper spacing inside the card, I set a padding of 50dp. Without ...
0
votes
1
answer
64
views
How to prevent ImageView from being clipped at the edges of a LinearLayout in Android?
I am trying to make a profile image to be placed on top of the border, but it keeps getting cropped out by the borders of the linear layout.
Here is my code:
android:id="@+id/linearLayout&...
0
votes
0
answers
46
views
While setting background Image to linear layout using glide, it appears stretched
How to preserve aspect ratio/scale of image while trying to set it as background image to LinearLayout in Android using Glide?
Hi there, I am new to Android developement.
What I want to achieve is ...
0
votes
1
answer
73
views
Android - ScrollView not scrolling, beginner programmer question
I'm beginner student of Android programming
I've added LinearLayout and ScrollView. I've filled LinearLayout with many long TextViews, to ensure, that it is long enough, to be able to scroll. My issue ...
-1
votes
1
answer
101
views
Two scrollviews, one below the other, should each use half the space, but shrink in favour of the other if they are not completely filled
I have two vertical ScrollViews in a vertical LinearLayout.
If I set the layout_weight for both to 1, they both use half of the full height.
However, this is also the case if one of them only needs e....
1
vote
3
answers
96
views
Textview getting out of the parent layout in Android XML
Im having some issue with keeping the textview visible and in center of the parent layout
This is some what an expected output i want (this is a image an not a ui layout itself)
but as im not using ...
0
votes
0
answers
58
views
Wrap a text around an image in Android Studio
I want to achieve something like this in Android Studio:
So far, this is what I have:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://...
0
votes
1
answer
36
views
Can I use Canvas element in other functions to show on view
I have created a layout includes some view within, also it includes a LinearLayout to draw a graphic
main_page_layout.xml
<?xml version="1.0" encoding="utf-8"?>
<androidx....
0
votes
1
answer
298
views
How to center the Flow widget within the ConstraintLayout?
I'm currently facing an issue with centering a Flow widget within a ConstraintLayout. The Flow widget contains two child TextView elements, and I want the entire Flow to be centered both horizontally ...
0
votes
2
answers
96
views
Android Scrolling/Fading Text Programatically Appended To
I'm building an old-school type android game, and one of the things I'd like to have is a "combat results text window" where I can add text as actions happen, so the player knows what's ...