Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI Implementation #7

Merged
merged 7 commits into from
Jul 26, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
pagerTabStrip UI
  • Loading branch information
Tina authored and Tina committed Jul 26, 2017
commit a69013b257b134d77a2fc1d8a7ecc8b513fccc64
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.example.mobilecenter.sampleapp_android;

import android.support.design.widget.TabLayout;
import android.support.v4.view.PagerTabStrip;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.support.v4.app.Fragment;
Expand Down Expand Up @@ -32,6 +33,7 @@ protected void onCreate(Bundle savedInstanceState) {

mViewPager = (ViewPager) findViewById(R.id.container);
mViewPager.setAdapter(mSectionsPagerAdapter);
PagerTabStrip titleStrip = (PagerTabStrip) mViewPager.findViewById(R.id.pager_title_strip);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove

}

public class SectionsPagerAdapter extends FragmentPagerAdapter {
Expand Down
11 changes: 1 addition & 10 deletions app/src/main/res/layout/activity_root.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,6 @@
android:fitsSystemWindows="true"
tools:context="com.example.mobilecenter.sampleapp_android.MainActivity">

<android.support.design.widget.AppBarLayout
android:id="@+id/appbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="@dimen/appbar_padding_top"
android:theme="@style/AppTheme.AppBarOverlay">

</android.support.design.widget.AppBarLayout>

<android.support.v4.view.ViewPager
android:id="@+id/container"
android:layout_width="match_parent"
Expand All @@ -28,7 +19,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="top"
android:background="@null"
android:background="@color/colorPrimaryDark"
android:paddingBottom="4dp"
android:paddingTop="4dp"
android:textColor="#fff" />
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#3F51B5</color>
<color name="colorPrimaryDark">#000000</color>
<color name="colorPrimaryDark">#252525</color>
<color name="colorAccent">#282828</color>

<color name="colorAnalyticsBackground">#ffc326</color>
Expand All @@ -19,4 +19,5 @@
<color name="colorTestImageBackground">#3192B3</color>
<color name="colorBuildImageBackground">#0064c3</color>
<color name="colorWelcomeImageBackground">#CB2E62</color>

</resources>