全志Launcher代码首次提交
This commit is contained in:
35
app/src/main/res/layout-sw480dp/ad_multi_layout.xml
Normal file
35
app/src/main/res/layout-sw480dp/ad_multi_layout.xml
Normal file
@@ -0,0 +1,35 @@
|
||||
<?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:id="@+id/layout_rect_group"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:ignore="MissingDefaultResource">
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/multi_inside"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
>
|
||||
<ImageView
|
||||
android:id="@+id/img_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_centerInParent="true"/>
|
||||
<TextView
|
||||
android:id="@+id/tx_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="47dp"
|
||||
android:background="@drawable/item_text_bg"
|
||||
android:textSize="13sp"
|
||||
android:paddingStart="14dp"
|
||||
android:paddingTop="10dp"
|
||||
android:paddingBottom="17dp"
|
||||
android:gravity="left"
|
||||
android:textColor="@color/btn_text_color"/>
|
||||
<RelativeLayout
|
||||
android:id="@+id/ad_root"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"/>
|
||||
</RelativeLayout>
|
||||
</RelativeLayout>
|
||||
42
app/src/main/res/layout-sw480dp/add_apps_grid_item.xml
Normal file
42
app/src/main/res/layout-sw480dp/add_apps_grid_item.xml
Normal file
@@ -0,0 +1,42 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="100dp"
|
||||
android:focusable="true"
|
||||
android:padding="5dp"
|
||||
android:descendantFocusability="beforeDescendants">
|
||||
<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="53dp"
|
||||
android:layout_centerInParent="true"
|
||||
android:layout_height="53dp">
|
||||
</ImageView>
|
||||
<TextView
|
||||
android:id="@+id/item_name"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingStart="10dp"
|
||||
android:paddingEnd="10dp"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:gravity="center"
|
||||
android:singleLine="true"
|
||||
android:marqueeRepeatLimit="marquee_forever"
|
||||
android:ellipsize="marquee"
|
||||
android:textSize="13dp"
|
||||
android:layout_marginVertical="5dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:textColor="@color/item_text_color"
|
||||
/>
|
||||
</RelativeLayout>
|
||||
<ImageView
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/item_sel"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_alignParentEnd="true">
|
||||
</ImageView>
|
||||
</RelativeLayout>
|
||||
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>
|
||||
33
app/src/main/res/layout-sw480dp/childgrid_item.xml
Normal file
33
app/src/main/res/layout-sw480dp/childgrid_item.xml
Normal file
@@ -0,0 +1,33 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.ik.mboxlauncher.view.MyRelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="93dp"
|
||||
android:layout_height="98dp"
|
||||
android:id="@+id/item_bg"
|
||||
android:background="@drawable/app_info_bg"
|
||||
android:descendantFocusability="beforeDescendants"
|
||||
android:focusable="true">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/img_app"
|
||||
android:layout_width="48dp"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="18dp"
|
||||
android:layout_height="48dp"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/item_name"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingStart="6dp"
|
||||
android:paddingEnd="6dp"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:gravity="center"
|
||||
android:singleLine="true"
|
||||
android:ellipsize="marquee"
|
||||
android:textSize="14sp"
|
||||
android:layout_marginVertical="6dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:textColor="@color/item_text_color"
|
||||
/>
|
||||
|
||||
</com.ik.mboxlauncher.view.MyRelativeLayout>
|
||||
20
app/src/main/res/layout-sw480dp/homegrid_item.xml
Normal file
20
app/src/main/res/layout-sw480dp/homegrid_item.xml
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:focusable="true"
|
||||
android:gravity="center"
|
||||
android:paddingStart="5dp"
|
||||
android:descendantFocusability="beforeDescendants">
|
||||
<RelativeLayout
|
||||
android:id="@+id/item_root"
|
||||
android:layout_marginTop="13dp"
|
||||
android:background="@drawable/app_item_bg"
|
||||
android:layout_width="34dp"
|
||||
android:layout_height="34dp">
|
||||
<ImageView
|
||||
android:id="@+id/item_bg"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_width="match_parent"/>
|
||||
</RelativeLayout>
|
||||
</RelativeLayout>
|
||||
12
app/src/main/res/layout-sw480dp/homelist_item.xml
Normal file
12
app/src/main/res/layout-sw480dp/homelist_item.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
>
|
||||
<ImageView
|
||||
android:id="@+id/item_type"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent">
|
||||
</ImageView>
|
||||
|
||||
</RelativeLayout>
|
||||
146
app/src/main/res/layout-sw480dp/layout_category_app.xml
Normal file
146
app/src/main/res/layout-sw480dp/layout_category_app.xml
Normal file
@@ -0,0 +1,146 @@
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:descendantFocusability="afterDescendants"
|
||||
android:background="@drawable/frag_bg">
|
||||
<include layout="@layout/layout_custom_apps1"
|
||||
android:id="@+id/coustom_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="200dp"
|
||||
android:visibility="gone"
|
||||
android:descendantFocusability="afterDescendants"
|
||||
android:layout_alignParentTop="true"/>
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/content_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:clipChildren="false"
|
||||
android:visibility="visible">
|
||||
<LinearLayout
|
||||
android:id="@+id/top_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="91dp"
|
||||
android:layout_marginTop="27dp"
|
||||
android:layout_alignParentTop="true"
|
||||
android:gravity="bottom"
|
||||
android:orientation="horizontal">
|
||||
<ImageView
|
||||
android:id="@+id/img_logo"
|
||||
android:layout_width="44dp"
|
||||
android:layout_height="44dp"
|
||||
android:src="@drawable/video"
|
||||
/>
|
||||
<TextView
|
||||
android:id="@+id/tv_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="5dp"
|
||||
android:layout_marginBottom="3dp"
|
||||
android:gravity="bottom"
|
||||
android:text="@string/str_video"
|
||||
android:textSize="16dp" />
|
||||
</LinearLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/bottom_layout"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="53dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_marginBottom="14dp"
|
||||
android:gravity="center_horizontal">
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="2dp"
|
||||
android:layout_marginStart="98dp"
|
||||
android:layout_marginEnd="98dp"
|
||||
android:layout_alignParentTop="true"
|
||||
android:background="@drawable/line" />
|
||||
<ImageView
|
||||
android:id="@+id/img_tab_apps"
|
||||
android:layout_width="44dp"
|
||||
android:layout_height="44dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:src="@drawable/tab_apps_selector"
|
||||
android:background="@drawable/tab_bg_selector"
|
||||
android:layout_centerHorizontal="true"
|
||||
/>
|
||||
<ImageView
|
||||
android:id="@+id/img_tab_recommend"
|
||||
android:layout_width="67dp"
|
||||
android:layout_height="67dp"
|
||||
android:layout_marginStart="7dp"
|
||||
android:layout_marginEnd="7dp"
|
||||
android:layout_marginTop="12dp"
|
||||
android:src="@drawable/tab_recommend_selector"
|
||||
android:background="@drawable/tab_bg_selector"
|
||||
android:layout_toLeftOf="@id/img_tab_apps"
|
||||
/>
|
||||
<ImageView
|
||||
android:id="@+id/img_tab_video"
|
||||
android:layout_width="44dp"
|
||||
android:layout_height="44dp"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:src="@drawable/tab_video_selector"
|
||||
android:background="@drawable/tab_bg_selector"
|
||||
android:layout_toLeftOf="@id/img_tab_recommend"
|
||||
/>
|
||||
<ImageView
|
||||
android:id="@+id/img_tab_music"
|
||||
android:layout_width="44dp"
|
||||
android:layout_height="44dp"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:src="@drawable/tab_music_selector"
|
||||
android:background="@drawable/tab_bg_selector"
|
||||
android:layout_toRightOf="@id/img_tab_apps"
|
||||
/>
|
||||
<ImageView
|
||||
android:id="@+id/img_tab_local"
|
||||
android:layout_width="44dp"
|
||||
android:layout_height="44dp"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:src="@drawable/tab_local_selector"
|
||||
android:background="@drawable/tab_bg_selector"
|
||||
android:layout_toRightOf="@id/img_tab_music"
|
||||
/>
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_below="@id/top_layout"
|
||||
android:layout_above="@id/bottom_layout">
|
||||
<com.ik.mboxlauncher.view.CustomRecyclerViewer
|
||||
android:id="@+id/gv_category_apps"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="horizontal"
|
||||
android:paddingStart="84dp"
|
||||
android:paddingEnd="84dp"
|
||||
android:paddingTop="7dp"
|
||||
android:paddingBottom="7dp"
|
||||
android:clipToPadding="false"
|
||||
android:clipChildren="false"
|
||||
app:itemOffsets="6dp"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:descendantFocusability="afterDescendants"/>
|
||||
</RelativeLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
22
app/src/main/res/layout-sw480dp/layout_custom_apps1.xml
Normal file
22
app/src/main/res/layout-sw480dp/layout_custom_apps1.xml
Normal file
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:descendantFocusability="afterDescendants"
|
||||
android:focusable="true"
|
||||
android:background="@drawable/bg">
|
||||
|
||||
|
||||
<com.ik.mboxlauncher.view.CustomRecyclerView
|
||||
android:id="@+id/grid_coustom_apps"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginStart="10dp"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_alignParentTop="true"
|
||||
android:descendantFocusability="afterDescendants"/>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
145
app/src/main/res/layout-sw480dp/layout_rect_group1.xml
Normal file
145
app/src/main/res/layout-sw480dp/layout_rect_group1.xml
Normal file
@@ -0,0 +1,145 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/layout_rect_group"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:clipToPadding="true"
|
||||
android:clipChildren="true"
|
||||
>
|
||||
|
||||
<com.ik.mboxlauncher.view.HomeMultiView
|
||||
android:id="@+id/layout_video"
|
||||
android:layout_width="139dp"
|
||||
android:layout_height="241dp"
|
||||
android:focusable="true"
|
||||
android:focusableInTouchMode="true"
|
||||
android:layout_marginTop="53dp"
|
||||
android:layout_marginStart="64dp"
|
||||
app:multiViewImage="@drawable/img_video"
|
||||
app:multiViewTitle="@string/str_video"
|
||||
android:nextFocusRight="@id/layout_youtube"
|
||||
android:descendantFocusability="beforeDescendants" />
|
||||
|
||||
|
||||
<com.ik.mboxlauncher.view.HomeMultiView
|
||||
android:id="@+id/layout_youtube"
|
||||
android:layout_width="139dp"
|
||||
android:layout_height="117dp"
|
||||
android:layout_marginStart="211dp"
|
||||
android:layout_marginTop="53dp"
|
||||
android:focusable="true"
|
||||
android:focusableInTouchMode="true"
|
||||
app:multiViewImage="@drawable/img_youtube"
|
||||
android:descendantFocusability="beforeDescendants"
|
||||
/>
|
||||
|
||||
<com.ik.mboxlauncher.view.HomeMultiView
|
||||
android:id="@+id/layout_recommend"
|
||||
android:layout_width="285dp"
|
||||
android:layout_height="117dp"
|
||||
android:layout_marginStart="357dp"
|
||||
android:layout_marginTop="53dp"
|
||||
android:focusable="true"
|
||||
android:focusableInTouchMode="true"
|
||||
app:multiViewImage="@drawable/img_recommend"
|
||||
app:multiViewTitle="@string/str_recommend"
|
||||
android:descendantFocusability="beforeDescendants"
|
||||
/>
|
||||
|
||||
|
||||
|
||||
<com.ik.mboxlauncher.view.HomeMultiView
|
||||
android:id="@+id/layout_music"
|
||||
android:layout_width="139dp"
|
||||
android:layout_height="241dp"
|
||||
android:layout_marginStart="651dp"
|
||||
android:layout_marginTop="53dp"
|
||||
android:focusable="true"
|
||||
android:focusableInTouchMode="true"
|
||||
app:multiViewImage="@drawable/img_music"
|
||||
app:multiViewTitle="@string/str_music"
|
||||
android:descendantFocusability="beforeDescendants"
|
||||
/>
|
||||
|
||||
<com.ik.mboxlauncher.view.HomeMultiView
|
||||
android:id="@+id/layout_netflix"
|
||||
android:layout_width="139dp"
|
||||
android:layout_height="117dp"
|
||||
android:layout_marginStart="211dp"
|
||||
android:layout_marginTop="177dp"
|
||||
android:focusable="true"
|
||||
android:focusableInTouchMode="true"
|
||||
app:multiViewImage="@drawable/img_netflix"
|
||||
android:descendantFocusability="beforeDescendants"
|
||||
/>
|
||||
|
||||
<com.ik.mboxlauncher.view.HomeMultiView
|
||||
android:id="@+id/layout_primevideo"
|
||||
android:layout_width="139dp"
|
||||
android:layout_height="117dp"
|
||||
android:layout_marginTop="177dp"
|
||||
android:layout_marginStart="357dp"
|
||||
android:focusable="true"
|
||||
android:focusableInTouchMode="true"
|
||||
app:multiViewImage="@drawable/img_primevideo"
|
||||
android:descendantFocusability="beforeDescendants"
|
||||
/>
|
||||
<com.ik.mboxlauncher.view.HomeMultiView
|
||||
android:id="@+id/layout_filemanager"
|
||||
android:layout_width="139dp"
|
||||
android:layout_height="117dp"
|
||||
android:layout_marginStart="504dp"
|
||||
android:layout_marginTop="177dp"
|
||||
android:focusable="true"
|
||||
android:focusableInTouchMode="true"
|
||||
app:multiViewImage="@drawable/img_filemanager"
|
||||
android:descendantFocusability="beforeDescendants"
|
||||
/>
|
||||
|
||||
|
||||
<com.ik.mboxlauncher.view.AdMultiView
|
||||
android:id="@+id/layout_miracastreceive"
|
||||
android:layout_width="285dp"
|
||||
android:layout_height="117dp"
|
||||
android:layout_marginStart="64dp"
|
||||
android:layout_marginTop="302dp"
|
||||
app:adMultiViewImage="@drawable/img_miracastreceive"
|
||||
android:focusableInTouchMode="true"
|
||||
android:descendantFocusability="beforeDescendants"
|
||||
/>
|
||||
|
||||
<com.ik.mboxlauncher.view.HomeMultiView
|
||||
android:id="@+id/layout_chrome"
|
||||
android:layout_width="139dp"
|
||||
android:layout_height="117dp"
|
||||
android:layout_marginStart="355dp"
|
||||
android:layout_marginTop="302dp"
|
||||
android:focusable="true"
|
||||
android:focusableInTouchMode="true"
|
||||
app:multiViewImage="@drawable/img_chrome"
|
||||
android:descendantFocusability="beforeDescendants"
|
||||
/>
|
||||
<com.ik.mboxlauncher.view.HomeMultiView
|
||||
android:id="@+id/layout_hbomax"
|
||||
android:layout_width="139dp"
|
||||
android:layout_height="117dp"
|
||||
android:layout_marginStart="502dp"
|
||||
android:layout_marginTop="302dp"
|
||||
android:focusable="true"
|
||||
android:focusableInTouchMode="true"
|
||||
app:multiViewImage="@drawable/img_hbomax"
|
||||
android:descendantFocusability="beforeDescendants"
|
||||
/>
|
||||
<com.ik.mboxlauncher.view.HomeMultiView
|
||||
android:id="@+id/layout_setting"
|
||||
android:layout_width="139dp"
|
||||
android:layout_height="117dp"
|
||||
android:layout_marginStart="651dp"
|
||||
android:layout_marginTop="302dp"
|
||||
android:focusable="true"
|
||||
android:focusableInTouchMode="true"
|
||||
app:multiViewImage="@drawable/img_setting"
|
||||
android:descendantFocusability="beforeDescendants"
|
||||
/>
|
||||
</RelativeLayout>
|
||||
21
app/src/main/res/layout-sw480dp/layout_shortcut.xml
Normal file
21
app/src/main/res/layout-sw480dp/layout_shortcut.xml
Normal file
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center_vertical"
|
||||
>
|
||||
|
||||
<com.ik.mboxlauncher.view.CustomRecyclerView
|
||||
android:id="@+id/gv_shortcut"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:columnCount="11"
|
||||
android:rowCount="1"
|
||||
android:descendantFocusability="afterDescendants"
|
||||
android:layout_marginStart="88dp"
|
||||
/>
|
||||
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
39
app/src/main/res/layout-sw480dp/layout_statusbar.xml
Normal file
39
app/src/main/res/layout-sw480dp/layout_statusbar.xml
Normal file
@@ -0,0 +1,39 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="bottom"
|
||||
android:paddingStart="70dp"
|
||||
android:paddingEnd="70dp"
|
||||
android:descendantFocusability="blocksDescendants">
|
||||
<GridView
|
||||
android:id="@+id/list_status"
|
||||
android:scrollbars="none"
|
||||
android:drawSelectorOnTop="false"
|
||||
android:verticalSpacing="0dip"
|
||||
android:horizontalSpacing="0dip"
|
||||
android:numColumns="5"
|
||||
android:fadingEdgeLength="48dip"
|
||||
android:cacheColorHint="#00000000"
|
||||
android:layout_width="200dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentStart="true"
|
||||
android:paddingTop="0dp"
|
||||
android:paddingBottom="0dp"
|
||||
android:paddingStart="0dp"
|
||||
android:paddingEnd="0dp"
|
||||
android:focusable="false"
|
||||
/>
|
||||
|
||||
<com.ik.mboxlauncher.view.TimeTextView
|
||||
android:id="@+id/tx_time"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="20dp"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:textSize="16dp" />
|
||||
|
||||
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
49
app/src/main/res/layout-sw480dp/main.xml
Normal file
49
app/src/main/res/layout-sw480dp/main.xml
Normal file
@@ -0,0 +1,49 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/layout_homepage"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@drawable/bg"
|
||||
android:descendantFocusability="afterDescendants">
|
||||
|
||||
<include layout="@layout/layout_custom_apps1"
|
||||
android:id="@+id/coustom_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="299dp"
|
||||
android:visibility="gone"
|
||||
android:layout_marginTop="82dp"
|
||||
android:layout_marginBottom="99dp"/>
|
||||
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/content_view"
|
||||
android:background="@color/bg"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<include layout="@layout/layout_statusbar"
|
||||
android:id="@+id/statusbar_layout"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentTop="true"
|
||||
/>
|
||||
<include layout="@layout/layout_rect_group1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
/>
|
||||
</RelativeLayout>
|
||||
<include layout="@layout/layout_shortcut"
|
||||
android:id="@+id/shortcut_layout"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="67dp"/>
|
||||
<FrameLayout
|
||||
android:id="@+id/ad_full_root"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:visibility="gone"/>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
|
||||
37
app/src/main/res/layout-sw480dp/multi_layout.xml
Normal file
37
app/src/main/res/layout-sw480dp/multi_layout.xml
Normal file
@@ -0,0 +1,37 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/layout_rect_group"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/multi_inside"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
>
|
||||
<ImageView
|
||||
android:id="@+id/img_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_centerInParent="true"/>
|
||||
<androidx.media3.ui.PlayerView
|
||||
android:id="@+id/player_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_centerInParent="true"
|
||||
android:background="@android:color/black"
|
||||
android:visibility="gone"
|
||||
/>
|
||||
<TextView
|
||||
android:id="@+id/tx_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="47dp"
|
||||
android:background="@drawable/item_text_bg"
|
||||
android:textSize="13sp"
|
||||
android:paddingStart="14dp"
|
||||
android:paddingTop="10dp"
|
||||
android:paddingBottom="17dp"
|
||||
android:gravity="left"
|
||||
android:textColor="@color/btn_text_color"/>
|
||||
</RelativeLayout>
|
||||
</RelativeLayout>
|
||||
Reference in New Issue
Block a user