Skip to content

Commit

Permalink
Viewpagerindicator styling fixed for 2.x devices. Resolved #48 #45
Browse files Browse the repository at this point in the history
  • Loading branch information
pkpio committed Oct 25, 2014
1 parent eb164b3 commit 40b4f06
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
53 changes: 53 additions & 0 deletions res/values-v11/styles_moodle.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
File created by the Android Action Bar Style Generator
Copyright (C) 2011 The Android Open Source Project
Copyright (C) 2012 readyState Software Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<resources xmlns:android="http://schemas.android.com/apk/res/android">

<style name="Theme.Moodle" parent="@style/Theme.AppCompat.Light.DarkActionBar">

<!-- ViewPageIndicator specific -->
<item name="vpiTabPageIndicatorStyle">@style/TabPageIndicator.Moodle</item>
</style>

<!-- Moodle No actionbar theme. -->
<style name="Theme.Moodle.NoActionbar" parent="Theme.Moodle">
<item name="android:windowNoTitle">true</item>
</style>

<!-- Moodle No fullscreen theme. -->
<style name="Theme.Moodle.NoActionbar.Fullscreen" parent="Theme.Moodle">
<item name="android:windowNoTitle">true</item>
<item name="android:windowFullscreen">true</item>
</style>

<!-- ViewPageInidicator styles -->
<style name="TabPageIndicator.Moodle" parent="Widget.TabPageIndicator">
<item name="android:background">@drawable/tab_indicator_ab_moodle</item>
<item name="android:textColor">#FF555555</item>
<item name="android:textSize">16sp</item>
<item name="android:dividerPadding">10dp</item>
<item name="android:showDividers">middle</item>
<item name="android:paddingLeft">8dp</item>
<item name="android:paddingRight">8dp</item>
<item name="android:fadingEdge">horizontal</item>
<item name="android:fadingEdgeLength">8dp</item>
</style>

</resources>
11 changes: 11 additions & 0 deletions res/values/styles_moodle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,15 @@
<item name="android:windowFullscreen">true</item>
</style>

<!-- ViewPageInidicator styles -->
<style name="TabPageIndicator.Moodle" parent="Widget.TabPageIndicator">
<item name="android:background">@drawable/tab_indicator_ab_moodle</item>
<item name="android:textColor">#FF555555</item>
<item name="android:textSize">16sp</item>
<item name="android:paddingLeft">8dp</item>
<item name="android:paddingRight">8dp</item>
<item name="android:fadingEdge">horizontal</item>
<item name="android:fadingEdgeLength">8dp</item>
</style>

</resources>

0 comments on commit 40b4f06

Please sign in to comment.