Added Picasso library

Minor Bugfixes
This commit is contained in:
NudeDude 2018-01-21 13:51:48 +01:00
parent 8b80d11929
commit 7c8a18121a
3 changed files with 8 additions and 4 deletions

View File

@ -15,12 +15,13 @@ import android.widget.TextView;
public class TrendAdapter extends ArrayAdapter {
private TrendDatabase trend;
private LayoutInflater inf;
private int background;
private int background, textColor;
public TrendAdapter(Context context, TrendDatabase trend) {
super(context, R.layout.trend);
inf=(LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
ColorPreferences mcolor = ColorPreferences.getInstance(context);
textColor = mcolor.getColor(ColorPreferences.FONT_COLOR);
background = mcolor.getColor(ColorPreferences.BACKGROUND);
this.trend = trend;
}
@ -45,6 +46,8 @@ public class TrendAdapter extends ArrayAdapter {
String trendName = trend.getTrendname(position);
((TextView) v.findViewById(R.id.trendpos)).setText(trendPos);
((TextView) v.findViewById(R.id.trendname)).setText(trendName);
((TextView) v.findViewById(R.id.trendpos)).setTextColor(textColor);
((TextView) v.findViewById(R.id.trendname)).setTextColor(textColor);
return v;
}
}

View File

@ -117,11 +117,14 @@ public class TweetDetail extends AppCompatActivity implements View.OnClickListen
private void setContent() {
ColorPreferences mColor = ColorPreferences.getInstance(getApplicationContext());
int backgroundColor = mColor.getColor(ColorPreferences.BACKGROUND);
int fontColor = mColor.getColor(ColorPreferences.FONT_COLOR);
LinearLayout background = (LinearLayout) findViewById(R.id.tweet_detail);
LinearLayout tweetaction = (LinearLayout) findViewById(R.id.tweetbar);
TextView txtTw = (TextView) findViewById(R.id.tweet_detailed);
background.setBackgroundColor(backgroundColor);
tweetaction.setBackgroundColor(backgroundColor);
answer_list.setBackgroundColor(backgroundColor);
txtTw.setTextColor(fontColor);
new ShowStatus(this).execute(tweetID);
}
}

View File

@ -52,9 +52,7 @@
<TextView
android:id="@+id/screenname"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingEnd="5dp"
android:paddingStart="5dp" />
android:layout_height="wrap_content" />
</LinearLayout>