首页banner修改
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 633 B |
@@ -15,8 +15,7 @@
|
||||
<include
|
||||
android:id="@+id/toolbar_lay"
|
||||
layout="@layout/lay_title_bar"
|
||||
app:darkStyle="@{true}"
|
||||
app:title="@{@string/app_name}" />
|
||||
app:darkStyle="@{true}" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<include
|
||||
@@ -19,20 +19,15 @@
|
||||
|
||||
<ScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<LinearLayout
|
||||
android:orientation="vertical"
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/img_banner"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
android:layout_height="wrap_content"
|
||||
android:adjustViewBounds="true" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1300dp"
|
||||
android:scaleType="fitXY"
|
||||
android:src="@mipmap/ic_home_banner_detail" />
|
||||
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
app:mvAnimDuration="1000"
|
||||
app:mvDirection="bottom_to_top"
|
||||
app:mvInterval="3000"
|
||||
app:mvSingleLine="false"
|
||||
app:mvSingleLine="true"
|
||||
app:mvTextColor="#77849E"
|
||||
app:mvTextSize="14sp" />
|
||||
|
||||
@@ -97,36 +97,26 @@
|
||||
android:layout_marginHorizontal="6dp"
|
||||
android:layout_marginTop="10dp" />
|
||||
|
||||
<!-- <com.youth.banner.Banner-->
|
||||
<!-- android:id="@+id/banner1"-->
|
||||
<!-- android:layout_width="match_parent"-->
|
||||
<!-- android:layout_height="120dp"-->
|
||||
<!-- android:layout_below="@+id/layout_item1"-->
|
||||
<!-- android:layout_marginHorizontal="12dp"-->
|
||||
<!-- android:layout_marginTop="10dp" />-->
|
||||
<ImageView
|
||||
android:id="@+id/image1"
|
||||
<com.youth.banner.Banner
|
||||
android:id="@+id/banner1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_height="65dp"
|
||||
android:layout_marginHorizontal="12dp"
|
||||
android:layout_marginTop="12dp"
|
||||
android:background="@mipmap/ic_home_image1" />
|
||||
android:layout_marginTop="10dp" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/image2"
|
||||
<com.youth.banner.Banner
|
||||
android:id="@+id/banner2"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_height="60dp"
|
||||
android:layout_marginHorizontal="12dp"
|
||||
android:layout_marginTop="12dp"
|
||||
android:background="@mipmap/ic_home_image2" />
|
||||
android:layout_marginTop="10dp" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/image3"
|
||||
<com.youth.banner.Banner
|
||||
android:id="@+id/banner3"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_height="120dp"
|
||||
android:layout_marginHorizontal="12dp"
|
||||
android:layout_marginTop="12dp"
|
||||
android:background="@mipmap/ic_home_image3" />
|
||||
android:layout_marginTop="10dp" />
|
||||
|
||||
<include
|
||||
android:id="@+id/layout_item3"
|
||||
@@ -142,20 +132,12 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<!-- <com.youth.banner.Banner-->
|
||||
<!-- android:id="@+id/banner2"-->
|
||||
<!-- android:layout_width="match_parent"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_below="@+id/layout_item4"-->
|
||||
<!-- android:layout_marginHorizontal="12dp"-->
|
||||
<!-- android:layout_marginTop="10dp" />-->
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/image4"
|
||||
<com.youth.banner.Banner
|
||||
android:id="@+id/banner4"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="12dp"
|
||||
android:background="@mipmap/ic_home_image4" />
|
||||
android:layout_height="120dp"
|
||||
android:layout_marginHorizontal="12dp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
@@ -12,8 +12,9 @@
|
||||
android:layout_marginTop="10dp">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_marginTop="2dp"
|
||||
android:background="@mipmap/ic_xiaolaba" />
|
||||
|
||||
<TextView
|
||||
@@ -22,8 +23,9 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="30dp"
|
||||
android:ellipsize="end"
|
||||
android:lines="2"
|
||||
android:maxLines="2"
|
||||
android:textColor="@color/color_theme_or_black_33"
|
||||
android:textStyle="bold"
|
||||
tools:text="这是一个测试通知的内容,主要内容就是写一些文字,然后看看写的怎么样.这是一个测试通知的内容,主要内容就是写一些文字,然后看看写的怎么样" />
|
||||
|
||||
<TextView
|
||||
@@ -32,9 +34,9 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/tv_title"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginTop="5dp"
|
||||
android:layout_marginRight="5dp"
|
||||
android:layout_marginBottom="10dp"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:textColor="@color/color_theme_or_black_33"
|
||||
android:textSize="@dimen/txt12"
|
||||
tools:text="2025-01-01" />
|
||||
@@ -43,6 +45,6 @@
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:layout_height="0.5dp"
|
||||
android:background="@color/text_black_99" />
|
||||
</LinearLayout>
|
||||
|
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 1.1 MiB |
Reference in New Issue
Block a user