forked from upstream-mirrors/OpenTracks
Improve the buttons layout on the "Send to Google" dialog.
For style, I sort the attributes alphabetically except for "android:id". If "android:id" exists, I place it on the same line as the element.
This commit is contained in:
@@ -127,26 +127,42 @@ limitations under the License.
|
||||
</TableLayout>
|
||||
</ScrollView>
|
||||
<LinearLayout
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/list_bar"
|
||||
android:padding="3dip">
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="fill_parent"
|
||||
android:orientation="horizontal"
|
||||
android:paddingLeft="2dip"
|
||||
android:paddingRight="2dip"
|
||||
android:paddingTop="4dip">
|
||||
<!-- left spacer -->
|
||||
<LinearLayout
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="0.25"
|
||||
android:layout_width="0dip"
|
||||
android:orientation="horizontal"
|
||||
android:visibility="gone"/>
|
||||
<Button android:id="@+id/sendtogoogle_cancel"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_gravity="left"
|
||||
android:layout_height="48dip"
|
||||
android:layout_gravity="right"
|
||||
android:layout_weight="1"
|
||||
android:layout_width="0dip"
|
||||
android:maxLines="2"
|
||||
android:text="@string/cancel"
|
||||
android:textSize="14dip"/>
|
||||
<TextView
|
||||
android:layout_width="0dip"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"/>
|
||||
<Button android:id="@+id/sendtogoogle_send_now"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="48dip"
|
||||
android:layout_gravity="right"
|
||||
android:layout_height="48dip"
|
||||
android:layout_weight="1"
|
||||
android:layout_width="0dip"
|
||||
android:maxLines="2"
|
||||
android:text="@string/sendtogoogle_send_now"
|
||||
android:textSize="14dip"/>
|
||||
<!-- right spacer -->
|
||||
<LinearLayout
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="0.25"
|
||||
android:layout_width="0dip"
|
||||
android:orientation="horizontal"
|
||||
android:visibility="gone"/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
Reference in New Issue
Block a user