forked from upstream-mirrors/OpenTracks
Use a DialogFragment for ChooseUploadService.
This commit is contained in:
+12
-12
@@ -25,24 +25,24 @@ limitations under the License.
|
||||
<ImageView
|
||||
android:contentDescription="@string/send_google_maps"
|
||||
android:src="@drawable/google_maps_icon"
|
||||
style="@style/UploadServiceChooserImageView" />
|
||||
style="@style/ChooseUploadServiceImageView" />
|
||||
<CheckBox
|
||||
android:id="@+id/send_google_maps"
|
||||
android:id="@+id/choose_upload_service_maps"
|
||||
android:text="@string/send_google_maps"
|
||||
style="@style/UploadServiceChooserCheckBox" />
|
||||
style="@style/ChooseUploadServiceCheckBox" />
|
||||
</TableRow>
|
||||
<TableRow android:id="@+id/send_google_maps_option_row" >
|
||||
<TableRow android:id="@+id/choose_upload_service_maps_options" >
|
||||
<RadioGroup
|
||||
android:layout_column="1"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:layout_width="0dp" >
|
||||
<RadioButton
|
||||
android:id="@+id/send_google_new_map"
|
||||
android:id="@+id/choose_upload_service_new_map"
|
||||
android:text="@string/send_google_new_map"
|
||||
style="@style/TextMedium" />
|
||||
<RadioButton
|
||||
android:id="@+id/send_google_existing_map"
|
||||
android:id="@+id/choose_upload_service_existing_map"
|
||||
android:text="@string/send_google_existing_map"
|
||||
style="@style/TextMedium" />
|
||||
</RadioGroup>
|
||||
@@ -51,21 +51,21 @@ limitations under the License.
|
||||
<ImageView
|
||||
android:contentDescription="@string/send_google_fusion_tables"
|
||||
android:src="@drawable/google_fusion_tables_icon"
|
||||
style="@style/UploadServiceChooserImageView" />
|
||||
style="@style/ChooseUploadServiceImageView" />
|
||||
<CheckBox
|
||||
android:id="@+id/send_google_fusion_tables"
|
||||
android:id="@+id/choose_upload_service_fusion_tables"
|
||||
android:text="@string/send_google_fusion_tables"
|
||||
style="@style/UploadServiceChooserCheckBox" />
|
||||
style="@style/ChooseUploadServiceCheckBox" />
|
||||
</TableRow>
|
||||
<TableRow>
|
||||
<ImageView
|
||||
android:contentDescription="@string/send_google_docs"
|
||||
android:src="@drawable/google_docs_icon"
|
||||
style="@style/UploadServiceChooserImageView" />
|
||||
style="@style/ChooseUploadServiceImageView" />
|
||||
<CheckBox
|
||||
android:id="@+id/send_google_docs"
|
||||
android:id="@+id/choose_upload_service_docs"
|
||||
android:text="@string/send_google_docs"
|
||||
style="@style/UploadServiceChooserCheckBox" />
|
||||
style="@style/ChooseUploadServiceCheckBox" />
|
||||
</TableRow>
|
||||
</TableLayout>
|
||||
</ScrollView>
|
||||
@@ -31,6 +31,17 @@ limitations under the License.
|
||||
<item name="android:layout_width">fill_parent</item>
|
||||
<item name="android:orientation">horizontal</item>
|
||||
</style>
|
||||
<!-- The style for choose upload service check box -->
|
||||
<style name="ChooseUploadServiceCheckBox" parent="@style/TextMedium">
|
||||
<item name="android:layout_gravity">center_vertical</item>
|
||||
<item name="android:layout_marginLeft">8dp</item>
|
||||
<item name="android:layout_width">0dp</item>
|
||||
</style>
|
||||
<!-- The style for choose upload service image view -->
|
||||
<style name="ChooseUploadServiceImageView">
|
||||
<item name="android:layout_height">wrap_content</item>
|
||||
<item name="android:layout_width">wrap_content</item>
|
||||
</style>
|
||||
<!-- The style for the edit category -->
|
||||
<style name="EditCategory" parent="@style/TextMedium">
|
||||
<item name="android:layout_width">fill_parent</item>
|
||||
@@ -150,15 +161,4 @@ limitations under the License.
|
||||
<style name="TrackWidgetValue" parent="@style/TextSmall">
|
||||
<item name="android:width">100dp</item>
|
||||
</style>
|
||||
<!-- The style for upload service chooser check box -->
|
||||
<style name="UploadServiceChooserCheckBox" parent="@style/TextMedium">
|
||||
<item name="android:layout_gravity">center_vertical</item>
|
||||
<item name="android:layout_marginLeft">8dp</item>
|
||||
<item name="android:layout_width">0dp</item>
|
||||
</style>
|
||||
<!-- The style for upload service chooser image view -->
|
||||
<style name="UploadServiceChooserImageView">
|
||||
<item name="android:layout_height">wrap_content</item>
|
||||
<item name="android:layout_width">wrap_content</item>
|
||||
</style>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user