Styling read full article button
This commit is contained in:
parent
02bed4bce0
commit
d82f45f41f
4 changed files with 8 additions and 3 deletions
|
@ -87,7 +87,8 @@
|
||||||
android:padding="@dimen/content_padding"/>
|
android:padding="@dimen/content_padding"/>
|
||||||
</android.support.v4.widget.NestedScrollView>
|
</android.support.v4.widget.NestedScrollView>
|
||||||
|
|
||||||
<TextView
|
<net.osmand.plus.widgets.TextViewEx
|
||||||
|
osmand:typeface="@string/font_roboto_medium"
|
||||||
android:layout_margin="@dimen/content_padding"
|
android:layout_margin="@dimen/content_padding"
|
||||||
android:id="@+id/read_full_article"
|
android:id="@+id/read_full_article"
|
||||||
android:layout_gravity="bottom|center_horizontal"
|
android:layout_gravity="bottom|center_horizontal"
|
||||||
|
|
|
@ -175,4 +175,6 @@
|
||||||
|
|
||||||
<dimen name="multi_selection_header_height">78dp</dimen>
|
<dimen name="multi_selection_header_height">78dp</dimen>
|
||||||
|
|
||||||
|
<dimen name="wikipedia_button_left_padding">29dp</dimen>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
|
@ -247,4 +247,6 @@
|
||||||
<dimen name="route_info_modes_height">48dp</dimen>
|
<dimen name="route_info_modes_height">48dp</dimen>
|
||||||
|
|
||||||
<dimen name="multi_selection_header_height">52dp</dimen>
|
<dimen name="multi_selection_header_height">52dp</dimen>
|
||||||
|
|
||||||
|
<dimen name="wikipedia_button_left_padding">19dp</dimen>
|
||||||
</resources>
|
</resources>
|
|
@ -139,11 +139,11 @@ public class WikipediaDialogFragment extends DialogFragment {
|
||||||
readFullArticleButton.setLayoutParams(params);
|
readFullArticleButton.setLayoutParams(params);
|
||||||
readFullArticleButton.setBackgroundResource(darkMode ? R.drawable.bt_round_long_night : R.drawable.bt_round_long_day);
|
readFullArticleButton.setBackgroundResource(darkMode ? R.drawable.bt_round_long_night : R.drawable.bt_round_long_day);
|
||||||
readFullArticleButton.setTextColor(buttonColorStateList);
|
readFullArticleButton.setTextColor(buttonColorStateList);
|
||||||
int paddingLeft = (int) getResources().getDimension(R.dimen.content_padding_small);
|
int paddingLeft = (int) getResources().getDimension(R.dimen.wikipedia_button_left_padding);
|
||||||
int paddingRight = (int) getResources().getDimension(R.dimen.dialog_content_margin);
|
int paddingRight = (int) getResources().getDimension(R.dimen.dialog_content_margin);
|
||||||
readFullArticleButton.setPadding(paddingLeft, 0, paddingRight, 0);
|
readFullArticleButton.setPadding(paddingLeft, 0, paddingRight, 0);
|
||||||
readFullArticleButton.setCompoundDrawablesWithIntrinsicBounds(getIcon(R.drawable.ic_world_globe_dark), null, null, null);
|
readFullArticleButton.setCompoundDrawablesWithIntrinsicBounds(getIcon(R.drawable.ic_world_globe_dark), null, null, null);
|
||||||
readFullArticleButton.setCompoundDrawablePadding(paddingLeft);
|
readFullArticleButton.setCompoundDrawablePadding((int) getResources().getDimension(R.dimen.content_padding_small));
|
||||||
|
|
||||||
final TextView selectLanguageTextView = mainView.findViewById(R.id.select_language_text_view);
|
final TextView selectLanguageTextView = mainView.findViewById(R.id.select_language_text_view);
|
||||||
selectLanguageTextView.setTextColor(buttonColorStateList);
|
selectLanguageTextView.setTextColor(buttonColorStateList);
|
||||||
|
|
Loading…
Reference in a new issue