Android - Position Two Layouts at the Same X - $60 Dollars

Imefungwa Ilichapishwa Miaka 5 iliyopita Kulipwa wakati wa kujifungua
Imefungwa Kulipwa wakati wa kujifungua

Hi.

I have been developing an App for months, new to Java and "Programming" in general.

You can download it from the Files of this Project.

It is a Zip with an Android Studio Project inside.

.

Now, I have gotten to a point where I cannot solve Positioning an Image View or a Layout in the Same X Position than Another Second Layout (both created and added to a Third Parent Layout at the same time).

.

The Context of the Problem, is that I have a Linear Layout called "HorizontalLayout", where I want to add, and position, every time I press a button (called "Tap"), 3, 4, or 5 Image Views (or LinearLayouts from an .xml with an Image View inside), at The Same X Position, and Different Y Positions.

There is no problem with the Y Positions (does not matter where they are currrently positioned in Y, the Attached App is kind of a Test Version for you to solve the problem, only).

And also, One Linear Layout gets correctly positioned in the X Coordinate (the Music Figure), with setX, yet, the other ones (just one, in the case of the Test App to simplificate things), do not (which is an Image View of an Horizontal Line).

.

I tried several possible solutions, like setMargins, setLayoutParams, setLeft, Inflate a Layout which contains the ImageView, or just to create the Image View and add it to the Parent Layout, then setX.

Changing the moment of the Bad Positioned Linear Layout.

Changing Xml Stuff on the Added Xml Layout.

Nothing has worked for the moment.

.

So.

I need someone to resolve this Unsolvable Simple Problem.

.

One important thing, is, that I said, I need to put many Images Views at the Same X Position, every time I press the Button Tap.

They all have different widths, so, making complex things like taking count of all the added widths of the Image Views, to get to the correct X Position, would not be considered a solution.

(As I said, one of the Images always get correctly positioned in X, so, I am trying to just position the other Images just like this one, simply).

Also, Important, I do not want to merge the Two Images in One, this is Out of the Table.

And, in general, I do not want you to make this work at the cost of making other functions of the App work bad.

It has to be good clean code.

Whateveer it would be.

.

So.

Those are the General Details of the Project.

At the Final of This Text, I leave Details like the Class and Lines where this problem is, and all of the specific details, for you to read in case you are interested.

.

If anyone is interested.

Send me a message.

I give $60 Dollars for the Solution.

.

This is all for the moment.

.

Thank you for your time.

.

PD:

Class with the problem: RhythmMain.java.

Lines with the problem: 876 to 908.

How to see the problem: You install the App, press Ok (not so visible), then OK, and OK, and a Button "Live Partitures" will appear.

Press it.

Then, press the Button "Tap".

You will see a Music Figure and a Line appear at the same X position the First Time.

This is what should happen always, the Figure, and the Line, at the same X position, every time you would press Tap.

Yet.

If you press Tap again, the Second Figure will be correctly positioned in X, yet, the Second Line, will be positioned much, much more to the Right than the Figure (when they should be always in the same X Position).

.

So.

That and like that the problem is.

And I need to solve it.

.

If you are interested.

I expect your message.

.

Thank you for your time.

.

PD: Also, I do not want you to create a Frame Layout Inside Horizontal Layout, to add all the Images there and not to have problem with the X's Position.

.

Good Solutions.

Changing Xml Stuff like "adjustableViewBounds" or whatever, that would make this work normally.

I want to just setX a Linear Layout.

And I do not want big problems for being able to do this.

.

Expect your message.

.

Thank you for your time.

.

Android Java Mobile App Development Software Architecture

Kitambulisho cha Mradi: #18367025

Kuhusu mradi

11 mapendekezo Mradi wa mbali Ipo mtandaoni %project.latestActivity_relativeTime|badilisha%

11 wafanyakazi huru wanazabuni wastani wa $110 kwa kazi hii

YouSheng

Dear Sir! How are you? I have been creating high quality and excellent Native iOS and Android apps for 7+ years using Swift, Objectiv-C, Java, Kotlin. Also I am good at in Cross platform Development such as Xamarin a Zaidi

$100 USD kwa siku 3
(Maoni 47)
7.8
huzefagadi

I can do it. if it is still not solved.. you must have got many messages already, let me know if this is still not solved.I can help you solve it. Message me and lets get started Regards Huzefa

$60 USD kwa siku 1
(Maoni 139)
7.5
techradr

I have more than 5 years experience in Mobile Applications. I can create any kind application within very sort time. I am a Mobile App Developer working with iOS SDK, Objective C, Swift, Cocoa Touch, UIKit, Xcode, J Zaidi

$77 USD kwa siku 3
(Maoni 28)
6.5
Vadimwang

Hello, how are you? I am very glad to meet you and very excited to see your proposal. I am an excellent android, iPhone software development expert and have 10+ years rich experience in developing many projects such Zaidi

$55 USD kwa siku 3
(Maoni 65)
5.9
waqaramjad1993

Dear sir, madam I am interesting your project. I can satisfy you perfectly. I have read your description and I would like to work for you having perfect expertise in required task. I am software engineer having 5 year Zaidi

$111 USD kwa siku 3
(Maoni 10)
3.6
readymakers

I am confident I am the right candidate for this project as I have done many similar projects in the past. With years of experience in this field, I believe this project will be very easy for me.

$367 USD kwa siku 15
(Maoni 5)
3.3
meetalikaushal

Hey, I'm interested in your project. Please send me a message so that we can discuss more. Regards

$61 USD kwa siku 2
(Maoni 2)
2.3
alexandraiwanov

Hi, Nice to meet you! I checked your project details carefully. I have rich experience in Mobile App development. I am very much interested in your project with all of your requirements. Looking forward to discuss Zaidi

$155 USD kwa siku 3
(Maoni 0)
0.0
skype90

Hey Sir/Madam! Hope you are fine. I am an engineer and have an experience of more than 3 years in development and designing web and mobile applications. I have recently joined this platform to earn more as I am stil Zaidi

$100 USD kwa siku 7
(Maoni 0)
0.0