forked from upstream-mirrors/OpenTracks
add option to set weight in choose activity type dialog
This commit is contained in:
@@ -14,10 +14,40 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<GridView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="match_parent"
|
||||
android:numColumns="4"
|
||||
android:padding="4dp"
|
||||
android:stretchMode="spacingWidth"
|
||||
android:verticalSpacing="4dp" />
|
||||
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
|
||||
android:id="@+id/choose_activity_type_weight_container"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="match_parent"
|
||||
android:orientation="vertical" >
|
||||
<TextView
|
||||
android:layout_marginBottom="2dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:layout_marginTop="4dp"
|
||||
android:text="@string/settings_stats_weight"
|
||||
style="@style/TextMedium" />
|
||||
<EditText
|
||||
android:id="@+id/choose_activity_type_weight"
|
||||
android:inputType="numberDecimal"
|
||||
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" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
Reference in New Issue
Block a user