How can I use viewpager2 with fixed size like ImageView

Questions : How can I use viewpager2 with fixed size like ImageView


I want to make an image slider with programming viewpager2.

However, it doesn't seem I can fix its Learning height and width but only match_parent.

I tried to fix the height in item_view Earhost and also, viewpager2's parent view. most effective However, both methods didn't work.

Is there any way to use viewpager2 in a wrong idea fixed size in a root view like other use of case views such as TextView, EditText not United fullscreen?

For example, I want to make 200dp X 90dp Modern size image slide with viewpager2.

Total Answers 0

Top rated topics

Find longest path in a search binary tree using C

How to use a range of cells in a WHERE clause QUERY in Google Spreadsheets

Error when copying images from a folder on a recurring basis

Sudden error (403-Forbidden) on Firestore calls

Why authorization is not works correct in OKTA claims?

How to set the state of a useState hook on page load?

Chain Matrix Multiplication Schedule Cost

How to get the data pandas_datareader.tiingo

Rust issue with declaring TcpStream in a struct

Pyre-check doesn't detect naive date vs. tz aware date type error

Database Login in Clean Architecture?

Mysql Workbench (ONLY) connecting to remote mysql without SSL

How to Use a Formula in Pivot Table

How to use static file on css file with version in django

How can I pass variable into an evaluate function?

How can I reduce onPanUpdate producing too much data in flutter?

Android Google Maps SDK not loading for some users

Compare two columns in different worksheets and create a message listing the missing data

Triangle Loop Last Row

Android Retrofit2 parsing boolean value always false

Trying to learn how to make a discord bot with python. Keep getting same error everytime I try to start the code

Issue with python lists and loops

Is it possible to setup React Native devleopment environment inside docker?

How to get function parameter names/values dynamically?

No Module Named 'yfinance' in VSCode

MKLocalSearchCompleter - Ignores region

Can Navigator.push be used in ternary with Flutter

Difference in BigInteger calculations in C# and Python

Need help identifying / converting old video from mobile phone

Typescript types of composition Ramda lens with React useState set function

What is the string length of a default .NET CORE password hash?

How to make a mutate(map()) recognize groups?

Numbering permutations

Pandas melt single column level

Avoid Google Spreadsheet to convert an XLSX file created by Open XML SDK to XLSM

SliverAppBar hide flexible space when scroll up

How to save binary buffer to png file in nodejs?

Function class javascript not finding variable

Use numpy functions on objects extending numbers.Real

Laravel orderBy with paginate and relations

Pytorch mixed precision causing discriminator loss to go to NaN in WGAN-GP

ASP.NET MVC form does not send data to controller

Missing queryFn error when using useQuery

What kind of icons does twitter use?

Reading text file in order

Using dbeaver 'SQL Error [42830]: ERROR: there is no unique constraint matching given keys for referenced table "Clinic"'

Arduino internet data disappear after 10 seconds

Why does styling the background of the body element affect the entire screen?

Micropython for statement syntax

Concise way to get names of list elements