/
githubmirror
/
shadowsocks-android
Обзор
Документация
Войти
/
githubmirror
/
shadowsocks-android
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
mobile/src/main/res/layout/layout_profile.xml
106 строк
4 KB
Max Lv
Clean up and bump version
01 дек 2020, 12:17
01 дек 2020, 12:17
8e17e4f
Код
Авторство
О чём код?
<?xml version="1.0" encoding="utf-8"?> <!-- Based on: https://github.com/android/platform_frameworks_base/blob/505e3ab/core/res/res/layout/simple_list_item_2.xml --> <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:id="@+id/content" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@drawable/background_profile" android:focusable="true" android:nextFocusRight="@+id/edit" android:orientation="vertical"> <LinearLayout android:id="@+id/container" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="16dp" > <TextView android:id="@android:id/text1" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:layout_weight="1" android:ellipsize="end" android:gravity="center_vertical" android:maxLines="2" android:textAppearance="?android:attr/textAppearanceMedium" android:textColor="?android:attr/textColorPrimary" android:textStyle="bold" tools:text="@string/profile_name"/> <androidx.appcompat.widget.AppCompatImageView android:id="@+id/subscription" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="top" android:background="?attr/selectableItemBackgroundBorderless" android:contentDescription="@string/subscriptions" android:focusable="true" android:padding="12dp" android:visibility="gone" app:srcCompat="@drawable/ic_file_cloud_queue"/> <androidx.appcompat.widget.AppCompatImageView android:id="@+id/edit" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="top" android:background="?attr/selectableItemBackgroundBorderless" android:contentDescription="@string/edit" android:focusable="true" android:padding="12dp" app:srcCompat="@drawable/ic_image_edit"/> <androidx.appcompat.widget.AppCompatImageView android:id="@+id/share" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="top" android:background="?attr/selectableItemBackgroundBorderless" android:contentDescription="@string/share" android:focusable="true" android:nextFocusLeft="@+id/container" android:padding="12dp" app:srcCompat="@drawable/ic_social_share"/> </LinearLayout> <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="16dp" > <com.github.shadowsocks.widget.AutoCollapseTextView android:id="@android:id/text2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentStart="true" android:layout_marginBottom="@dimen/profile_padding" android:layout_marginEnd="12dp" android:layout_toStartOf="@+id/traffic" android:ellipsize="end" android:maxLines="2" android:textAppearance="?android:attr/textAppearanceSmall" android:textColor="?android:attr/textColorSecondary" tools:text="@string/profile_plugin"/> <com.github.shadowsocks.widget.AutoCollapseTextView android:id="@+id/traffic" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentEnd="true" android:layout_gravity="bottom" android:layout_marginBottom="@dimen/profile_padding" android:layout_marginEnd="12dp" android:ellipsize="end" android:textAppearance="?android:attr/textAppearanceSmall" android:textColor="?android:attr/textColorSecondary" tools:text="@string/traffic"/> </RelativeLayout> </LinearLayout>