【问题标题】:Use of ActionBarSherlock and ViewPagerIndicator with my style以我的风格使用 ActionBarSherlock 和 ViewPagerIndicator
【发布时间】:2013-08-12 15:24:32
【问题描述】:

我关注了those instructions,并使用Android Action Bar Style Generator 创建了MyStyle,但我的风格不起作用,我看不到我的颜色。

我有一个styles_mystyle.xmlwith

<style name="Theme.Mystyle" parent="@style/Theme.Sherlock.Light">

AndroidManifest.xml

<application
    //...
    android:theme="@style/Theme.Mystyle" >

所以我不知道问题出在哪里。你能帮助我吗?我的代码与之前链接中的代码完全相同。

【问题讨论】:

    标签: android styles actionbarsherlock android-viewpager viewpagerindicator


    【解决方案1】:

    样式生成器为 ActionBar 选项卡创建主题。 ViewPager 看起来很相似,但需要一组不同的定义样式。您可以在此处找到 ViewPagerIndicator 样式的示例:

    https://github.com/JakeWharton/Android-ViewPagerIndicator/blob/master/sample/res/values/styles.xml

    或者,您可以使用从样式生成器创建的样式,方法是使用 ActionBar 选项卡而不是 ViewPagerIndicator。

    VERY Basic actionbarsherlock tabs with fragments: FragmentTransaction is null in the onTabSelected() method

    更多关于标签和标题条的信息可以在这里找到:

    http://developer.android.com/training/implementing-navigation/lateral.html

    【讨论】:

      猜你喜欢
      • 2012-12-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-03-17
      • 2016-04-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多