I made a camera layout where two buttons existed.A click button and a share button.
Problem is i want to make align this buttons in same view,but i can not.
this is my code for button
<Button
android:id="@+id/buttonClick"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Click"
android:layout_gravity="left" />
<Button
android:id="@+id/buttonShare"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Share"
android:layout_gravity="right" />

But i want the click button will be the same place where the share button stay …
You probably have them in a
LinearLayoutalong the other view(with the “Camera demo” text). But without seeing the complete layout file you could wrap them in another layout like this: