forked from upstream-mirrors/OpenTracks
Add scrollview around alert dialog content
This commit is contained in:
@@ -14,22 +14,25 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|||||||
See the License for the specific language governing permissions and
|
See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
-->
|
-->
|
||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:layout_height="wrap_content"
|
style="@style/ScrollView" >
|
||||||
android:layout_width="match_parent"
|
<LinearLayout
|
||||||
android:paddingLeft="8dp"
|
|
||||||
android:paddingRight="8dp"
|
|
||||||
android:paddingTop="16dp" >
|
|
||||||
<AutoCompleteTextView
|
|
||||||
android:hint="@string/track_edit_activity_type_hint"
|
|
||||||
android:id="@+id/activity_type_preference_text_view"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:layout_weight="1"
|
|
||||||
android:layout_width="0dp"
|
|
||||||
style="@style/EditCategory" />
|
|
||||||
<Spinner
|
|
||||||
android:id="@+id/activity_type_preference_spinner"
|
|
||||||
android:layout_gravity="bottom"
|
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_width="wrap_content" />
|
android:layout_width="match_parent"
|
||||||
</LinearLayout>
|
android:paddingLeft="8dp"
|
||||||
|
android:paddingRight="8dp"
|
||||||
|
android:paddingTop="16dp" >
|
||||||
|
<AutoCompleteTextView
|
||||||
|
android:hint="@string/track_edit_activity_type_hint"
|
||||||
|
android:id="@+id/activity_type_preference_text_view"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
style="@style/EditCategory" />
|
||||||
|
<Spinner
|
||||||
|
android:id="@+id/activity_type_preference_spinner"
|
||||||
|
android:layout_gravity="bottom"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_width="wrap_content" />
|
||||||
|
</LinearLayout>
|
||||||
|
</ScrollView>
|
||||||
@@ -14,54 +14,57 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|||||||
See the License for the specific language governing permissions and
|
See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
-->
|
-->
|
||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:layout_height="wrap_content"
|
style="@style/ScrollView" >
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:orientation="vertical" >
|
|
||||||
<GridView
|
|
||||||
android:id="@+id/choose_activity_type_grid_view"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:numColumns="4"
|
|
||||||
android:padding="4dp"
|
|
||||||
android:stretchMode="spacingWidth"
|
|
||||||
android:verticalSpacing="4dp" />
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/choose_activity_type_weight_container"
|
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:orientation="vertical" >
|
android:orientation="vertical" >
|
||||||
<TextView
|
<GridView
|
||||||
android:id="@+id/choose_activity_type_weight_label"
|
android:id="@+id/choose_activity_type_grid_view"
|
||||||
android:layout_marginBottom="2dp"
|
|
||||||
android:layout_marginLeft="16dp"
|
|
||||||
android:layout_marginRight="16dp"
|
|
||||||
android:layout_marginTop="4dp"
|
|
||||||
android:paddingLeft="12dp"
|
|
||||||
style="@style/TextMedium" />
|
|
||||||
<FrameLayout
|
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_width="fill_parent" >
|
android:layout_width="match_parent"
|
||||||
<EditText
|
android:numColumns="4"
|
||||||
android:id="@+id/choose_activity_type_weight"
|
android:padding="4dp"
|
||||||
android:inputType="numberDecimal"
|
android:stretchMode="spacingWidth"
|
||||||
android:layout_marginBottom="4dp"
|
android:verticalSpacing="4dp" />
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/choose_activity_type_weight_container"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:orientation="vertical" >
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/choose_activity_type_weight_label"
|
||||||
|
android:layout_marginBottom="2dp"
|
||||||
android:layout_marginLeft="16dp"
|
android:layout_marginLeft="16dp"
|
||||||
android:layout_marginRight="16dp"
|
android:layout_marginRight="16dp"
|
||||||
android:layout_marginTop="2dp"
|
android:layout_marginTop="4dp"
|
||||||
android:layout_width="match_parent"
|
android:paddingLeft="12dp"
|
||||||
android:selectAllOnFocus="true"
|
|
||||||
android:singleLine="true"
|
|
||||||
style="@style/TextMedium" />
|
style="@style/TextMedium" />
|
||||||
<ImageButton
|
<FrameLayout
|
||||||
android:background="@android:color/transparent"
|
|
||||||
android:id="@+id/choose_activity_type_weight_image_button"
|
|
||||||
android:layout_gravity="right|center_vertical"
|
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginRight="16dp"
|
android:layout_width="fill_parent" >
|
||||||
android:layout_width="wrap_content"
|
<EditText
|
||||||
android:paddingRight="12dp"
|
android:id="@+id/choose_activity_type_weight"
|
||||||
android:src="@android:drawable/ic_menu_close_clear_cancel" />
|
android:inputType="numberDecimal"
|
||||||
</FrameLayout>
|
android:layout_marginBottom="4dp"
|
||||||
|
android:layout_marginLeft="16dp"
|
||||||
|
android:layout_marginRight="16dp"
|
||||||
|
android:layout_marginTop="2dp"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:selectAllOnFocus="true"
|
||||||
|
android:singleLine="true"
|
||||||
|
style="@style/TextMedium" />
|
||||||
|
<ImageButton
|
||||||
|
android:background="@android:color/transparent"
|
||||||
|
android:id="@+id/choose_activity_type_weight_image_button"
|
||||||
|
android:layout_gravity="right|center_vertical"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginRight="16dp"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:paddingRight="12dp"
|
||||||
|
android:src="@android:drawable/ic_menu_close_clear_cancel" />
|
||||||
|
</FrameLayout>
|
||||||
|
</LinearLayout>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</LinearLayout>
|
</ScrollView>
|
||||||
Reference in New Issue
Block a user