48 lines
		
	
	
		
			2.2 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			48 lines
		
	
	
		
			2.2 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
| <?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:layout_width="match_parent"
 | |
|     android:layout_height="match_parent">
 | |
|     <com.ubt.jimu.main.widget.CardLayout
 | |
|         android:id="@+id/card_layout"
 | |
|         android:layout_width="match_parent"
 | |
|         android:layout_height="match_parent"
 | |
|         android:layout_centerHorizontal="true"
 | |
|         android:layout_centerVertical="true"
 | |
|         app:cl_hPadding="@dimen/home_card_padding"
 | |
|         app:cl_hSpacing="@dimen/home_card_spacing"
 | |
|         app:cl_ratioWH="1.53"
 | |
|         app:cl_splitCount="4">
 | |
|         <TextView
 | |
|             android:id="@+id/lessons"
 | |
|             android:background="@drawable/learn_lessons"
 | |
|             android:layout_width="match_parent"
 | |
|             android:layout_height="wrap_content"
 | |
|             android:text="@string/lessons_new"
 | |
|             android:layout_centerVertical="true"
 | |
|             android:layout_marginStart="76dp"
 | |
|             android:layout_alignParentStart="true"
 | |
|             style="@style/home_card_txt"/>
 | |
|         <TextView
 | |
|             android:id="@+id/adventure"
 | |
|             android:background="@drawable/learn_adventure"
 | |
|             android:layout_width="match_parent"
 | |
|             android:layout_height="wrap_content"
 | |
|             android:text="@string/tab_title_interstellar_adventure"
 | |
|             style="@style/home_card_txt"/>
 | |
|     </com.ubt.jimu.main.widget.CardLayout>
 | |
|     <com.ubt.jimu.main.widget.RobotSwitchView
 | |
|         android:id="@+id/robot_switch"
 | |
|         android:background="@drawable/connection_status_bg"
 | |
|         android:layout_width="@dimen/switch_robot_img"
 | |
|         android:layout_height="@dimen/switch_robot_img"
 | |
|         android:layout_marginRight="@dimen/home_switch_margin_vertical"
 | |
|         android:layout_marginBottom="@dimen/home_switch_margin_vertical"
 | |
|         android:layout_alignParentRight="true"
 | |
|         android:layout_alignParentBottom="true"/>
 | |
|     <com.ubt.jimu.widgets.LoadingView
 | |
|         android:layout_gravity="center"
 | |
|         android:id="@+id/loadingView"
 | |
|         android:layout_width="match_parent"
 | |
|         android:layout_height="match_parent"/>
 | |
| </RelativeLayout>
 |