Jump to content
View in the app

A better way to browse. Learn more.

FGX Native

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
  • Status: Closed
  • Priority: Normal
  • Resolution: Works as expected
  • Platform: Android
  • Affects version 1.9.2.1

Если TfgCollectionView всего содержит всего один Item, то GetLastVisibleItemIndex возвращает "-1"

User Feedback

Recommended Comments

  • Administrators

Не получается воспроизвести.

Сделал список с одним элементом. По нажатию на кнопку показываю индекс последнего элемента:

procedure TFormMain.fgButton1Tap(Sender: TObject);
begin
  TfgToastFactory.Show(fgCollectionView1.GetLastVisibleItemIndex.ToString);
end;

procedure TFormMain.fgCollectionView1BindItem(Sender: TObject; const AIndex: Integer; const AStyle: string;
  const AItem: TfgItemWrapper);
begin
  AItem.GetControlByLookupName<TfgLabel>('title').Text := Format('Item %d', [AIndex]);
end;

function TFormMain.fgCollectionView1GetItemCount(Sender: TObject): Integer;
begin
  Result := 1;
end;

При нажатии на кнопку показывается 0 индекс, что верно.

  • Administrators

Значение Статус изменено на: Closed

Значение Резолюция изменено на: Test case error

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.