Skip to content

Commit

Permalink
Applied for 4.4.4, design fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
matveevk committed May 21, 2017
1 parent a816366 commit 7abdf82
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,14 @@ protected void onCreate(Bundle savedInstanceState) {
tv3.setText("Сложность: " + problem.diff);
TextView tv4 = (TextView)findViewById(R.id.problemTopic);
tv4.setText("Тема: " + problem.topic);

TextView tv6 = (TextView)findViewById(R.id.problemOrigins);
tv6.setWidth(screenWidth() / 10 * 9);
tv6.setText("Источник: " + problem.origins);
switch(problem.topic) {
case "алгебра": tv6.setTextColor(getResources().getColor(R.color.colorAlg)); break;
case "комбинаторика": tv6.setTextColor(getResources().getColor(R.color.colorComb)); break;
case "геометрия": tv6.setTextColor(getResources().getColor(R.color.colorGeom)); break;
}
}

public int screenWidth() {
Expand Down

0 comments on commit 7abdf82

Please sign in to comment.