全志Launcher代码首次提交
This commit is contained in:
58
app/src/main/res/layout-sw480dp/apps_grid_item.xml
Normal file
58
app/src/main/res/layout-sw480dp/apps_grid_item.xml
Normal file
@@ -0,0 +1,58 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="93dp"
|
||||
android:layout_height="98dp"
|
||||
android:focusable="true"
|
||||
android:gravity="center"
|
||||
android:background="@drawable/app_info_bg"
|
||||
android:clipChildren="true"
|
||||
android:clipToPadding="true"
|
||||
android:focusableInTouchMode="true"
|
||||
tools:ignore="MissingDefaultResource">
|
||||
<RelativeLayout
|
||||
android:id="@+id/item_bg"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/img_app"
|
||||
android:layout_width="48dp"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="18dp"
|
||||
android:layout_height="48dp">
|
||||
</ImageView>
|
||||
<ImageView
|
||||
android:id="@+id/img_add"
|
||||
android:layout_width="28dp"
|
||||
android:src="@drawable/item_add_img"
|
||||
android:layout_marginTop="28dp"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_height="28dp">
|
||||
</ImageView>
|
||||
<TextView
|
||||
android:id="@+id/item_name"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingStart="6dp"
|
||||
android:paddingEnd="6dp"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:gravity="center"
|
||||
android:singleLine="true"
|
||||
android:marqueeRepeatLimit="marquee_forever"
|
||||
android:ellipsize="marquee"
|
||||
android:textSize="14sp"
|
||||
android:layout_marginVertical="9dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:textColor="@color/item_text_color"
|
||||
/>
|
||||
</RelativeLayout>
|
||||
<ImageView
|
||||
android:layout_height="16dp"
|
||||
android:id="@+id/item_sel"
|
||||
android:layout_width="16dp"
|
||||
android:layout_marginEnd="4dp"
|
||||
android:layout_marginTop="4dp"
|
||||
android:layout_alignParentEnd="true">
|
||||
</ImageView>
|
||||
</RelativeLayout>
|
||||
Reference in New Issue
Block a user