app/src/main/res/layout/broadcast_fragment.xml

(开头部分) 5KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<?xml version="1.0" encoding="utf-8"?>

<!--
  ~ Copyright (c) 2015 Zhang Hai <Dreaming.in.Code.ZH@Gmail.com>
  ~ All Rights Reserved.
  -->

<FrameLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/container"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <!-- This layout ensures correct z-order during transition. -->
    <FrameLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <FrameLayout
            android:id="@+id/shared"
            android:layout_width="@dimen/card_activity_width"
            android:layout_height="match_parent"
            android:layout_gravity="center_horizontal"
            android:layout_marginLeft="@dimen/card_activity_horizontal_margin"
            android:layout_marginRight="@dimen/card_activity_horizontal_margin"
            android:layout_marginTop="@dimen/toolbar_height"
            android:layout_marginBottom="@dimen/toolbar_height"
            android:background="@color/grey_100">

            <me.zhanghai.android.douya.ui.FriendlySwipeRefreshLayout
                android:id="@+id/swipe_refresh"
                android:layout_width="match_parent"
                android:layout_height="match_parent">

                <android.support.v7.widget.RecyclerView
                    android:id="@+id/broadcast_comment_list"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:clipToPadding="false"
                    android:scrollbars="vertical"
                    android:scrollbarStyle="outsideOverlay" />
            </me.zhanghai.android.douya.ui.FriendlySwipeRefreshLayout>

            <me.zhanghai.android.materialprogressbar.MaterialProgressBar
                android:id="@+id/progress"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center"
                android:indeterminate="true"
                android:visibility="gone"
                style="@style/Widget.MaterialProgressBar.ProgressBar" />
        </FrameLayout>
    </FrameLayout>

    <!-- TODO: Add a compatible shadow. -->
    <!--
      ~ Set android:clickable="true" so that user's touch on this layout won't be handled by parent
      ~ which will finish the activity.
      -->
后面还有 58 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。