OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:mTabLayout
(Results
1 - 9
of
9
) sorted by null
/packages/apps/EmergencyInfo/src/com/android/emergency/
EmergencyTabActivity.java
41
private TabLayout
mTabLayout
;
51
mTabLayout
.setTabMode(TabLayout.MODE_FIXED);
52
mTabLayout
.setTabGravity(TabLayout.GRAVITY_FILL);
70
return
mTabLayout
.getSelectedTabPosition();
84
if (
mTabLayout
!= null && selectedTabIndex >= 0 &&
85
selectedTabIndex <
mTabLayout
.getTabCount()) {
86
mTabLayout
.getTabAt(selectedTabIndex).select();
92
mTabLayout
= (TabLayout) findViewById(R.id.sliding_tabs);
98
mTabLayout
.setTabsFromPagerAdapter(mTabsAdapter);
102
mTabLayout
.setOnTabSelectedListener
[
all
...]
/frameworks/support/design/tests/src/android/support/design/widget/
TabLayoutWithViewPagerTest.java
55
private TabLayout
mTabLayout
;
177
mTabLayout
= (TabLayout) activity.findViewById(R.id.tabs);
205
assertEquals("Selected tab", 0,
mTabLayout
.getSelectedTabPosition());
215
mTabLayout
.getSelectedTabPosition());
225
mTabLayout
.getSelectedTabPosition());
234
int itemCount =
mTabLayout
.getTabCount();
237
assertEquals("Selected tab", 0,
mTabLayout
.getSelectedTabPosition());
245
mTabLayout
.getSelectedTabPosition());
255
mTabLayout
.getSelectedTabPosition());
266
assertEquals("Matching item count", itemCount,
mTabLayout
.getTabCount())
[
all
...]
AppBarWithToolbarAndTabsTest.java
35
private TabLayout
mTabLayout
;
41
mTabLayout
= (TabLayout) mAppBar.findViewById(R.id.tabs);
62
final int tabsHeight =
mTabLayout
.getHeight();
155
final int tabsHeight =
mTabLayout
.getHeight();
249
final int tabsHeight =
mTabLayout
.getHeight();
/frameworks/support/samples/SupportDesignDemos/src/com/example/android/support/design/widget/
TabLayoutUsage.java
43
private TabLayout
mTabLayout
;
59
mTabLayout
= (TabLayout) findViewById(R.id.tabs);
65
mTabLayout
.setupWithViewPager(mViewPager);
76
if (
mTabLayout
.getTabCount() > 0) {
87
switch (
mTabLayout
.getTabMode()) {
102
mTabLayout
.setTabMode(TabLayout.MODE_FIXED);
105
mTabLayout
.setTabMode(TabLayout.MODE_SCROLLABLE);
112
switch (
mTabLayout
.getTabGravity()) {
127
mTabLayout
.setTabGravity(TabLayout.GRAVITY_CENTER);
130
mTabLayout
.setTabGravity(TabLayout.GRAVITY_FILL)
[
all
...]
TabLayoutPreselectedUsage.java
42
private TabLayout
mTabLayout
;
56
mTabLayout
= (TabLayout) findViewById(R.id.tabs);
68
mTabLayout
.setupWithViewPager(mViewPager);
75
switch (
mTabLayout
.getTabMode()) {
90
mTabLayout
.setTabMode(TabLayout.MODE_FIXED);
93
mTabLayout
.setTabMode(TabLayout.MODE_SCROLLABLE);
100
switch (
mTabLayout
.getTabGravity()) {
115
mTabLayout
.setTabGravity(TabLayout.GRAVITY_CENTER);
118
mTabLayout
.setTabGravity(TabLayout.GRAVITY_FILL);
/packages/apps/DeskClock/src/com/android/deskclock/
DeskClock.java
77
private TabLayout
mTabLayout
;
100
if (tab != -1 &&
mTabLayout
!= null) {
101
mTabLayout
.getTabAt(tab).select();
112
final TabLayout.Tab alarmTab =
mTabLayout
.newTab();
116
final Tab clockTab =
mTabLayout
.newTab();
120
final Tab timerTab =
mTabLayout
.newTab();
124
final Tab stopwatchTab =
mTabLayout
.newTab();
129
mTabLayout
.getTabAt(mSelectedTab).select();
162
mTabLayout
= (TabLayout) findViewById(R.id.sliding_tabs);
175
mTabLayout
.setOnTabSelectedListener(new ViewPagerOnTabSelectedListener(mViewPager))
[
all
...]
/frameworks/base/core/java/com/android/internal/widget/
ScrollingTabContainerView.java
55
private LinearLayout
mTabLayout
;
79
mTabLayout
= createTabLayout();
80
addView(
mTabLayout
, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT,
90
final int childCount =
mTabLayout
.getChildCount();
109
mTabLayout
.measure(MeasureSpec.UNSPECIFIED, heightMeasureSpec);
110
if (
mTabLayout
.getMeasuredWidth() > MeasureSpec.getSize(widthMeasureSpec)) {
148
removeView(
mTabLayout
);
167
addView(
mTabLayout
, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT,
175
final int tabCount =
mTabLayout
.getChildCount();
177
final View child =
mTabLayout
.getChildAt(i)
[
all
...]
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
ScrollingTabContainerView.java
61
private LinearLayoutCompat
mTabLayout
;
86
mTabLayout
= createTabLayout();
87
addView(
mTabLayout
, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT,
97
final int childCount =
mTabLayout
.getChildCount();
116
mTabLayout
.measure(MeasureSpec.UNSPECIFIED, heightMeasureSpec);
117
if (
mTabLayout
.getMeasuredWidth() > MeasureSpec.getSize(widthMeasureSpec)) {
155
removeView(
mTabLayout
);
172
addView(
mTabLayout
, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT,
180
final int tabCount =
mTabLayout
.getChildCount();
182
final View child =
mTabLayout
.getChildAt(i)
[
all
...]
/prebuilts/sdk/current/support/v7/appcompat/libs/
android-support-v7-appcompat.jar
Completed in 510 milliseconds