Added Picasso library

Minor Bugfixes
This commit is contained in:
NudeDude 2018-01-20 10:55:24 +01:00
parent 54c9364866
commit 05ebba3aba
3 changed files with 14 additions and 15 deletions

2
.idea/misc.xml generated
View File

@ -24,7 +24,7 @@
</value>
</option>
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="ProjectType">

View File

@ -274,13 +274,6 @@ public class MainActivity extends AppCompatActivity implements AdapterView.OnIte
setSupportActionBar(toolbar);
getSupportActionBar().setDisplayShowTitleEnabled(false);
timelineList.setOnItemClickListener(this);
trendList.setOnItemClickListener(this);
mentionList.setOnItemClickListener(this);
timelineReload.setOnRefreshListener(this);
trendReload.setOnRefreshListener(this);
mentionReload.setOnRefreshListener(this);
tabhost.setup();
// Tab #1
TabSpec tab1 = tabhost.newTabSpec("timeline");
@ -299,6 +292,12 @@ public class MainActivity extends AppCompatActivity implements AdapterView.OnIte
tabhost.addTab(tab3);
tabhost.setOnTabChangedListener(this);
timelineList.setOnItemClickListener(this);
trendList.setOnItemClickListener(this);
mentionList.setOnItemClickListener(this);
timelineReload.setOnRefreshListener(this);
trendReload.setOnRefreshListener(this);
mentionReload.setOnRefreshListener(this);
setTabContent();
}
@ -309,11 +308,11 @@ public class MainActivity extends AppCompatActivity implements AdapterView.OnIte
TweetDatabase tweetDeck = new TweetDatabase(con,TweetDatabase.HOME_TL, 0L);
TrendDatabase trendDeck = new TrendDatabase(con);
TweetDatabase mentDeck = new TweetDatabase(con, TweetDatabase.GET_MENT, 0L);
TimelineAdapter tlAdapt = new TimelineAdapter(this,tweetDeck);
TrendAdapter trendAdp = new TrendAdapter(this,trendDeck);
TimelineAdapter ment = new TimelineAdapter(this, mentDeck);
timelineList.setAdapter(tlAdapt);
TimelineAdapter tlAdap = new TimelineAdapter(this,tweetDeck);
TrendAdapter trendAdp = new TrendAdapter(this,trendDeck);
TimelineAdapter mentAdp = new TimelineAdapter(this, mentDeck);
timelineList.setAdapter(tlAdap);
trendList.setAdapter(trendAdp);
mentionList.setAdapter(ment);
mentionList.setAdapter(mentAdp);
}
}

View File

@ -49,12 +49,12 @@ public class TwitterSearch extends AppCompatActivity implements AdapterView.OnIt
TabHost.TabSpec tab1 = tabhost.newTabSpec("search_result");
tab1.setContent(R.id.searchtweets);
tab1.setIndicator("",getResources().getDrawable(R.drawable.search_result));
tab1.setIndicator("",getResources().getDrawable(R.drawable.search));
tabhost.addTab(tab1);
TabHost.TabSpec tab2 = tabhost.newTabSpec("user_result");
tab2.setContent(R.id.searchusers);
tab2.setIndicator("",getResources().getDrawable(R.drawable.user_result));
tab2.setIndicator("",getResources().getDrawable(R.drawable.user));
tabhost.addTab(tab2);
tabhost.setOnTabChangedListener(this);