| | |
| | | android:orientation="horizontal" |
| | | android:layout_marginTop="8dp" |
| | | android:layout_marginBottom="8dp" |
| | | android:layout_marginHorizontal="8dp"> |
| | | android:layout_marginHorizontal="4dp"> |
| | | |
| | | <!-- 分类标签区域 --> |
| | | <LinearLayout |
| | |
| | | android:layout_height="match_parent" |
| | | android:layout_weight="1" |
| | | android:gravity="center" |
| | | android:padding="6dp" |
| | | android:padding="4dp" |
| | | android:text="快递" |
| | | android:textSize="14sp" |
| | | android:textStyle="bold" /> |
| | | android:textStyle="bold" |
| | | android:singleLine="true" |
| | | android:ellipsize="end" /> |
| | | |
| | | <com.example.firstapp.view.UnderlineTextView |
| | | android:id="@+id/tabFinance" |
| | |
| | | android:layout_height="match_parent" |
| | | android:layout_weight="1" |
| | | android:gravity="center" |
| | | android:padding="6dp" |
| | | android:padding="4dp" |
| | | android:text="还款" |
| | | android:textSize="14sp" /> |
| | | android:textSize="14sp" |
| | | android:singleLine="true" |
| | | android:ellipsize="end" /> |
| | | |
| | | <com.example.firstapp.view.UnderlineTextView |
| | | android:id="@+id/tabIncome" |
| | |
| | | android:layout_height="match_parent" |
| | | android:layout_weight="1" |
| | | android:gravity="center" |
| | | android:padding="6dp" |
| | | android:padding="4dp" |
| | | android:text="收入" |
| | | android:textSize="14sp" /> |
| | | android:textSize="14sp" |
| | | android:singleLine="true" |
| | | android:ellipsize="end" /> |
| | | |
| | | <com.example.firstapp.view.UnderlineTextView |
| | | android:id="@+id/tabFlight" |
| | |
| | | android:layout_height="match_parent" |
| | | android:layout_weight="1" |
| | | android:gravity="center" |
| | | android:padding="6dp" |
| | | android:padding="4dp" |
| | | android:text="航班" |
| | | android:textSize="14sp" /> |
| | | android:textSize="14sp" |
| | | android:singleLine="true" |
| | | android:ellipsize="end" /> |
| | | |
| | | <com.example.firstapp.view.UnderlineTextView |
| | | android:id="@+id/tabTrain" |
| | |
| | | android:layout_height="match_parent" |
| | | android:layout_weight="1" |
| | | android:gravity="center" |
| | | android:padding="6dp" |
| | | android:padding="4dp" |
| | | android:text="火车票" |
| | | android:textSize="13sp" /> |
| | | android:textSize="14sp" |
| | | android:singleLine="true" |
| | | android:ellipsize="end" /> |
| | | </LinearLayout> |
| | | |
| | | <!-- 右侧图标区域 --> |
| | |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="match_parent" |
| | | android:orientation="horizontal" |
| | | android:gravity="center_vertical"> |
| | | android:gravity="center_vertical" |
| | | android:layout_marginStart="2dp"> |
| | | |
| | | <ImageButton |
| | | android:id="@+id/categoryButton" |
| | | android:layout_width="28dp" |
| | | android:layout_height="28dp" |
| | | android:layout_marginEnd="8dp" |
| | | android:layout_width="26dp" |
| | | android:layout_height="26dp" |
| | | android:layout_marginEnd="4dp" |
| | | android:background="?attr/selectableItemBackgroundBorderless" |
| | | android:contentDescription="分类设置" |
| | | android:padding="4dp" |
| | | android:padding="3dp" |
| | | android:scaleType="fitCenter" |
| | | android:src="@drawable/home_add" /> |
| | | |
| | | <ImageButton |
| | | android:id="@+id/reminderButton" |
| | | android:layout_width="28dp" |
| | | android:layout_height="28dp" |
| | | android:background="?attr/selectableItemBackgroundBorderless" |
| | | android:contentDescription="提醒设置" |
| | | android:padding="4dp" |
| | | android:scaleType="fitCenter" |
| | | android:src="@drawable/reminder" /> |
| | | <!-- 使用FrameLayout包装提醒按钮和红点,确保小红点完整显示 --> |
| | | <FrameLayout |
| | | android:layout_width="34dp" |
| | | android:layout_height="34dp"> |
| | | |
| | | <ImageButton |
| | | android:id="@+id/reminderButton" |
| | | android:layout_width="26dp" |
| | | android:layout_height="26dp" |
| | | android:layout_gravity="center" |
| | | android:background="?attr/selectableItemBackgroundBorderless" |
| | | android:contentDescription="提醒设置" |
| | | android:padding="3dp" |
| | | android:scaleType="fitCenter" |
| | | android:src="@drawable/reminder" /> |
| | | |
| | | <TextView |
| | | android:id="@+id/reminderBadge" |
| | | android:layout_width="14dp" |
| | | android:layout_height="14dp" |
| | | android:layout_gravity="top|end" |
| | | android:background="@drawable/circle_badge_background" |
| | | android:gravity="center" |
| | | android:textColor="#FFFFFF" |
| | | android:textSize="8sp" |
| | | android:visibility="gone" /> |
| | | </FrameLayout> |
| | | </LinearLayout> |
| | | </LinearLayout> |
| | | |
| | |
| | | <FrameLayout |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:layout_margin="16dp"> |
| | | > |
| | | |
| | | <androidx.recyclerview.widget.RecyclerView |
| | | android:id="@+id/express_recycler" |