Skip to content

Commit

Permalink
the font spinner didn't show the appropriate icon at all
Browse files Browse the repository at this point in the history
  • Loading branch information
Emanuel Moecklin committed Aug 22, 2015
1 parent 10bd47c commit 9d5483e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@

package com.onegravity.rteditor.toolbar.spinner;

import android.widget.TextView;

import com.onegravity.rteditor.fonts.RTTypeface;

/**
Expand All @@ -34,9 +32,4 @@ public FontSpinnerItem(RTTypeface typeface) {
public RTTypeface getTypeface() {
return mTypeface;
}

@Override
void formatNameView(TextView view) {
super.formatNameView(view);
}
}
19 changes: 5 additions & 14 deletions RTEditor-Toolbar/src/main/res/layout/rte_toolbar_font_spinner.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,11 @@
limitations under the License.
-->

<FrameLayout
<ImageView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_gravity="center"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="?attr/rte_icToolbarFontSize">

<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:layout_gravity="center"
android:scaleType="center"
android:visibility="invisible"
android:drawable="?attr/rte_icToolbarFont" />

</FrameLayout>
android:layout_gravity="center"
android:drawable="?attr/rte_icToolbarFont"
android:gravity="center"
android:scaleType="center"/>

0 comments on commit 9d5483e

Please sign in to comment.