mirror of
https://github.com/samsonjs/media.git
synced 2026-03-25 09:25:53 +00:00
76 lines
3.1 KiB
XML
76 lines
3.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright 2021 The Android Open Source Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
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.
|
|
-->
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingBottom="@dimen/margin_small"
|
|
android:paddingTop="@dimen/margin_small">
|
|
|
|
<ImageView
|
|
android:id="@+id/app_icon"
|
|
android:layout_width="@dimen/app_icon_size"
|
|
android:layout_height="@dimen/app_icon_size"
|
|
android:layout_marginEnd="@dimen/margin_small"
|
|
android:layout_marginRight="@dimen/margin_small"
|
|
android:layout_marginStart="@dimen/activity_vertical_margin"
|
|
android:layout_marginLeft="@dimen/activity_vertical_margin"
|
|
android:contentDescription="@string/app_icon_desc"
|
|
android:layout_gravity="center_vertical"
|
|
android:scaleType="fitCenter"
|
|
app:srcCompat="@mipmap/ic_launcher"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="@dimen/activity_vertical_margin"
|
|
android:layout_marginRight="@dimen/activity_vertical_margin"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/app_name"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:maxLines="1"
|
|
android:singleLine="true"
|
|
android:textColor="@color/text_dark"
|
|
android:textSize="@dimen/app_name_text_size"
|
|
android:textStyle="bold"
|
|
tools:text="Media App" />
|
|
|
|
<TextView
|
|
android:id="@+id/package_name"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/margin_small"
|
|
android:ellipsize="middle"
|
|
android:singleLine="true"
|
|
android:textColor="@color/text_light"
|
|
android:textSize="@dimen/app_package_text_size"
|
|
tools:text="com.example.mediaapp" />
|
|
</LinearLayout>
|
|
|
|
<Button
|
|
android:id="@+id/app_control"
|
|
android:layout_width="@dimen/app_control_button_width"
|
|
android:layout_height="@dimen/app_button_height"
|
|
android:layout_weight="0"
|
|
android:text="@string/app_control_button" />
|
|
|
|
</LinearLayout>
|