Skip to content

Commit

Permalink
Working on top panel's icons
Browse files Browse the repository at this point in the history
  • Loading branch information
IstrajI committed Jun 27, 2019
1 parent be69a70 commit 3d1d227
Show file tree
Hide file tree
Showing 24 changed files with 188 additions and 185 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import android.text.SpannableString;
import android.text.Spanned;
import android.text.SpannedString;
import android.text.TextPaint;
import android.text.TextUtils;
import android.text.method.LinkMovementMethod;
import android.text.style.ClickableSpan;
Expand Down Expand Up @@ -107,8 +108,9 @@ public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {
switch(holder.getItemViewType()) {

case BlockArea.BlockType.TEXT:
((TextViewHolder)holder).textTextView.setText(formatLinks(content));
((TextViewHolder)holder).textTextView.setMovementMethod(LinkMovementMethod.getInstance());
final TextView textTextView = ((TextViewHolder)holder).textTextView;
textTextView.setText(formatLinks(content));
textTextView.setMovementMethod(LinkMovementMethod.getInstance());
break;

case BlockArea.BlockType.BUTTON:
Expand Down Expand Up @@ -181,6 +183,12 @@ public void onClick(final View widget) {
directoryOpenerListener.openDirectory(directoryItemNumber);

}

@Override
public void updateDrawState(final TextPaint ds) {
super.updateDrawState(ds);
ds.setUnderlineText(false);
}
}, startPosition, endPosition, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);

text.setSpan(formatOneMatch(tail, pattern, directoryItemNumber), endPosition, text.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import android.content.Context;
import android.graphics.Canvas;
import android.media.Image;
import android.os.Build;
import android.os.Bundle;
import android.os.Parcelable;
Expand All @@ -25,6 +26,8 @@
import com.npgames.insight.ui.all.fragments.infoDialog.InfoDialog;
import com.npgames.insight.ui.book.bottom_new.actions.BottomActionConfirmDialog;

import org.w3c.dom.Text;

import butterknife.BindView;
import butterknife.ButterKnife;

Expand All @@ -51,15 +54,15 @@ public class TopPanelView extends FrameLayout implements View.OnClickListener {
@BindView(R.id.text_view_stats_panel_dex_title)
protected ImageView dexTitleTextView;
@BindView(R.id.text_view_stats_panel_prc_title)
protected TextView prcTitleTextView;
protected ImageView prcTitleTextView;
@BindView(R.id.text_view_stats_panel_au_title)
protected TextView aurTitleTextView;
protected ImageView aurTitleTextView;
@BindView(R.id.text_view_stats_panel_hp_title)
protected ImageView hpTitleTextView;
@BindView(R.id.text_view_stats_panel_time_title)
protected TextView timeTitleTextView;
protected ImageView timeTitleTextView;
@BindView(R.id.text_view_stats_panel_mem_title)
protected TextView amnTitleTextView;
protected ImageView amnTitleTextView;

private Animation inAnimation;
private Animation outAnimation;
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions app/src/main/res/layout/adapter_directory_item.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
android:layout_height="wrap_content">

<TextView
android:background="@drawable/directory_item"
android:id="@+id/directory_item_title_text_view"
style="@style/D"
android:layout_width="match_parent"
Expand Down
6 changes: 4 additions & 2 deletions app/src/main/res/layout/adapter_game_page_text_item.xml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
xmlns:android="http://schemas.android.com/apk/res/android">

<TextView
android:id="@+id/adapter_game_page_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clickable="true"
android:focusable="true"
android:textColor="#c6d1d5"
android:textColorLink="@color/main_color_scheme_2_layer"
android:textColorHighlight="@color/active_color_scheme_1_layer"
android:fontFamily="@font/play_regular"
android:textSize="18sp"/>
</FrameLayout>
8 changes: 5 additions & 3 deletions app/src/main/res/layout/fragment_adapter_page_item.xml
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
android:orientation="vertical"
<FrameLayout android:orientation="vertical"
android:id="@+id/frame_layout_page_root"
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto">

<TextView
android:id="@+id/text_view_game_book_measuring"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="@dimen/spacing_16"
android:textColorLink="@color/main_color_scheme_1_layer"
android:textColorHighlight="@color/active_color_scheme_1_layer"
android:fontFamily="@font/play_regular"
android:textColor="@color/colorTextPrimary"
android:textSize="18sp"/>
Expand Down
Loading

0 comments on commit 3d1d227

Please sign in to comment.