Browse Source

Show a light grey line as details fragment divider on the far left.

pull/11/head
Eric Kok 12 years ago
parent
commit
968f97cf88
  1. 5
      core/res/drawable/details_list_background.xml
  2. 3
      core/res/drawable/details_list_line_dark.xml
  3. 3
      core/res/drawable/details_list_line_light.xml
  4. 3
      core/res/layout/fragment_details.xml
  5. 1
      core/res/values/attrs.xml
  6. 1
      core/res/values/colors_transdroid_dark.xml
  7. 1
      core/res/values/colors_transdroid_light.xml
  8. 4
      core/res/values/styles.xml
  9. 1
      core/src/org/transdroid/core/gui/settings/RssfeedSettingsActivity.java
  10. 3
      full/AndroidManifest.xml

5
core/res/drawable/details_list_background.xml

@ -0,0 +1,5 @@ @@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:drawable="@color/divider_grey" />
<item android:left="6dp" android:drawable="@attr/details_list_line" />
</layer-list>

3
core/res/drawable/details_list_line_dark.xml

@ -0,0 +1,3 @@ @@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<color xmlns:android="http://schemas.android.com/apk/res/android"
android:color="@color/background_dark" />

3
core/res/drawable/details_list_line_light.xml

@ -0,0 +1,3 @@ @@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<color xmlns:android="http://schemas.android.com/apk/res/android"
android:color="@color/background_light" />

3
core/res/layout/fragment_details.xml

@ -11,7 +11,8 @@ @@ -11,7 +11,8 @@
android:divider="@null"
android:dividerHeight="0dip"
android:listSelector="?attr/selectable_background_transdroid"
android:visibility="gone" />
android:background="@drawable/details_list_background"
android:visibility="visible" />
<ProgressBar
android:id="@+id/loading_progress"

1
core/res/values/attrs.xml

@ -28,4 +28,5 @@ @@ -28,4 +28,5 @@
<attr name="selectable_background_transdroid" format="reference"/>
<attr name="text_bright" format="reference" />
<attr name="text_actionbar" format="reference" />
<attr name="details_list_line" format="reference" />
</resources>

1
core/res/values/colors_transdroid_dark.xml

@ -18,6 +18,7 @@ @@ -18,6 +18,7 @@
<resources>
<color name="pressed_transdroid_dark">#CCaada62</color>
<color name="divider_grey">#d4d4d4</color>
<color name="background_dark">#000</color>
<color name="text_bright_dark">#fff</color>
<color name="text_actionbar_dark">#fff</color>

1
core/res/values/colors_transdroid_light.xml

@ -19,6 +19,7 @@ @@ -19,6 +19,7 @@
<resources>
<color name="pressed_transdroid_light">#CC8ACC12</color>
<color name="divider_grey">#d4d4d4</color>
<color name="background_light">#fff</color>
<color name="text_bright_light">#000</color>
<color name="text_actionbar_light">#000</color>

4
core/res/values/styles.xml

@ -27,6 +27,7 @@ @@ -27,6 +27,7 @@
<item name="selectable_background_transdroid">@drawable/selectable_background_transdroid2</item>
<item name="text_bright">@color/text_bright_light</item>
<item name="text_actionbar">@color/text_actionbar_light</item>
<item name="details_list_line">@drawable/details_list_line_light</item>
</style>
<style name="TransdroidTheme.Dark" parent="Theme.Transdroid.Dark">
@ -52,10 +53,11 @@ @@ -52,10 +53,11 @@
<item name="ic_action_stop">@drawable/ic_action_stop_dark</item>
<item name="ic_action_trackers">@drawable/ic_action_trackers_dark</item>
<item name="ic_action_website">@drawable/ic_action_website_dark</item>
<item name="loading_progress">@drawable/loading_progress_light</item>
<item name="loading_progress">@drawable/loading_progress_dark</item>
<item name="selectable_background_transdroid">@drawable/selectable_background_transdroid</item>
<item name="text_bright">@color/text_bright_dark</item>
<item name="text_actionbar">@color/text_actionbar_dark</item>
<item name="details_list_line">@drawable/details_list_line_dark</item>
</style>
<!-- Taken from http://stackoverflow.com/questions/10020466/android-4-0-sub-title-section-label-styling -->

1
core/src/org/transdroid/core/gui/settings/RssfeedSettingsActivity.java

@ -31,6 +31,7 @@ public class RssfeedSettingsActivity extends KeyBoundPreferencesActivity { @@ -31,6 +31,7 @@ public class RssfeedSettingsActivity extends KeyBoundPreferencesActivity {
initTextPreference("rssfeed_name");
initTextPreference("rssfeed_url");
initBooleanPreference("rssfeed_reqauth");
// TODO: Replace this for cookies support like web searches
}

3
full/AndroidManifest.xml

@ -28,7 +28,8 @@ @@ -28,7 +28,8 @@
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/system_name"
android:theme="@style/Theme.Sherlock" >
android:theme="@style/Theme.Sherlock"
android:hardwareAccelerated="true" >
<!-- Main activities -->
<activity

Loading…
Cancel
Save