【问题标题】:Android Layout - How To Slide Down Show Update Message in Android in GridViewAndroid 布局 - 如何在 GridView 中向下滑动显示 Android 中的更新消息
【发布时间】:2014-02-27 12:47:51
【问题描述】:

在我的 gridview 中,当您位于顶部并将其向下拖动以显示为在 facebook 应用程序上看到的消息时,我需要它

我需要的图片中的示例

Screen

Screen Update

我的布局

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="horizontal" >

<GridView
    android:id="@+id/list"
    android:layout_width="wrap_content"
    android:layout_height="match_parent"
    android:background="@android:color/transparent"
    android:columnWidth="74dp"
    android:gravity="center"
    android:horizontalSpacing="8dp"
    android:numColumns="auto_fit"
    android:stretchMode="columnWidth"
    android:verticalSpacing="8dp" />

</LinearLayout>

【问题讨论】:

标签: android android-layout gridview android-gridview


【解决方案1】:

使用https://github.com/chrisbanes/Android-PullToRefresh这个库实现拉取刷新网格视图

【讨论】:

猜你喜欢
  • 2018-03-06
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-06-10
  • 1970-01-01
相关资源
最近更新 更多