mirror of
https://github.com/nuclearfog/Shitter.git
synced 2025-01-31 19:34:55 +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 {
|
||||
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;
|
||||
}
|
||||
}
|
@ -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);
|
||||
}
|
||||
}
|
@ -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>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user