Ive got a view like below :
If you are using Kotlin and you have androidx-core-ktx lib you can simply do:
someView.updateLayoutParams { horizontalBias = 0.5f }