16 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
1
answer
173
views
Resizing dialog issues with MFC and status bars
The minimum size of my dialog does not factor in the size of the status bar.
In OnInitDialog I create the status bar and add it to the dynamic layout:
m_StatusBar.Create(this);
m_StatusBar....
0
votes
1
answer
47
views
How can I block EditText layout reflow when adding spans?
I am trying to batch-add several thousand spans to a SpannableStringBuilder in an EditText (obtained via getText()).
This is slower than I would like. Profiling has shown that the vast majority of the ...
1
vote
1
answer
142
views
Bitmap doesn't get drawn on canvas-android
I wish to load images from Gallery in my CustomView without altering their aspect ratio, and then I wish to draw on it.
I have a custom view which I added dynamically from MainActivity like this:
@...
0
votes
0
answers
37
views
How to get dynamic created EditText Data in fragment?
I am working on android application in which I am creating dynamic Layout on fragment. When user click on button to get data from layout element then I am getting null pointer exception error.
@...
0
votes
2
answers
639
views
EditText lagging with time - Android
I create app with SpannableString (BackgroundColorSpan, ForegroundColorSpan and StyleSpan). First time EditText work fine, but after 10-15 minutes, the EditText starts to freeze. I use profiler to see ...
0
votes
1
answer
272
views
Constraint Set problem, Unable to figure out issue
I have extended ConstraintLayout and adding views programatically then setting constraint to each view. but some how its not working, only the first view is showing up. Unable to figure out where I ...
-1
votes
1
answer
48
views
Android; Dynamic buttons layout
I have a list filled with values and a list with questions, some elements in the value list have more than 1 element, so for example
question[2] = Light
question[3] = Toppings
value[2] = on / off
...
0
votes
1
answer
64
views
No view found for id "bla bla bla" for grammatically created framlayout
I am creating a framelayout pro-grammatically. Then I create fragment pro-grammatically..Then I want to add the fragment to the framelayout.. this process is happens every time when I click the button....
0
votes
3
answers
81
views
Android TextView: how can I change layout dynamically as text is typed
I need to set a button to "visible" or "gone" dynamically as user types on a TextView field. By using the statement below, I have been able to accomplish it when Enter is pressed, but that would be ...
0
votes
1
answer
75
views
Flutter - Firestore menu functionality
I want to create an online delivery project in flutter & firebase. For the menu section, each product has different properties, how can i display different screens (or widgets) based on the ...
0
votes
1
answer
66
views
I want to design a screen which will show different number of videos on same screen based on certain condition
This is an iOS problem.
I want to design a screen which will show a video on full screen. After some time based on some backend condition if another video is available I have to show that by splitting ...
1
vote
0
answers
88
views
DynamicLayout adding extra space
I am using DynamicLayout to render a SpannableString but I am not able to precisely center the text.
It seems like there is some kind of offset at start that I can't get rid of.
Here is my ...
0
votes
1
answer
206
views
Achieving a dynamic ScrollView via refreshing (or not) the fragment
I want to create a UI where there are n amount of LinearLayout's all contained within a vertical ScrollView (each row will contain a couple items).
I also want this ScrollView to update if another ...
0
votes
1
answer
367
views
How to handle dynamically inflated layout content (Same Layout inflated multiple times)
I have a Linear layout and inside which there are few dropdown and text views,now i want to inflate the layout each time on click of "add more" button, below is the code for inflating the layout. the ...
1
vote
1
answer
1k
views
Android Layout: meaning of getLineBaseline, getLineDescent, getLineAscent, getLineBottom, getLineTop
The documentation for the following methods of Layout (including StaticLayout, DynamicLayout, and BoringLayout) are very sparce.
getLineBaseline(int line)
getLineDescent(int line)
getLineAscent(int ...