Dimension | Android Developers

Quicknav Quicknav
Links

- Google Play Developer Console
- Android Developers Blog
- About Android

Android Sites

- Android.com
- Android Developers
- Android Open Source Project

Language
close

- - About
  - Wear
  - TV
  - Auto
- - Get Started
  - Devices
  - Style
  - Patterns
  - Building Blocks
  - Downloads
  - Videos
- - Training
  - API Guides
  - Reference
  - Tools
  - Google Services
  - Samples
- - Google Play
  - Essentials
  - Get Users
  - Engage & Retain
  - Monetize
  - Tools & Reference
  - Developer Stories

## Results

Loading...
Summary: Constants | Inherited Methods | [Expand All]
public class

# Dimension

extends Object

java.lang.Object
↳ | com.google.android.gms.wallet.fragment.Dimension

## Class Overview

Constants for specifying dimensions in `WalletFragmentStyle`.

## Summary

Constants
int | MATCH_PARENT | Special value for width/height of a view.
int | UNIT_DIP | Dimension unit - device independent pixels
int | UNIT_IN | Dimension unit - inches
int | UNIT_MM | Dimension unit - millimeters
int | UNIT_PT | Dimension unit - points
int | UNIT_PX | Dimension unit - raw pixels
int | UNIT_SP | Dimension unit - scaled pixel
int | WRAP_CONTENT | Special value for width/height of a view.

[Expand] Inherited Methods
From class java.lang.Object
Object | clone()
boolean | equals(Object arg0)
void | finalize()
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)

## Constants

#### public static final int MATCH_PARENT

Special value for width/height of a view. It means that the view wants to be as big as its parent, minus the parent's padding, if any.

Constant Value: -1 (0xffffffff)

#### public static final int UNIT_DIP

Dimension unit - device independent pixels

Constant Value: 1 (0x00000001)

#### public static final int UNIT_IN

Dimension unit - inches

Constant Value: 4 (0x00000004)

#### public static final int UNIT_MM

Dimension unit - millimeters

Constant Value: 5 (0x00000005)

#### public static final int UNIT_PT

Dimension unit - points

Constant Value: 3 (0x00000003)

#### public static final int UNIT_PX

Dimension unit - raw pixels

Constant Value: 0 (0x00000000)

#### public static final int UNIT_SP

Dimension unit - scaled pixel

Constant Value: 2 (0x00000002)

#### public static final int WRAP_CONTENT

Special value for width/height of a view. It means the view wants to be just large enough to fit its own internal content, taking its own padding into account.

Constant Value: -2 (0xfffffffe)