mirror of
https://github.com/nuclearfog/Shitter.git
synced 2025-02-07 23:58:44 +01:00
Added Picasso library
Minor Bugfixes
This commit is contained in:
parent
8b80d11929
commit
7c8a18121a
@ -15,12 +15,13 @@ import android.widget.TextView;
|
|||||||
public class TrendAdapter extends ArrayAdapter {
|
public class TrendAdapter extends ArrayAdapter {
|
||||||
private TrendDatabase trend;
|
private TrendDatabase trend;
|
||||||
private LayoutInflater inf;
|
private LayoutInflater inf;
|
||||||
private int background;
|
private int background, textColor;
|
||||||
|
|
||||||
public TrendAdapter(Context context, TrendDatabase trend) {
|
public TrendAdapter(Context context, TrendDatabase trend) {
|
||||||
super(context, R.layout.trend);
|
super(context, R.layout.trend);
|
||||||
inf=(LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
|
inf=(LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
|
||||||
ColorPreferences mcolor = ColorPreferences.getInstance(context);
|
ColorPreferences mcolor = ColorPreferences.getInstance(context);
|
||||||
|
textColor = mcolor.getColor(ColorPreferences.FONT_COLOR);
|
||||||
background = mcolor.getColor(ColorPreferences.BACKGROUND);
|
background = mcolor.getColor(ColorPreferences.BACKGROUND);
|
||||||
this.trend = trend;
|
this.trend = trend;
|
||||||
}
|
}
|
||||||
@ -45,6 +46,8 @@ public class TrendAdapter extends ArrayAdapter {
|
|||||||
String trendName = trend.getTrendname(position);
|
String trendName = trend.getTrendname(position);
|
||||||
((TextView) v.findViewById(R.id.trendpos)).setText(trendPos);
|
((TextView) v.findViewById(R.id.trendpos)).setText(trendPos);
|
||||||
((TextView) v.findViewById(R.id.trendname)).setText(trendName);
|
((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;
|
return v;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -117,11 +117,14 @@ public class TweetDetail extends AppCompatActivity implements View.OnClickListen
|
|||||||
private void setContent() {
|
private void setContent() {
|
||||||
ColorPreferences mColor = ColorPreferences.getInstance(getApplicationContext());
|
ColorPreferences mColor = ColorPreferences.getInstance(getApplicationContext());
|
||||||
int backgroundColor = mColor.getColor(ColorPreferences.BACKGROUND);
|
int backgroundColor = mColor.getColor(ColorPreferences.BACKGROUND);
|
||||||
|
int fontColor = mColor.getColor(ColorPreferences.FONT_COLOR);
|
||||||
LinearLayout background = (LinearLayout) findViewById(R.id.tweet_detail);
|
LinearLayout background = (LinearLayout) findViewById(R.id.tweet_detail);
|
||||||
LinearLayout tweetaction = (LinearLayout) findViewById(R.id.tweetbar);
|
LinearLayout tweetaction = (LinearLayout) findViewById(R.id.tweetbar);
|
||||||
|
TextView txtTw = (TextView) findViewById(R.id.tweet_detailed);
|
||||||
background.setBackgroundColor(backgroundColor);
|
background.setBackgroundColor(backgroundColor);
|
||||||
tweetaction.setBackgroundColor(backgroundColor);
|
tweetaction.setBackgroundColor(backgroundColor);
|
||||||
answer_list.setBackgroundColor(backgroundColor);
|
answer_list.setBackgroundColor(backgroundColor);
|
||||||
|
txtTw.setTextColor(fontColor);
|
||||||
new ShowStatus(this).execute(tweetID);
|
new ShowStatus(this).execute(tweetID);
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -52,9 +52,7 @@
|
|||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/screenname"
|
android:id="@+id/screenname"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content" />
|
||||||
android:paddingEnd="5dp"
|
|
||||||
android:paddingStart="5dp" />
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user