Initial commit
This commit is contained in:
parent
34a6ac502a
commit
ad8f59500b
@ -1,18 +1,68 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
|
||||||
tools:context=".MainActivity">
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="Hello World!"
|
android:orientation="vertical"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
tools:context=".MainActivity">
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
<LinearLayout
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
android:layout_width="match_parent"
|
||||||
app:layout_constraintTop_toTopOf="parent" />
|
android:layout_height="match_parent"
|
||||||
|
android:background="@android:color/white"
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
android:orientation="vertical">
|
||||||
|
<include layout="@layout/main_title_bar" />
|
||||||
|
<FrameLayout
|
||||||
|
android:id="@+id/main_body"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:background="@android:color/white" />
|
||||||
|
</LinearLayout>
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/main_bottom_bar"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="55dp"
|
||||||
|
android:layout_alignParentBottom="true"
|
||||||
|
android:background="#F2F2F2"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
<RelativeLayout
|
||||||
|
android:id="@+id/bottom_bar_course_btn"
|
||||||
|
style="@style/rlBottomStyle">
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/bottom_bar_text_course"
|
||||||
|
style="@style/tvBottomStyle"
|
||||||
|
android:text="课程" />
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/bottom_bar_image_course"
|
||||||
|
style="@style/ivBottomStyle"
|
||||||
|
android:layout_above="@id/bottom_bar_text_course"
|
||||||
|
android:src="@drawable/main_course_icon" />
|
||||||
|
</RelativeLayout>
|
||||||
|
<RelativeLayout
|
||||||
|
android:id="@+id/bottom_bar_exercises_btn"
|
||||||
|
style="@style/rlBottomStyle">
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/bottom_bar_text_exercises"
|
||||||
|
style="@style/tvBottomStyle"
|
||||||
|
android:text="习题" />
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/bottom_bar_image_exercises"
|
||||||
|
style="@style/ivBottomStyle"
|
||||||
|
android:layout_above="@id/bottom_bar_text_exercises"
|
||||||
|
android:src="@drawable/main_exercises_icon" />
|
||||||
|
</RelativeLayout>
|
||||||
|
<RelativeLayout
|
||||||
|
android:id="@+id/bottom_bar_myinfo_btn"
|
||||||
|
style="@style/rlBottomStyle">
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/bottom_bar_text_myinfo"
|
||||||
|
style="@style/tvBottomStyle"
|
||||||
|
android:text="我" />
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/bottom_bar_image_myinfo"
|
||||||
|
style="@style/ivBottomStyle"
|
||||||
|
android:layout_above="@id/bottom_bar_text_myinfo"
|
||||||
|
android:src="@drawable/main_my_icon" />
|
||||||
|
</RelativeLayout>
|
||||||
|
</LinearLayout>
|
||||||
|
</RelativeLayout>
|
61
app/src/main/res/layout/main_view_myinfo.xml
Normal file
61
app/src/main/res/layout/main_view_myinfo.xml
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:background="@android:color/white"
|
||||||
|
android:orientation="vertical">
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/ll_head"
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="240dp"
|
||||||
|
android:background="@drawable/myinfo_login_bg"
|
||||||
|
android:orientation="vertical">
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/iv_head_icon"
|
||||||
|
android:layout_width="70dp"
|
||||||
|
android:layout_height="70dp"
|
||||||
|
android:layout_gravity="center_horizontal"
|
||||||
|
android:layout_marginTop="75dp"
|
||||||
|
android:src="@drawable/default_icon" />
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/tv_user_name"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center_horizontal"
|
||||||
|
android:layout_marginTop="10dp"
|
||||||
|
android:text="点击登录"
|
||||||
|
android:textColor="@android:color/white"
|
||||||
|
android:textSize="16sp" />
|
||||||
|
</LinearLayout>
|
||||||
|
<View
|
||||||
|
style="@style/vMyinfoStyle"
|
||||||
|
android:layout_marginTop="20dp" />
|
||||||
|
<RelativeLayout
|
||||||
|
android:id="@+id/rl_course_history"
|
||||||
|
style="@style/rlMyinfoStyle">
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/iv_course_historyicon"
|
||||||
|
style="@style/ivMyinfoLeftStyle"
|
||||||
|
android:src="@drawable/course_history_icon" />
|
||||||
|
<TextView
|
||||||
|
style="@style/tvMyinfoStyle"
|
||||||
|
android:layout_toRightOf="@id/iv_course_historyicon"
|
||||||
|
android:text="播放记录" />
|
||||||
|
<ImageView style="@style/ivMyinfoRightStyle" />
|
||||||
|
</RelativeLayout>
|
||||||
|
<View style="@style/vMyinfoStyle" />
|
||||||
|
<RelativeLayout
|
||||||
|
android:id="@+id/rl_setting"
|
||||||
|
style="@style/rlMyinfoStyle">
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/iv_userinfo_icon"
|
||||||
|
style="@style/ivMyinfoLeftStyle"
|
||||||
|
android:src="@drawable/myinfo_setting_icon" />
|
||||||
|
<TextView
|
||||||
|
style="@style/tvMyinfoStyle"
|
||||||
|
android:layout_toRightOf="@id/iv_userinfo_icon"
|
||||||
|
android:text="设置" />
|
||||||
|
<ImageView style="@style/ivMyinfoRightStyle" />
|
||||||
|
</RelativeLayout>
|
||||||
|
<View style="@style/vMyinfoStyle" />
|
||||||
|
</LinearLayout>
|
@ -49,4 +49,70 @@
|
|||||||
<item name="android:textColor">@android:color/white</item>
|
<item name="android:textColor">@android:color/white</item>
|
||||||
<item name="android:textSize">14sp</item>
|
<item name="android:textSize">14sp</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<style name="rlBottomStyle">
|
||||||
|
<item name="android:layout_width">0dp</item>
|
||||||
|
<item name="android:layout_height">match_parent</item>
|
||||||
|
<item name="android:layout_weight">1</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style name="tvBottomStyle">
|
||||||
|
<item name="android:layout_width">match_parent</item>
|
||||||
|
<item name="android:layout_height">wrap_content</item>
|
||||||
|
<item name="android:layout_alignParentBottom">true</item>
|
||||||
|
<item name="android:layout_centerHorizontal">true</item>
|
||||||
|
<item name="android:layout_marginBottom">3dp</item>
|
||||||
|
<item name="android:gravity">center</item>
|
||||||
|
<item name="android:singleLine">true</item>
|
||||||
|
<item name="android:textColor">#666666</item>
|
||||||
|
<item name="android:textSize">14sp</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style name="ivBottomStyle">
|
||||||
|
<item name="android:layout_width">27dp</item>
|
||||||
|
<item name="android:layout_height">27dp</item>
|
||||||
|
<item name="android:layout_alignParentTop">true</item>
|
||||||
|
<item name="android:layout_centerHorizontal">true</item>
|
||||||
|
<item name="android:layout_marginTop">3dp</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style name="vMyinfoStyle">
|
||||||
|
<item name="android:layout_width">match_parent</item>
|
||||||
|
<item name="android:layout_height">1dp</item>
|
||||||
|
<item name="android:background">#E3E3E3</item>
|
||||||
|
</style>
|
||||||
|
<!--条目布局样式-->
|
||||||
|
<style name="rlMyinfoStyle">
|
||||||
|
<item name="android:layout_width">match_parent</item>
|
||||||
|
<item name="android:layout_height">50dp</item>
|
||||||
|
<item name="android:background">#F7F8F8</item>
|
||||||
|
<item name="android:gravity">center_vertical</item>
|
||||||
|
<item name="android:paddingLeft">10dp</item>
|
||||||
|
<item name="android:paddingRight">10dp</item>
|
||||||
|
</style>
|
||||||
|
<!--条目左侧图标样式-->
|
||||||
|
<style name="ivMyinfoLeftStyle">
|
||||||
|
<item name="android:layout_width">20dp</item>
|
||||||
|
<item name="android:layout_height">20dp</item>
|
||||||
|
<item name="android:layout_centerVertical">true</item>
|
||||||
|
<item name="android:layout_marginLeft">25dp</item>
|
||||||
|
</style>
|
||||||
|
<!--条目文本样式-->
|
||||||
|
<style name="tvMyinfoStyle">
|
||||||
|
<item name="android:layout_width">wrap_content</item>
|
||||||
|
<item name="android:layout_height">wrap_content</item>
|
||||||
|
<item name="android:layout_centerVertical">true</item>
|
||||||
|
<item name="android:layout_marginLeft">25dp</item>
|
||||||
|
<item name="android:textColor">#A3A3A3</item>
|
||||||
|
<item name="android:textSize">16sp</item>
|
||||||
|
</style>
|
||||||
|
<!--条目右侧图标样式-->
|
||||||
|
<style name="ivMyinfoRightStyle">
|
||||||
|
<item name="android:layout_width">15dp</item>
|
||||||
|
<item name="android:layout_height">15dp</item>
|
||||||
|
<item name="android:layout_alignParentRight">true</item>
|
||||||
|
<item name="android:layout_centerVertical">true</item>
|
||||||
|
<item name="android:layout_marginRight">25dp</item>
|
||||||
|
<item name="android:src">@drawable/iv_right_arrow</item>
|
||||||
|
</style>
|
||||||
</resources>
|
</resources>
|
Loading…
Reference in New Issue
Block a user